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

/* Color Palette and Variables */
:root {
    --primary: #00F0FF;
    --primary-dark: #00B8C4;
    --secondary: #FF5E94;
    --secondary-dark: #D83A70;
    --accent: #FFDE59;
    --accent-dark: #E5C640;
    --bg-dark: #060B18;
    --bg-darker: #030815;
    --text-light: #F0F8FF;
    --text-dim: rgba(240, 248, 255, 0.7);
    --gradient-1: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 94, 148, 0.1));
    --gradient-2: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(255, 222, 89, 0.05));
    --shadow-primary: 0 12px 25px rgba(0, 240, 255, 0.25);
    --shadow-secondary: 0 5px 20px rgba(255, 94, 148, 0.25);
}

body, html {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Show cursor only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.4); }
    100% { text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
}

.progress-bar {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--bg-darker);
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group {
    position: relative;
}

.error-message {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(255, 94, 148, 0.3);
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
    display: block;
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn.loading {
    pointer-events: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bg-darker);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.form-status.error {
    background: rgba(255, 94, 148, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
    transition: background 0.3s ease;
}

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

/* Custom Cursor - Only show on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    #cursor {
        position: fixed;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: var(--primary);
        box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 240, 255, 0.3);
        pointer-events: none;
        z-index: 9999;
        opacity: 0.8;
        transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
        mix-blend-mode: exclusion;
    }

    #cursor-trail {
        position: fixed;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--primary);
        pointer-events: none;
        z-index: 9998;
        opacity: 0.3;
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    }

    #cursor.hover {
        transform: scale(1.5);
        opacity: 1;
        mix-blend-mode: overlay;
    }

    #cursor-trail.hover {
        width: 60px;
        height: 60px;
        opacity: 0.5;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none !important;
    }
}

/* WebGL and Overlay */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

 /* Add at the end of your styles.css */
#webgl canvas {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav, .progress-container, .project-item {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize animations */
.fade-up.active {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-darker) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(6, 11, 24, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1rem 5%;
}

.nav.scrolled {
    padding: 1.2rem 5%;
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 60px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0, 240, 255, 0.4);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: cyan;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary);
}

/* Sections */
section {
    position: relative;
    min-height: 100vh;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

section .content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

section.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
#home {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 20 30px;  
    height: 100vh;
    position: relative;
}

#home .content {
    max-width: 900px;
    position: absolute;
    bottom: 30px;
    left: 10px;
}

