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

:root {
    --accent-color: #00ffc6;
    --accent-dark: #00cc9e;
    --bg-color: #0d0d0d;
    --text-color: #f5f5f5;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(0, 255, 198, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Animated Background */
.robotics-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #0a0a0a 0%, 
        #0d1117 25%, 
        #0a0f1a 50%, 
        #0d0d0d 75%, 
        #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Morphing Blobs */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blobMorph 25s infinite ease-in-out;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 15%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.15) 0%, 
        rgba(0, 204, 158, 0.08) 40%,
        transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    right: 10%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.12) 0%, 
        rgba(0, 180, 140, 0.06) 40%,
        transparent 70%);
    animation-delay: 8s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    bottom: 15%;
    left: 40%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.1) 0%, 
        rgba(0, 150, 120, 0.05) 40%,
        transparent 70%);
    animation-delay: 16s;
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(80px, -80px) scale(1.1) rotate(90deg);
    }
    50% {
        border-radius: 50% 50% 30% 70% / 50% 70% 30% 60%;
        transform: translate(-80px, 80px) scale(0.9) rotate(180deg);
    }
    75% {
        border-radius: 30% 70% 70% 30% / 70% 40% 60% 30%;
        transform: translate(60px, 60px) scale(1.05) rotate(270deg);
    }
}

/* Refined Grid Pattern */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 198, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 198, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 25s linear infinite;
    will-change: transform;
}

@keyframes gridScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* Circuit Board Nodes - Reduced */
.circuit-board {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(0, 255, 198, 0.4),
        0 0 20px rgba(0, 255, 198, 0.2);
    animation: pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
}

.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 40%; left: 75%; animation-delay: 1s; }
.node-3 { top: 60%; left: 25%; animation-delay: 2s; }
.node-4 { top: 80%; left: 65%; animation-delay: 3s; }

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) translateZ(0);
        opacity: 1;
        box-shadow: 
            0 0 10px rgba(0, 255, 198, 0.4),
            0 0 20px rgba(0, 255, 198, 0.2);
    }
    50% { 
        transform: scale(1.5) translateZ(0);
        opacity: 0.6;
        box-shadow: 
            0 0 15px rgba(0, 255, 198, 0.6),
            0 0 30px rgba(0, 255, 198, 0.3);
    }
}

/* Enhanced Connections */
.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 198, 0.4), 
        transparent);
    opacity: 0.3;
    animation: flow 6s ease-in-out infinite;
    will-change: opacity, box-shadow;
}

.connection-1 {
    top: 20%;
    left: 15%;
    width: 350px;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.connection-2 {
    top: 60%;
    left: 25%;
    width: 400px;
    transform: rotate(-15deg);
    animation-delay: 2s;
}

.connection-3 {
    top: 80%;
    left: 65%;
    width: 250px;
    transform: rotate(45deg);
    animation-delay: 4s;
}


@keyframes flow {
    0%, 100% {
        opacity: 0.2;
        box-shadow: 0 0 5px rgba(0, 255, 198, 0.2);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(0, 255, 198, 0.4);
    }
}


/* Particle System */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0% { 
        transform: translate(0, 0) scale(0) translateZ(0);
        opacity: 0;
    }
    10% { 
        opacity: 0.8;
        transform: translate(20px, -100px) scale(1) translateZ(0);
    }
    90% { 
        opacity: 0.8;
    }
    100% { 
        transform: translate(100px, -600px) scale(0) translateZ(0);
        opacity: 0;
    }
}

/* Cursor Glow Effect */
.cursor-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.06) 0%, 
        transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%) translateZ(0);
    animation: glowFade 2s ease-out forwards;
    z-index: 0;
    filter: blur(30px);
    will-change: transform, opacity;
}


@keyframes glowFade {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2) translateZ(0);
    }
}

/* Floating Icons - Reduced and Refined */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.icon-item {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    animation: float 25s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 0 10px rgba(0, 255, 198, 0.3));
}

.icon-1 { top: 15%; left: 25%; animation-duration: 20s; animation-delay: 0s; }
.icon-2 { top: 35%; left: 70%; animation-duration: 25s; animation-delay: 5s; }
.icon-3 { top: 65%; left: 20%; animation-duration: 22s; animation-delay: 10s; }
.icon-4 { top: 80%; left: 60%; animation-duration: 24s; animation-delay: 15s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) translateZ(0);
    }
    25% {
        transform: translateY(-40px) rotate(8deg) translateZ(0);
    }
    50% {
        transform: translateY(-80px) rotate(-8deg) translateZ(0);
    }
    75% {
        transform: translateY(-40px) rotate(5deg) translateZ(0);
    }
}

/* iOS Glass Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 255, 198, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 255, 198, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    text-shadow: 0 0 15px rgba(0, 255, 198, 0.5);
    transform: scale(1.05) translateZ(0);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 255, 198, 0.6);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 255, 198, 0.8);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1) translateZ(0);
}

/* Main Content Container */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Hero Section */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 198, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-color);
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
    background: rgba(0, 255, 198, 0.15);
    transform: translateX(5px) translateZ(0);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight {
    display: block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 198, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 25px rgba(0, 255, 198, 0.4);
}

