/* Root Variables */
:root {
    /* Light Theme Colors */
    --primary-purple: #6C5CE7;
    --accent-green: #74D680;
    --dark-purple: #4834D4;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --dark-text: #2C3E50;
    --gray-text: #6C757D;
    --light-gray: #E9ECEF;
    
    /* Theme Variables */
    --bg-color: var(--white);
    --text-color: var(--dark-text);
    --text-secondary: var(--gray-text);
    --section-bg: var(--light-bg);
    --card-bg: var(--white);
    --border-color: var(--light-gray);
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;
    
    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --section-bg: #111111;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Default to dark theme */
:root {
    color-scheme: dark;
}

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

/* Custom cursor only on desktop */
@media (min-width: 1025px) {
    * {
        cursor: none;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 10001;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.8;
    z-index: 10000;
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    opacity: 1;
    border-width: 1px;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--nav-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: var(--primary-purple);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    padding-top: 100px; /* Increased to ensure text is not hidden */
    overflow: hidden;
    position: relative;
}

/* Lightweight Background Animation (replaces particles.js) */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -15s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -20s;
    animation-duration: 20s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Particles.js Network Animation */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.9;
}

/* Theme-specific particles opacity */
[data-theme="dark"] #particles-js {
    opacity: 0.9;
}

[data-theme="light"] #particles-js {
    opacity: 0.6;
}

/* Ensure hero content stays above particles */
.hero-container {
    position: relative;
    z-index: 3;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Text Styling */
.greeting {
    margin-bottom: 1rem;
}

.greeting-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-green);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.typed-text {
    background: linear-gradient(45deg, #fff, var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-green);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--dark-text);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #5eb85c;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-text);
}

/* Social Links Hero */
.social-links-hero {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

/* Brand-specific colors */
.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
    background: #333;
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(51, 51, 51, 0.4);
}

.social-link.facebook:hover {
    background: #1877F2;
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(24, 119, 242, 0.4);
}

.social-link.fiverr:hover {
    background: #1DBF73;
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(29, 191, 115, 0.4);
}

.social-link svg {
    transition: all 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-container:hover {
    transform: scale(1.05);
    border-color: var(--accent-green);
    box-shadow: 0 25px 50px rgba(116, 214, 128, 0.3);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(116, 214, 128, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: float 2s ease-in-out infinite;
}

.scroll-down i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--section-bg);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.section-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.section-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.engineering {
    margin-top: 4rem;
}

/* Timeline Section */
.timeline-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline-graphics {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    position: absolute;
    background: var(--accent-green);
    color: var(--dark-purple);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1.5s;
}

.element-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

.element-4 {
    bottom: 10%;
    right: 30%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: rotate(3deg) translateY(0px); 
    }
    50% { 
        transform: rotate(3deg) translateY(-10px); 
    }
}

.timeline-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Skills Section */
.skills-section {
    padding: var(--section-padding);
    background-color: var(--section-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list span {
    background: var(--primary-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark-purple), #2c2c54);
    color: white;
    text-align: center;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.contact-item a, .contact-item span {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-green);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-green);
    color: var(--dark-purple);
    transform: translateY(-5px);
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: var(--dark-purple);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cv-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--section-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 1rem;
        order: 2;
    }
    
    .theme-toggle {
        order: 1;
        margin-right: 1rem;
        transform: scale(0.9);
        animation: themePulse 3s infinite;
    }
    
    @keyframes themePulse {
        0% { transform: scale(0.9); box-shadow: 0 0 0 rgba(108, 92, 231, 0.7); }
        50% { transform: scale(1); box-shadow: 0 0 20px rgba(108, 92, 231, 0.4); }
        100% { transform: scale(0.9); box-shadow: 0 0 0 rgba(108, 92, 231, 0.7); }
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu .nav-link {
        display: none;
    }
    
    .nav-menu.active .nav-link {
        display: block;
    }
    
    .nav-menu.active {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        z-index: 999;
        gap: 0;
    }
    
    .nav-menu.active .nav-link {
        padding: 1.5rem;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-link:hover {
        background: var(--primary-purple);
        color: white;
    }
    
    .nav-menu.active .theme-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-element {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .timeline-header h2 {
        font-size: 2rem;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Research Categories */
.research-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.research-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.1);
}

.research-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.research-category p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Publications */
.publications {
    margin-top: 2rem;
}

.publication-category {
    margin-bottom: 2rem;
}

.publication-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.publication-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.1);
}

.publication-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.publication-item strong {
    color: var(--primary-color);
}

.publication-item em {
    color: var(--accent-color);
    font-style: italic;
}

/* Achievements Section */
.achievements-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(108, 92, 231, 0.15);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-icon i {
    font-size: 2rem;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

/* Specific icon styles */
.achievement-icon.trophy {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #B8860B;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.achievement-icon.trophy .icon-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
}

.achievement-icon.trophy:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.achievement-icon.medal {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #696969;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

.achievement-icon.medal .icon-glow {
    background: radial-gradient(circle, rgba(192, 192, 192, 0.3), transparent);
}

.achievement-icon.medal:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(192, 192, 192, 0.5);
}

.achievement-icon.award {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #8B4513;
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.3);
}

.achievement-icon.award .icon-glow {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.3), transparent);
}

