/* Smooth Scroll Effect */
html {
    scroll-behavior: smooth;
}

/* Main Stylesheet for Akash Bhunia's Portfolio
*/

/* Base Styles & Dark Theme */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0F0F1A; /* Very dark blue, almost black */
    color: #E0E0E0; /* Light gray for primary text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0F0F1A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.loader-name {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    animation: fadeInOut 2.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.95);
    }
    50% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Reusable Component Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #A78BFA; /* Light Purple */
    margin-bottom: 1rem;
}

.card {
    background-color: #1A1A2E; /* Dark blue-purple */
    border: 1px solid #2A2A4A; /* Slightly lighter border */
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.1);
}

.btn-primary {
    background-color: #8B5CF6; /* Purple */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #7C3AED;
    transform: translateY(-2px);
}

.social-icon {
    color: #A0A0A0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #8B5CF6; /* Purple */
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B5CF6; /* Purple */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #8B5CF6;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* New Social Icon Styles */
.social-icon-bordered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;  /* 2.75rem */
    height: 44px; /* 2.75rem */
    border: 1px solid #8B5CF6; /* Purple border */
    border-radius: 9999px; /* Makes it a circle */
    color: #8B5CF6; /* Purple icon color */
    transition: all 0.3s ease;
}

.social-icon-bordered:hover {
    background-color: #8B5CF6; /* Purple background on hover */
    color: #FFFFFF; /* White icon color on hover */
    transform: scale(1.1); /* Slight zoom effect */
}


/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 26, 0.95); /* Same as body bg with opacity */
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-link {
    font-size: 2rem;
    color: white;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #A78BFA; /* Light Purple */
}
