:root {
    --primary-color: #f8fafc; 
    --accent-color: #3b82f6; 
    --accent-hover: #60a5fa;
    --text-dark: #cbd5e1; 
    --text-light: #94a3b8;
    --bg-main: #0b1121; 
    --bg-alt: #0f172a;
    --bg-card: #1e293b;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #334155 var(--bg-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

section {
    scroll-margin-top: 80px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Navigation --- */
.navbar {
    background-color: var(--bg-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    padding: 10px 0; 
}

.nav-item-flex {
    display: flex;
    align-items: center;
}

.mobile-arrow {
    display: none; 
}

.desktop-arrow {
    font-size: 0.75rem; 
    margin-left: 4px;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--bg-card);
    min-width: 180px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeDown 0.2s ease-out forwards;
    }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-weight: 400;
    color: var(--primary-color);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-alt);
    color: var(--accent-color);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-main);
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 260px; 
    height: 260px;
    object-fit: cover;
    border-radius: 24px; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5); 
}

/* --- Grid & Cards --- */
.roles-section {
    padding: 5rem 0;
    padding-bottom: 8rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.role-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s;
}

.role-card:hover {
    transform: translateY(-5px);
}

.role-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.role-card a:hover {
    text-decoration: underline;
}

.role-card p a, .role-card li a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.4);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.role-card p a:hover, .role-card li a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

/* --- Footer & Social Dock --- */
.footer-section {
    background-color: var(--bg-alt);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-card);
}

.footer-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.social-dock {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 50px;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-icon {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    text-decoration: none;
}

.dock-icon:hover.email-icon { background-color: #ea4335; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.wa-icon { background-color: #25d366; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.uni-icon { background-color: #b91c1c; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.scholar-icon { background-color: #4285f4; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.in-icon { background-color: #0077b5; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.ig-icon { background-color: #e1306c; color: #fff; transform: translateY(-5px); }
.dock-icon:hover.fb-icon { background-color: #1877f2; color: #fff; transform: translateY(-5px); }

.dock-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.dock-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 125%;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 72px; 
        right: 0;
        width: 260px;
        height: calc(100vh - 72px);
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: flex;
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 10px 15px rgba(0,0,0,0.5);
        padding-top: 1rem;
        overflow-y: auto;
    }
    
    .nav-links.nav-active {
        transform: translateX(0); 
    }
    
    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links li a {
        display: block;
        padding: 1.2rem 1.5rem;
        width: 100%;
    }
    
    .nav-links li a.btn-primary {
        border-radius: 0;
        background-color: transparent;
        color: var(--accent-color) !important;
        margin: 0;
        width: 100%;
    }

    .nav-item-flex {
        justify-content: space-between;
        width: 100%;
    }

    .nav-item-flex a {
        width: auto;
        flex-grow: 1;
    }

    .desktop-arrow {
        display: none !important; 
    }

    .mobile-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.2rem 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        border-left: 1px solid rgba(255, 255, 255, 0.05); 
    }

    .dropdown .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.2);
        border-radius: 0;
        padding: 0;
    }

    .dropdown .dropdown-menu.show {
        display: block; 
    }
    
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .social-dock {
        padding: 1rem;
        gap: 1rem;
        border-radius: 20px;
    }
    
    .dock-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* --- Custom Dark Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main); 
}
::-webkit-scrollbar-thumb {
    background-color: #334155; 
    border-radius: 10px;
    border: 3px solid var(--bg-main); 
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color); 
}