/* Base Styles */
:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --accent-color: #00d4ff;
    --text-color: #333;
    --light-text: #f4f4f4;
    --dark-bg: #121212;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
    font-size: 1.6rem;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loader-text {
    color: var(--light-text);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Navigation */
/* Enhanced Navigation Bar Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 15, 30, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    padding: 10px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(var(--primary-rgb), 0.3), 
        transparent 30%
    );
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 8px;
    z-index: -1;
    transition: height 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    height: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        padding: 50px 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
        transition-delay: calc(0.1s * var(--i));
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 2rem;
        padding: 10px 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-color);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-color);
    }
}


/* Ripple Effect for Nav Links */
.nav-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}


/* Canvas Container */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Section */
#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
}

.hero-text {
    max-width: 800px;
    margin-top: 100px;
}

.glitch {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 20px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(36px, 9999px, 9px, 0); }
    5% { clip: rect(85px, 9999px, 29px, 0); }
    10% { clip: rect(32px, 9999px, 92px, 0); }
    15% { clip: rect(49px, 9999px, 61px, 0); }
    20% { clip: rect(19px, 9999px, 27px, 0); }
    25% { clip: rect(38px, 9999px, 73px, 0); }
    30% { clip: rect(45px, 9999px, 16px, 0); }
    35% { clip: rect(69px, 9999px, 43px, 0); }
    40% { clip: rect(57px, 9999px, 62px, 0); }
    45% { clip: rect(81px, 9999px, 52px, 0); }
    50% { clip: rect(41px, 9999px, 69px, 0); }
    55% { clip: rect(20px, 9999px, 31px, 0); }
    60% { clip: rect(35px, 9999px, 56px, 0); }
    65% { clip: rect(74px, 9999px, 39px, 0); }
    70% { clip: rect(26px, 9999px, 48px, 0); }
    75% { clip: rect(59px, 9999px, 71px, 0); }
    80% { clip: rect(40px, 9999px, 15px, 0); }
    85% { clip: rect(65px, 9999px, 23px, 0); }
    90% { clip: rect(18px, 9999px, 67px, 0); }
    95% { clip: rect(91px, 9999px, 32px, 0); }
    100% { clip: rect(53px, 9999px, 9px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 32px, 0); }
    5% { clip: rect(12px, 9999px, 76px, 0); }
    10% { clip: rect(46px, 9999px, 8px, 0); }
    15% { clip: rect(29px, 9999px, 84px, 0); }
    20% { clip: rect(38px, 9999px, 43px, 0); }
    25% { clip: rect(63px, 9999px, 15px, 0); }
    30% { clip: rect(24px, 9999px, 91px, 0); }
    35% { clip: rect(79px, 9999px, 37px, 0); }
    40% { clip: rect(16px, 9999px, 57px, 0); }
    45% { clip: rect(82px, 9999px, 31px, 0); }
    50% { clip: rect(41px, 9999px, 69px, 0); }
    55% { clip: rect(27px, 9999px, 48px, 0); }
    60% { clip: rect(63px, 9999px, 14px, 0); }
    65% { clip: rect(34px, 9999px, 82px, 0); }
    70% { clip: rect(72px, 9999px, 46px, 0); }
    75% { clip: rect(19px, 9999px, 59px, 0); }
    80% { clip: rect(53px, 9999px, 25px, 0); }
    85% { clip: rect(67px, 9999px, 39px, 0); }
    90% { clip: rect(40px, 9999px, 73px, 0); }
    95% { clip: rect(21px, 9999px, 52px, 0); }
    100% { clip: rect(58px, 9999px, 13px, 0); }
}

.typing-container {
    font-size: 2.4rem;
    margin-bottom: 20px;
    height: 40px;
}

.static-text {
    color: var(--text-color);
    font-weight: 500;
}

.dynamic-text {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
}

.dynamic-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

.arrow {
    margin-top: 15px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.image-3d-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.image-3d-container:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
}

.image-3d-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: 1.8;
}

.personal-info {
    margin: 30px 0;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
}