.achievement-icon.award:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(205, 127, 50, 0.5);
}

.achievement-icon.debate {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.achievement-icon.debate .icon-glow {
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3), transparent);
}

.achievement-icon.debate:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5);
}

.achievement-icon.championship {
    background: linear-gradient(135deg, #74D680, #55A3FF);
    color: white;
    box-shadow: 0 10px 30px rgba(116, 214, 128, 0.3);
}

.achievement-icon.championship .icon-glow {
    background: radial-gradient(circle, rgba(116, 214, 128, 0.3), transparent);
}

.achievement-icon.championship:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(116, 214, 128, 0.5);
}

.achievement-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.achievement-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Professional Experience */
.professional-experience {
    margin-top: 3rem;
}

.experience-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.position {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.experience-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Mobile Responsiveness for new sections */
@media (max-width: 768px) {
    .research-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .position {
        align-self: flex-start;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .achievement-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .research-category,
    .achievement-item,
    .experience-item {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .achievement-item h3 {
        font-size: 1.25rem;
    }
    
    .experience-header h3 {
        font-size: 1.25rem;
    }
}

/* About Me Section */
.about-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-purple), var(--accent-green));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-details {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-top: 0.2rem;
}

.detail-item h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
}

.about-image-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    background: var(--card-bg);
}

/* Research Section */
.research-section {
    padding: var(--section-padding);
    background: var(--bg-color);
}

.research-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.research-interests h3,
.publications h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.research-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.research-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.research-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.research-category h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.research-category ul {
    list-style: none;
    padding: 0;
}

.research-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.research-category li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-size: 0.8rem;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.publication-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--primary-purple);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.publication-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.publication-type i {
    color: var(--primary-purple);
}

.publication-type span {
    background: var(--primary-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.publication-card h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.publication-journal {
    font-size: 0.95rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.publication-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.publication-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-year,
.publication-issn,
.publication-status {
    background: var(--section-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.publication-status {
    background: var(--accent-green);
    color: white;
}

/* Achievement Cards Enhancement */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.achievement-rank {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.achievement-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-purple)10, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.achievement-card:hover .achievement-glow {
    opacity: 0.1;
}

.achievement-card:hover .achievement-icon i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Timeline Enhancement */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-purple), var(--accent-green));
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.experience-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 3px solid var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.experience-icon i {
    color: var(--primary-purple);
    font-size: 1.2rem;
}

.experience-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--primary-purple);
}

.experience-content:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.position {
    background: var(--primary-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.duration {
    background: var(--section-bg);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.experience-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: var(--accent-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Skills Section Enhancement */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon i {
    font-size: 1.5rem;
    color: white;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tag {
    background: var(--section-bg);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.3rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    background: var(--primary-purple);
    color: white;
    transform: scale(1.05);
}

.skill-hover-effect {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(108, 92, 231, 0.1), transparent);
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-hover-effect {
    top: 100%;
}

/* Contact Section Enhancement */
.contact-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-details a:hover {
    color: var(--primary-purple);
}

/* Contact Form */
.contact-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-purple);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-purple);
    background: var(--card-bg);
    padding: 0 0.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

/* Social Links Footer */
.social-links-footer {
    text-align: center;
    margin-top: 3rem;
}

.social-links-footer h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-bounce);
    box-shadow: var(--card-shadow);
}

.social-icon:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-5px);
}

