* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c0c, #1a1a2e, #16213e);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(57,255,20,0.08) 0%, transparent 60%);
    animation: pulse 12s ease-in-out infinite;
    z-index: -1;
}

/* use for text that only a screen reader should read */
.sr-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
    }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(57,255,20,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 100px;   
    width: 100vw; 
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #39ff14;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu li {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;    
    border: 1px solid transparent;
    border-style: none none solid none;
}

.menu li:hover, .menu li.active {
    color: #00bfff;
    border-color: #00bfff;    
}

.menu-toggle {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    color: #00bfff;
    background: rgba(0,0,0,0.4);
    border-color: rgba(0,0,0,0.4);
    cursor: pointer;
}

.menu.collapsed {
    display: hide; /* Hide the menu items */
}
  

/* Main Container */
.main-container {
    margin-top: 100px;

}

/* Profile Picture */
.profile-pic {
    width: 150px; /* Increased size */
    height: 150px; /* Increased size */
    border-radius: 50%;
    background: linear-gradient(135deg, #00bfff, #39ff14);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-pic::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: #1a1a2e;
    border-radius: 50%;
}

.profile-pic-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem; /* Adjusted font size for larger photo */
    color: #39ff14;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

/* Social Links */
.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #39ff14;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00bfff;
}

/* Page Sections */
.page-section {
    display: none;
    padding: 4rem 3rem;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 150px);
}

.page-section.active {
    display: block;
}

/* Home Section */
.home-section {
    display: flex; /* Change to flex for centering */
    flex-direction: row; /* Stack content vertically */
    justify-content: center; /* Center content horizontally */    
    gap: 2rem; /* Add spacing between elements */
    /*min-height: calc(100vh - 150px);  Ensure it takes up the full viewport height minus navbar */
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.content-section h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #00bfff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: #00bfff;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 580px;
    line-height: 1.8;
    font-weight: 400;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00bfff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: #00bfff;
    font-weight: 400;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00bfff;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #39ff14;
    margin-bottom: 1rem;
}

.card-meta {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #00bfff;
    margin-bottom: 1rem;
}

.card-description {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Publication specific styling */
.publication-card {
    border-left: 4px solid #39ff14;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.publication-authors {
    font-size: 0.9rem;
    color: #00bfff;
    margin-bottom: 0.5rem;
}



/* Bio Section */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    
}

.bio-sidebar {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.bio-main {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.bio-item {
    margin-bottom: 1.5rem;
}

.bio-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #39ff14;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.bio-value {
    color: #ffffff;
    font-weight: 500;
}

/* List Styles */
.research-list, .publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.list-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #39ff14;
    margin: 3rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(57, 255, 20, 0.3);
    padding-bottom: 0.5rem;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.bullet-list li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    color: #cccccc;
    line-height: 1.6;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    transition: all 0.3s ease;
}

.bullet-list li:hover {
    color: #ffffff;
    background: rgba(57, 255, 20, 0.05);
    padding-left: 2.5rem;
}

.bullet-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00bfff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.bullet-list li:hover::before {
    color: #39ff14;
    transform: scale(1.2);
}

.bullet-list li strong {
    color: #00bfff;
    font-weight: 600;
}

.project-list, .publication-list {
    list-style: none;
    padding: 0;
}

.project-list li, .publication-list li {
    background: rgba(26, 26, 46, 0.6);   
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-list li:hover, .publication-list li:hover {
    border-color: #00bfff;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.1);
}

.project-title, .publication-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-meta, .publication-authors {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #00bfff;
    margin-bottom: 0.5rem;
}

.publication-venue {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #39ff14;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-description, .publication-description {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Fira Code', monospace;
    color: #39ff14;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background: linear-gradient(135deg, #00bfff, #39ff14);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-top: 1px solid rgba(57, 255, 20, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    
}

    


/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav {        
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border: none; /* Remove border for mobile */
        background: #0c0c0c;
    }  
   
    .menu {
        gap: 1rem;        
        flex-direction: column;
        justify-content: center;
        display: none;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);              
        text-align: center;
        width: 100%;
    }

    .menu.collapsed {
        display: block
    }
  

    .menu-toggle{
        display: inline-block;
    }

    

     .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .home-section {
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center content horizontally */
        text-align: center;
    }

    .content-section h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-section {
        padding: 2rem 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-pic-inner {
        font-size: 2rem;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        width:100%;
        text-align: center;
    }
}

/* Service List Styles */
.service-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-list .list-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #39ff14;
    margin: 3rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(57, 255, 20, 0.3);
    padding-bottom: 0.5rem;
}

.service-list .bullet-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.service-list .bullet-list li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    color: #cccccc;
    line-height: 1.6;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    transition: all 0.3s ease;
}

.service-list .bullet-list li:hover {
    color: #ffffff;
    background: rgba(57, 255, 20, 0.05);
    padding-left: 2.5rem;
}

.service-list .bullet-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00bfff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.service-list .bullet-list li:hover::before {
    color: #39ff14;
    transform: scale(1.2);
}

.service-list .bullet-list li strong {
    color: #00bfff;
    font-weight: 600;
}