.hero-title {
    font-size: 7vw;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-subtitle {
    font-size: 2vw;
    color: var(--text-light);
    margin-top: 1rem;
    opacity: 0.8;
    text-align: left;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin: 1.5rem 0 2rem 0;
    line-height: 1.6;
    max-width: 2000px;
    text-align: left;
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    width: 0;
    animation: typing 4s steps(40) 1s forwards, remove-cursor 0s 5s forwards;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 0 2px rgba(0, 240, 255, 0.3);
}

@keyframes typing {
    from { width: 0; }
    to { width: 42ch; } 
}

@keyframes remove-cursor {
    to { border-right: none; }
}

/* Buttons and Badges */
.badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-secondary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--bg-darker);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-left: 0;
    align-self: flex-start;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-secondary);
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button svg {
    margin-left: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Headings and Paragraphs */
h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.highlight {
    color: var(--accent);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 3px;
}

/* Project Grids */
.project-grid, .project-grid-publications {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: var(--gap, 40px);
    justify-items: center;
    align-items: start;
    padding: 10px;
    max-width: var(--max-width, 1400px);
    margin: 3rem auto 0;
}

.project-grid-publications {
    --columns: 2;
    --gap: 20px;
    --max-width: 1000px;
}

.project-item {
    background: rgba(6, 11, 24, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 2rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
    text-align: center;
    min-height: 200px;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-primary);
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.project-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0.1) 50%, rgba(0, 240, 255, 0) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 24px;
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.project-item:hover::before,
.project-item:hover::after {
    opacity: 1;
}

.project-item:hover::after {
    animation: radiate 1.5s infinite;
}

.project-img, .publication-img {
    width: 100%;
    max-width: var(--img-max-width, 400px);
    min-width: 200px;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.publication-img {
    --img-max-width: 200px;
    min-width: 125px;
    height: 200px;
}

.project-item h3 {
    color: var(--primary);
    margin: 15px 0 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.project-item h3::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 24px;
    height: 24px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.5);
}

.project-item:hover h3::before {
    opacity: 0.6;
    transform: scale(1);
}

.project-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 1;
    position: relative;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(6, 11, 24, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.stat-label {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

input, textarea, button {
    background: rgba(6, 11, 24, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(6, 11, 24, 0.9);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    background: var(--primary);
    color: var(--bg-darker);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(36, 194, 206, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-secondary);
}

button:hover::before {
    transform: translateX(100%);
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 5px;
    color: var(--primary);
}

/* Progress Indicator */
.progress-container {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(98, 231, 216, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.progress-dot:hover {
    background: #62e7d8;
    transform: scale(1.3);
}

.progress-dot.active {
    background: #62e7d8;
    transform: scale(1.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { top: 10px; opacity: 1; }
    80% { top: 30px; opacity: 0; }
    100% { top: 10px; opacity: 0; }
}

/* About Section */
#about {
    padding: 100px 10%;
    color: white;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.content {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.what-we-do-together {
    text-align: center;
    margin-bottom: 60px;
}

.what-we-do-together p {
    font-size: 1.2rem;
    color: #cbe5e7;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

/* Profile Section */
.profiles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
    padding: 20px;
}

.profile {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(146, 85, 5, 0.3);
    border: 2px solid #0ca1ac;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #1bdaca;
    box-shadow: 0 5px 15px rgba(27, 218, 202, 0.3);
    transition: transform 0.5s ease;
}

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

.profile h3 {
    font-size: 1.5rem;
    color: #5ecccc;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.profile:hover h3 {
    color: #1bdaca;
}

.socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    text-decoration: none;
    color: #e5edf1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon i {
    margin-right: 8px;
    font-size: 1rem;
}

.social-icon:hover {
    color: #fff;
    background-color: #1bdaca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 218, 202, 0.3);
    text-decoration: none;
}

/* Footer */
.footer {
    padding: 3rem 10%;
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
    z-index: 3;
}

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

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(6, 11, 24, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Animation for Section Content */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes radiate {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); opacity: 1; }
    50% { box-shadow: 0 0 30px 30px rgba(0, 240, 255, 0); opacity: 0.7; }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    #about {
        padding: 80px 5%;
    }
    
    .hero-title {
        font-size: 8vw;
    }
    
    .hero-subtitle {
        font-size: 3vw;
    }
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .project-grid-publications {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation - FIXED */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 5%;
        background: rgba(6, 11, 24, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(6, 11, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex !important;
        list-style: none;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: var(--text-light);
        padding: 20px 0;
        font-size: 1.4rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
        transition: all 0.3s ease;
        display: block;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
        background: rgba(0, 240, 255, 0.05);
    }

    /* Hide cursor completely on mobile */
    #cursor {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

@media (max-width: 600px) {
    .project-grid, .project-grid-publications {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .project-item {
        max-width: 100%;
        min-height: 280px;
        padding: 1.5rem;
    }

    .project-img, .publication-img {
        max-width: 100%;
        height: 200px;
    }

    .project-item h3 {
        font-size: 1.6rem;
        margin-top: 10px;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 14vw;
    }
    
    .hero-subtitle {
        font-size: 5vw;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .progress-container {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 1rem;
        padding: 12px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .what-we-do-together p {
        font-size: 1rem;
    }

    .profile {
        padding: 20px;
        width: 100%;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .social-icon {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .progress-container {
        display: none;
    }
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   TECH STACK SECTION STYLES
   Add this to your styles.css file
   ========================================== */
#techstack {
    max-width: 1800px;
    margin: 0 auto;
}

#techstack h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

#techstack h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

#techstack > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.tech-masonry {
    column-count: 4;
    column-gap: 2rem;
}

.tech-category {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: rgba(6, 11, 24, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    z-index: 0;
}

.tech-category:hover {
    background: rgba(6, 11, 24, 0.9);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.tech-category:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    transition: transform 0.3s ease;
}

.tech-category:hover .category-icon {
    transform: scale(1.1);
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-item {
    background: rgba(6, 11, 24, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(255, 94, 148, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.tech-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
    background: rgba(6, 11, 24, 0.8);
}

.tech-icon {
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 24px;
    margin-top: 0.1rem;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.15);
}

.tech-content {
    flex: 1;
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tech-item:hover .tech-name {
    color: var(--primary);
}

.tech-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .tech-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    #techstack h2 {
        font-size: 2.5rem;
    }
    
    #techstack > p {
        font-size: 1rem;
    }
    
    .tech-masonry {
        column-count: 1;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
}