:root {
    --bg-color: #030303;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent-color: #00ffd5;
    --accent-glow: rgba(0, 255, 213, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}


/* Background Blobs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(40px);
    /* Reduced blur for performance */
    opacity: 0.3;
    /* Reduced opacity for better contrast */
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-one {
    width: 400px;
    height: 400px;
    background: #7bdcb5;
    top: -100px;
    left: -100px;
    animation: move 25s infinite alternate;
}

.blob-two {
    width: 500px;
    height: 500px;
    background: #00d2ff;
    bottom: -150px;
    right: -150px;
    animation: move 30s infinite alternate-reverse;
}

.blob-three {
    width: 300px;
    height: 300px;
    background: #9d50bb;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation: move 20s infinite alternate;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 100px) scale(1.2) rotate(10deg);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.8) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

/* Hero Section */
.hero-section {
    padding-top: var(--nav-height);
    align-items: center;
    text-align: center;
    position: relative;
}

.greeting {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #f8f9fa, #00ffd5, #9d50bb, #f8f9fa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    letter-spacing: 0.5px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.primary-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.secondary-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.secondary-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--text-secondary);
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 213, 0.2);
    transform: translateY(-10px);
    /* Simple levitation */
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain */
    padding: 10px;
    /* Added some breathing room */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.project-card:hover .main-img {
    transform: scale(1.1);
}

.project-card:hover .hover-img {
    opacity: 1;
    transform: scale(1.1);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.email-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    margin: 2rem 0;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--text-primary);
}

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

.social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}