/* Footer Enhancement */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-green);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-purple);
    transform: translateY(-5px);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .research-categories {
        grid-template-columns: 1fr;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .timeline-line {
        display: none;
    }
    
    .experience-item {
        padding-left: 0;
        text-align: center;
    }
    
    .experience-icon {
        position: relative;
        margin: 0 auto 1rem;
    }
    
    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        padding: 2rem;
        box-shadow: var(--nav-shadow);
        z-index: 1000;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .social-links-hero {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skill-card,
    .achievement-card,
    .publication-card {
        margin: 0 1rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* Enhanced Contact Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-purple);
}

.contact-card .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.contact-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.contact-card a,
.contact-card span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-card a:hover {
    color: var(--primary-purple);
    transform: scale(1.05);
}

/* Social Contact Section */
.contact-social-section {
    margin-top: 4rem;
}

.social-links-grid h3 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-contact-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-contact-card:hover::before {
    opacity: 0.1;
}

.social-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.social-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.social-info h4 {
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-arrow {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-contact-card:hover .social-arrow {
    transform: translateX(5px);
    color: var(--primary-purple);
}

/* Brand specific styling */
.social-contact-card.linkedin::before {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.social-contact-card.linkedin .social-icon-wrapper {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.social-contact-card.linkedin:hover {
    border-color: #0077B5;
    box-shadow: 0 15px 30px rgba(0, 119, 181, 0.2);
}

.social-contact-card.github::before {
    background: linear-gradient(135deg, #333, #24292e);
}

.social-contact-card.github .social-icon-wrapper {
    background: linear-gradient(135deg, #333, #24292e);
}

.social-contact-card.github:hover {
    border-color: #333;
    box-shadow: 0 15px 30px rgba(51, 51, 51, 0.2);
}

.social-contact-card.facebook::before {
    background: linear-gradient(135deg, #1877F2, #42A5F5);
}

.social-contact-card.facebook .social-icon-wrapper {
    background: linear-gradient(135deg, #1877F2, #42A5F5);
}

.social-contact-card.facebook:hover {
    border-color: #1877F2;
    box-shadow: 0 15px 30px rgba(24, 119, 242, 0.2);
}

.social-contact-card.fiverr::before {
    background: linear-gradient(135deg, #1DBF73, #00B22D);
}

.social-contact-card.fiverr .social-icon-wrapper {
    background: linear-gradient(135deg, #1DBF73, #00B22D);
}

.social-contact-card.fiverr:hover {
    border-color: #1DBF73;
    box-shadow: 0 15px 30px rgba(29, 191, 115, 0.2);
}

/* CV Download Card */
.cv-download-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cv-download-card:hover::before {
    opacity: 0.1;
}

.cv-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-purple);
}

.cv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cv-download-card:hover .cv-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.cv-info h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.cv-info span {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cv-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cv-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

/* Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .social-contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-contact-card {
        padding: 1rem;
    }
    
    .social-links-hero {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .cv-download-card {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .social-contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-arrow {
        display: none;
    }
    
    .social-links-hero {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .social-links-hero {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .social-links-hero {
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .about-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .achievement-icon {
        width: 70px;
        height: 70px;
    }
    
    .achievement-icon i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .social-links-hero {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .about-image-container {
        width: 150px;
        height: 150px;
    }
    
    .achievement-icon {
        width: 60px;
        height: 60px;
    }
    
    .achievement-icon i {
        font-size: 1.5rem;
    }
}

/* Hero Image Animation */
.hero-image .image-container {
    animation: heroImageFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-image .image-container img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image .image-container:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateY(5deg);
    }
    50% {
        transform: translateY(-20px) rotateY(0deg);
    }
    75% {
        transform: translateY(-10px) rotateY(-5deg);
    }
}

/* Cool Background Animation */
.background-animation {
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(108, 92, 231, 0.1) 0%,
        transparent 20%,
        transparent 40%,
        rgba(64, 224, 208, 0.1) 60%,
        transparent 80%,
        rgba(108, 92, 231, 0.1) 100%
    );
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: 1;
}

.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(108, 92, 231, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 20%,
        rgba(64, 224, 208, 0.15) 0%,
        transparent 50%
    );
    animation: backgroundMove 20s linear infinite;
    z-index: 1;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: rotate(120deg) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: rotate(240deg) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes backgroundMove {
    0% {
        transform: rotate(0deg) translateX(0px);
    }
    100% {
        transform: rotate(360deg) translateX(50px);
    }
}

/* Enhanced About Section Mobile Alignment */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-details {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .detail-item {
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .detail-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .detail-item:hover::before {
        left: 100%;
    }
    
    .detail-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
        border-color: var(--primary-purple);
    }
    
    .detail-item i {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        margin: 0 auto 1rem auto;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 2;
    }
    
    .detail-item:hover i {
        transform: scale(1.15) rotate(10deg);
        box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
    }
    
    .detail-item div {
        width: 100%;
        position: relative;
        z-index: 2;
    }
    
    .detail-item h4 {
        color: var(--text-color);
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    
    .detail-item:hover h4 {
        color: var(--primary-purple);
    }
    
    .detail-item p {
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.6;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .about-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid var(--primary-purple);
        box-shadow: 0 15px 30px rgba(108, 92, 231, 0.2);
        transition: all 0.4s ease;
        position: relative;
    }
    
    .about-image-container:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
        border-color: var(--accent-green);
    }
    
    .about-image-container::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, var(--primary-purple), var(--accent-green), var(--primary-purple));
        border-radius: 50%;
        z-index: -1;
        animation: borderRotate 3s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .about-image-container:hover::before {
        opacity: 1;
    }
    
    @keyframes borderRotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

@media (max-width: 480px) {
    .detail-item {
        padding: 1.25rem;
        margin: 0;
    }
    
    .detail-item i {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .about-image-container {
        width: 150px;
        height: 150px;
    }
    
    .about-details {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .greeting-text {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
        color: var(--accent-green) !important;
        font-weight: 700 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        z-index: 10;
        position: relative;
    }
    
    .social-links-hero {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Additional mobile fix for very small screens */
@media (max-width: 375px) {
    .greeting-text {
        font-size: 1.4rem !important;
        color: var(--accent-green) !important;
        font-weight: 800 !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    }
}

/* Contact section "Let's Connect!" visibility fix for light theme */
[data-theme="light"] .contact-content h2 {
    color: var(--text-color) !important;
    text-shadow: none;
}

[data-theme="light"] .contact-intro-text {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

/* Certificate Image Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

.certificate-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: modalZoomIn 0.3s ease;
}

.certificate-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.certificate-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.certificate-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness for certificate modal */
@media (max-width: 768px) {
    .certificate-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .certificate-modal-close {
        top: -40px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
}

/* Gallery Slider Section */
.gallery-section {
    padding: var(--section-padding);
    background: var(--section-bg);
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide:hover .slide-caption {
    transform: translateY(0);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
} 

/* Contact Section Text Visibility Fix */
.contact-intro-text {
    font-size: 1.1rem;
    color: var(--text-color) !important;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
}

@keyframes netEffect {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) rotate(1deg);
    }
}

@keyframes lightNetEffect {
    0%, 100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(10px) translateY(-5px);
    }
    66% {
        transform: translateX(-5px) translateY(10px);
    }
}

/* Publication Links Styling */
.publication-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.publication-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    color: white !important;
}

/* ResearchGate Social Link */
.social-contact-card.researchgate::before {
    background: linear-gradient(135deg, #00d4aa, #00a693);
}

.social-contact-card.researchgate .social-icon-wrapper {
    background: linear-gradient(135deg, #00d4aa, #00a693);
}

.social-contact-card.researchgate:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ongoing-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ongoing-project-card {
        padding: 1.5rem;
    }
    
    .about-images-slider {
        width: 250px;
        height: 250px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slide-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .about-images-slider {
        width: 200px;
        height: 200px;
    }
    
    .ongoing-project-card {
        padding: 1.25rem;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slide-caption {
        font-size: 0.9rem;
        padding: 1rem 0.75rem 0.5rem;
    }
}

/* Dark Mode Primary Setting */
body {
    color-scheme: dark;
}

/* Ensure certificates are properly aligned */
.certificate-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.certificate-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ongoing Research Projects Card Style */
.ongoing-research-title {
    margin-top: 3rem !important;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    position: relative;
}

.ongoing-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ongoing-project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ongoing-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    z-index: -1;
}

.ongoing-project-card:hover::before {
    opacity: 0.1;
}

.ongoing-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-purple);
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.project-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section Images Slider */
.about-images-slider {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.about-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-profile-img.active {
    opacity: 1;
}

.about-image-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.about-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-dot.active {
    background: var(--primary-purple);
    opacity: 1;
    transform: scale(1.2);
}

.about-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Gallery Slider Improvements */
.gallery-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn i {
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-purple);
    opacity: 1;
    transform: scale(1.2);
}

.slider-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

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

.certificate-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-purple);
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay i {
    font-size: 2rem;
    color: white;
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.certificate-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.certificate-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certificate-details .issuer {
    font-weight: 600;
    color: var(--primary-purple);
}

.certificate-details .year {
    background: var(--primary-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Net Effect for Dark Theme */
[data-theme="dark"] .hero,
[data-theme="dark"] .timeline-section {
    position: relative;
    background: var(--bg-color);
}

[data-theme="dark"] .hero::before,
[data-theme="dark"] .timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(116, 214, 128, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(108, 92, 231, 0.05) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: netEffect 20s ease-in-out infinite;
}

[data-theme="dark"] .hero-container,
[data-theme="dark"] .timeline-container {
    position: relative;
    z-index: 2;
}

/* Net Effect for Light Theme on White Backgrounds */
[data-theme="light"] .about-section,
[data-theme="light"] .contact-section {
    position: relative;
}

[data-theme="light"] .about-section::before,
[data-theme="light"] .contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(116, 214, 128, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, transparent 40%, rgba(108, 92, 231, 0.03) 50%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: lightNetEffect 15s ease-in-out infinite;
}

[data-theme="light"] .about-content,
[data-theme="light"] .contact-content {
    position: relative;
    z-index: 2;
}

@keyframes netEffect {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) rotate(1deg);
    }
}

/* Custom Cursor Optimization - Reduce animation frequency */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.1s ease; /* Faster transition */
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: -15px;
    transition: all 0.15s ease; /* Optimized transition speed */
    opacity: 0.5;
}

.cursor-outline.hover {
    transform: scale(1.5);
    opacity: 0.8;
}

/* Disable cursor on mobile for better performance */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
    
    .cursor-dot {
        display: none !important;
    }
    
    .cursor-outline {
        display: none !important;
    }
}

/* Mobile hero spacing adjustments */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* More space on mobile for navigation */
        min-height: 100vh;
        align-items: flex-start;
        justify-content: center;
        padding-bottom: 2rem;
    }
    
    .hero-container {
        margin-top: 2rem; /* Additional top margin for mobile */
        grid-template-columns: 1fr; /* Single column layout */
        text-align: center;
        gap: 2rem;
    }
    
    .greeting-text {
        margin-top: 1rem;
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 140px; /* Even more space for small mobile screens */
    }
    
    .nav-logo a {
        position: relative;
        z-index: 1000; /* Ensure logo is clickable */
        display: block;
        padding: 0.5rem;
        margin: -0.5rem;
        touch-action: manipulation; /* Better touch response */
    }
    
    .greeting-text {
        margin-top: 1.5rem;
        font-size: 1.4rem !important;
    }
}

/* FINAL MOBILE FIXES - Priority overrides */
@media screen and (max-width: 768px) {
    .hero {
        padding-top: 130px !important; /* Force higher padding for mobile */
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .hero-container {
        margin-top: 2.5rem !important;
        padding: 0 1rem !important;
    }
    
    .greeting-text {
        margin-top: 2rem !important;
        font-size: 1.7rem !important;
        color: var(--accent-green) !important;
        font-weight: 800 !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7) !important;
        line-height: 1.2 !important;
    }
    
    .nav-logo a {
        position: relative !important;
        z-index: 1002 !important;
        display: block !important;
        padding: 1rem !important;
        margin: -1rem !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-top: 150px !important; /* Even more space for very small screens */
    }
    
    .greeting-text {
        margin-top: 2.5rem !important;
        font-size: 1.5rem !important;
    }
    
    .nav-logo a {
        padding: 1.2rem !important;
        margin: -1.2rem !important;
    }
}