.info-label {
    font-weight: 600;
    min-width: 120px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Skills Section */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skills-filter-btn {
    padding: 6px 15px;
    background-color: transparent;
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.skills-filter-btn.active, .skills-filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.skill-category {
    display: none;
}

.skill-category.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.skills-container::-webkit-scrollbar {
    width: 5px;
}

.skills-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.skills-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.skill-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(42, 42, 114, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
    min-width: 0;
}

.skill-info h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-bar {
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease-in-out;
}

/* Make skills more compact in smaller screens */
@media screen and (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .skills-container {
        max-height: 450px;
    }
    
    .skills-filter {
        padding-bottom: 5px;
    }
    
    .skills-filter-btn {
        padding: 5px 12px;
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-container {
        max-height: 500px;
    }
    
    .skill-item {
        padding: 8px;
    }
    
    .skill-icon {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }
    
    .skill-info h4 {
        font-size: 1.5rem;
    }
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    top: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -200px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -200px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.timeline-content ul {
    margin-left: 20px;
}

.timeline-content li {
    margin-bottom: 10px;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tech span {
    padding: 5px 10px;
    background-color: rgba(42, 42, 114, 0.1);
    border-radius: 20px;
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}
/* Research Papers Section */
.papers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.paper-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.paper-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 42, 114, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.paper-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.paper-content p {
    font-size: 1.4rem;
}

/* Education Section */
.education-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.education-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.education-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 42, 114, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.education-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-content h4 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.education-content p {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.6rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 42, 114, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message i {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.success-message p {
    font-size: 1.6rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--light-text);
}

.footer-text {
    font-size: 1.4rem;
}

footer .social-links {
    display: flex;
    gap: 15px;
    margin: 0;
}

footer .social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
}

footer .social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Mobile styles for footer */
@media screen and (max-width: 768px) {
    footer {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-logo {
        margin-bottom: 10px;
    }
    
    .footer-text p {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    footer .social-links {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-top: 0;
    }
    
    footer .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1.6rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 1s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 1s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Responsive Media Queries */
@media screen and (max-width: 1200px) {
    .content {
        width: 90%;
    }
    
    .hero-text h1 {
        font-size: 5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .typing-container {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        text-align: center;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .papers-container {
        grid-template-columns: 1fr;
    }
    
    .education-cards {
        flex-direction: column;
    }
    
    .education-card {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 80px 5%;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .typing-container {
        font-size: 1.8rem;
    }
    
    .project-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
}




@media screen and (max-width: 768px) {
    /* Remove timeline visual elements */
    .timeline::before,
    .timeline-dot {
        display: none;
    }
    
    /* Adjust timeline items */
    .timeline-item {
        width: 100%;
        padding: 0 0 30px 0;
        margin-bottom: 20px;
    }
    
    /* Move date inside content box */
    .timeline-date {
        position: static;
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        color: var(--primary-color);
        text-align: left;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    /* Reset positioning */
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }
}

/* Sticky Theme Selector Styles */
.theme-toggle-sticky {
    position: fixed;
    right: 0; /* Keep it at the right edge */
    top: 100px; /* Move it to the top right instead of middle */
    transform: none; /* Remove the vertical centering */
    z-index: 999;
    display: flex;
    align-items: center;
}

.theme-toggle-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px 0 0 10px; /* Keep this to round the left corners */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-icon:hover {
    width: 60px;
    background: rgba(var(--primary-rgb), 1);
}

.theme-toggle-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.theme-panel {
    width: 300px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    height: 400px;
    border-radius: 10px 0 0 10px;
    transform: translateX(100%); /* This moves it off-screen to the right */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute; /* Add this to ensure proper positioning */
    right: 0; /* Ensure it's aligned to the right */
    top: 0; /* Align to the top of the container */
}

.theme-toggle-sticky.active .theme-panel {
    transform: translateX(0); /* This brings it back on-screen */
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-panel-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.theme-panel-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.theme-panel-close:hover {
    opacity: 1;
}

.theme-options-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.theme-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.theme-option span {
    color: white;
    font-size: 14px;
}

/* Theme preview backgrounds */
.cyberpunk-preview {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
}

.minimalist-preview {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border: 1px solid #ddd;
}

.space-preview {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
}

.digital-preview {
    background: linear-gradient(45deg, #4ecca3, #232931);
}

.surreal-preview {
    background: linear-gradient(45deg, #ff7700, #ff0077);
}

.neon-flux-preview {
    background: linear-gradient(45deg, #00eeff, #ff00aa);
}

.biomimicry-preview {
    background: linear-gradient(45deg, #2ecc71, #3498db);
}

.glassmorphism-preview {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .theme-toggle-sticky {
        top: 100px; /* Adjust for smaller screens */
        right: 0; /* Ensure it stays at the right edge */
    }
    
    .theme-toggle-icon {
        width: 40px;
        height: 40px;
        border-radius: 50% 0 0 50%;
        font-size: 16px;
    }
    
    .theme-panel {
        width: 250px;
        height: 350px;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    
    .theme-options-container {
        grid-template-columns: 1fr;
    }
}

/* Theme Notification */
.theme-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.theme-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.theme-icon {
    margin-right: 10px;
    font-size: 2rem;
}

.theme-name {
    font-weight: 600;
    font-size: 1.4rem;
}