.cta-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.cta-secondary:hover {
    background: rgba(0, 255, 198, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px) translateZ(0);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: left;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hero Right Side - Profile Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 
        0 30px 80px rgba(0, 255, 198, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.profile-card .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 
        0 10px 30px rgba(0, 255, 198, 0.3),
        inset 0 0 20px rgba(0, 255, 198, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover .profile-photo {
    transform: scale(1.05) translateZ(0);
}

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-card .role {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-card .bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 198, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: rgba(0, 255, 198, 0.2);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 4px 15px rgba(0, 255, 198, 0.3);
}

/* Floating decoration elements */
.hero-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.1), rgba(0, 255, 198, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 198, 0.2);
    animation: floatDecoration 6s ease-in-out infinite;
    z-index: -1;
}

.decoration-1 {
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.decoration-2 {
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 2s;
}

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

/* Reduced glows everywhere else */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-color);
    position: relative;
    text-shadow: 0 0 15px rgba(0, 255, 198, 0.2);
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 255, 198, 0.4);
}

.about-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) translateZ(0);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 198, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 255, 198, 0.4);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(0, 255, 198, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02) translateZ(0);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 198, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 198, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 198, 0.3));
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 198, 0.2);
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05) translateZ(0);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 198, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 198, 0.3);
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 198, 0.3));
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px rgba(0, 255, 198, 0.3));
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 198, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 255, 198, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 255, 198, 0.4);
}

.social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.1) translateZ(0);
    box-shadow: 0 4px 15px rgba(0, 255, 198, 0.3);
    background: rgba(0, 255, 198, 0.2);
}

/* Responsive Hero Section */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 2rem 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-badge {
        margin: 0 auto;
    }
    
    .hero-subtitle {
        max-width: 600px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
    
    .profile-card .profile-photo {
        width: 160px;
        height: 160px;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
/* iOS Glass Cards - About Section */
.about-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 198, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* iOS Glass Project Cards */
#projects {
  padding: 2rem 1rem; /* Add space around the whole projects section */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 1rem; /* Padding inside the grid container */
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between content and link */
  flex: 0 0 320px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1.5rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: start;
  min-height: 280px; /* Ensure consistent card height */
}


.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.project-card p {
  flex-grow: 1;
  align-self: stretch;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* limit to 4 lines */
  -webkit-box-orient: vertical;
  margin-bottom: 1rem;
}


.project-links {
  align-self: flex-start; /* Align container to left */
  margin-top: auto; /* Push to bottom */
  display: flex;
  justify-content: flex-start; /* Align content to the left */
  gap: 1rem;
  width: 100%; /* Take full width of card */
}


.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(0, 255, 198, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 198, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-tag:hover {
    background: rgba(0, 255, 198, 0.3);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 255, 198, 0.5);
}

.project-links {
  align-self: flex-start; /* Align to left side */
  margin-top: auto; /* Push to bottom */
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.project-link.unavailable {
  color: #888;
  background: none;
  font-style: italic;
  cursor: not-allowed;
  pointer-events: none;
  padding: 0;
}

/* iOS Glass Publications */
.pub-list {
    list-style: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.pub-list li {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 198, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-list li:last-child {
    border-bottom: none;
}

.pub-list li:hover {
    background: rgba(0, 255, 198, 0.1);
    transform: translateX(10px) translateZ(0);
    box-shadow: inset 4px 0 0 var(--accent-color);
}

.pub-list a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.pub-list a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 255, 198, 0.4);
}

/* iOS Glass GitHub Stats */
.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02) translateZ(0);
    box-shadow: 
        0 12px 40px rgba(0, 255, 198, 0.3),
        0 0 80px rgba(0, 255, 198, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 198, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 198, 0.6));
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px rgba(0, 255, 198, 0.4);
}

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

.github-readme-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.github-readme-stats img {
    max-width: 100%;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-readme-stats img:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 198, 0.2);
}

/* iOS Glass Contact */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05) translateZ(0);
    box-shadow: 
        0 16px 48px rgba(0, 255, 198, 0.3),
        0 0 100px rgba(0, 255, 198, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 198, 0.4);
}

.contact-item .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 198, 0.6));
}

.contact-item h3 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item a, .contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 198, 0.4);
}

/* iOS Glass Contact Form */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 198, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(0, 255, 198, 0.6));
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group textarea {
    height: 150px;
    resize: vertical;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(0, 255, 198, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 255, 198, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    box-shadow: 0 8px 35px rgba(0, 255, 198, 0.6);
}

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social {
    display: flex;
    gap: 1rem;
}

.social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(0, 255, 198, 0.05);
    border: 1px solid rgba(0, 255, 198, 0.1);
}

.social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.1) translateZ(0);
    box-shadow: 0 4px 20px rgba(0, 255, 198, 0.5);
    background: rgba(0, 255, 198, 0.2);
}

/* Loading state */
.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 3rem 1rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 350px; height: 350px; }
    .blob-3 { width: 250px; height: 250px; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hardware acceleration for animations */
.project-card,
.stat-card,
.contact-item,
.about-content,
nav,
.submit-btn,
.tech-tag,
.social a {
    will-change: transform;
}
