/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Dark Mode Colors */
    --primary-color: #00f5ff;
    --secondary-color: #a855f7;
    --accent-color: #f72585;
    --neon-blue: #00d4ff;
    --neon-purple: #b537f2;
    --neon-pink: #ff006e;

    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --bg-card-hover: #222230;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #808090;

    /* Border & Effects */
    --border-color: #2a2a3a;
    --glow-color: rgba(0, 245, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-color);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -10%;
    left: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Content wrapper to sit above background and particles */
.content-wrapper {
    position: relative;
    z-index: 1000;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1003;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.4);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle:hover span {
    box-shadow: 0 0 8px var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 180px 0 120px;
    position: relative;
    z-index: 1001;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.hero-text {
    /* Removed default animation - now controlled by particle burst reveal */
    position: relative;
    z-index: 1001;
}

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

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-label-clickable {
    cursor: pointer;
    transition: var(--transition);
    background: rgba(168, 85, 247, 0.25);
    border: 2px solid rgba(168, 85, 247, 0.6);
    color: #e0b3ff;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    position: relative;
    animation: labelPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes labelPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.3);
    }
}

.hero-label-clickable::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(90deg,
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color),
        var(--secondary-color)
    );
    background-size: 300% 300%;
    animation: borderGlow 2s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

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

.hero-label-clickable:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.4);
    border-color: var(--secondary-color);
    animation: none;
    color: #ffffff;
}

.hero-label-clickable:hover::before {
    opacity: 1;
    animation-duration: 1s;
}

.hero-label-clickable svg {
    animation: iconRotate 1.5s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
}

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

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3);
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.4rem 3rem;
    font-size: 1.15rem;
}

/* Hero Image with 3D Effect */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
    /* Removed default animation - now controlled by supernova reveal */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.profile-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

.profile-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-placeholder:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.3);
}

/* Floating particles around profile */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: particleFloat 4s ease-in-out infinite;
}

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

.particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1001;
}

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

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.2);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-tag {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
}

.project-link svg {
    transition: var(--transition);
}

.project-link:hover svg {
    transform: translateX(3px);
}

/* About Section */
.about {
    background: transparent;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

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

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.about-list {
    list-style: none;
    margin-bottom: 3rem;
}

.about-list li {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding-left: 40px;
    position: relative;
    line-height: 1.8;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.tech-badge:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

/* Contact Section */
.contact {
    background: transparent;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 50px;
    z-index: -1;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    padding: 5rem 4rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.contact-divider {
    margin: 3rem 0;
    position: relative;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contact-divider span {
    background: var(--bg-card);
    padding: 0 2rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.contact-link:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

button.contact-link {
    cursor: pointer;
}

button.contact-link:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.contact-link svg {
    transition: var(--transition);
}

.contact-link:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0;
    position: relative;
    z-index: 1000;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 10002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
    background: var(--primary-color);
}

.scroll-top svg {
    stroke: var(--primary-color);
    transition: var(--transition);
}

.scroll-top:hover svg {
    stroke: var(--bg-primary);
}

.scroll-top:active {
    transform: scale(0.9);
}

/* Mobile-specific enhancements for scroll-top button */
@media (max-width: 768px) {
    .scroll-top {
        background: rgba(15, 15, 25, 0.95);
        border: 2px solid var(--primary-color);
    }

    .scroll-top.visible {
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .scroll-top:active {
        transform: scale(0.9);
        box-shadow: 0 2px 10px rgba(0, 245, 255, 0.6);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 245, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 245, 255, 0.7);
    }
}

/* ============================================ */
/* Waitlist Modal */
/* ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================ */
/* Waitlist Form */
/* ============================================ */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
    background: var(--bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.visible {
    display: block;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    position: relative;
    cursor: pointer;
    height: 58px;
    overflow: hidden;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

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

.btn-loading.active {
    opacity: 1;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================ */
/* Success Message */
/* ============================================ */
.form-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-success svg {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: checkmark 0.6s ease forwards;
}

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

.form-success h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ============================================ */
/* SUPERNOVA ANIMATION */
/* ============================================ */
/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    pointer-events: none;
    opacity: 1;
    z-index: 999;
    will-change: transform;
    overflow: hidden;
}

/* Supernova Core - Initial Star */
.supernova-core {
    position: fixed;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 245, 255, 1) 30%,
        rgba(168, 85, 247, 0.8) 60%,
        transparent 100%
    );
    opacity: 1;
    pointer-events: none;
    z-index: 999;
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(0, 245, 255, 0.6),
        0 0 120px rgba(168, 85, 247, 0.4),
        /* Trail effect */
        -40px 0 30px rgba(0, 245, 255, 0.6),
        -80px 0 40px rgba(168, 85, 247, 0.5),
        -120px 0 50px rgba(247, 37, 133, 0.4),
        -160px 0 60px rgba(0, 245, 255, 0.3),
        -200px 0 70px rgba(168, 85, 247, 0.2);
    animation: starMoveToCenter 3.5s ease-in-out forwards, starPulse 2s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Add comet tail using pseudo-element */
.supernova-core::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 200px;
    height: 8px;
    background: linear-gradient(to left,
        rgba(0, 245, 255, 0.8) 0%,
        rgba(168, 85, 247, 0.6) 30%,
        rgba(247, 37, 133, 0.4) 60%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(8px);
}

@keyframes starMoveToCenter {
    0% {
        left: 0%;
    }
    100% {
        left: 50%;
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
                    0 0 80px rgba(0, 245, 255, 0.6),
                    0 0 120px rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 60px rgba(255, 255, 255, 1),
                    0 0 120px rgba(0, 245, 255, 0.8),
                    0 0 180px rgba(168, 85, 247, 0.6);
    }
}

.supernova-core.explode {
    animation: supernovaFlash 1.5s ease-out forwards;
}

@keyframes supernovaFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 100px rgba(255, 255, 255, 1),
                    0 0 200px rgba(0, 245, 255, 0.8),
                    0 0 300px rgba(168, 85, 247, 0.6);
    }
    40% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(8);
        box-shadow: 0 0 150px rgba(255, 255, 255, 0.8),
                    0 0 300px rgba(0, 245, 255, 0.6),
                    0 0 450px rgba(168, 85, 247, 0.4);
    }
    70% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(15);
        box-shadow: 0 0 200px rgba(0, 245, 255, 0.3),
                    0 0 400px rgba(168, 85, 247, 0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(25);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

/* Supernova Shockwave */
.supernova-shockwave {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 3px solid rgba(0, 245, 255, 0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    will-change: transform, opacity;
}

/* Planets */
.planet {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Planet 1 - Jupiter (Top position) */
.planet-1 {
    width: 90px;
    height: 90px;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 30% 30%,
        rgba(220, 180, 140, 1) 0%,
        rgba(200, 160, 120, 0.95) 30%,
        rgba(180, 130, 90, 0.9) 60%,
        rgba(150, 100, 70, 0.85) 100%
    );
    box-shadow: 0 0 50px rgba(220, 180, 140, 0.5),
                inset -25px -25px 50px rgba(0, 0, 0, 0.4);
}

/* Add Jupiter's bands */
.planet-1::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(160, 110, 70, 0.6);
    border-radius: 50%;
}

.planet-1::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(140, 90, 60, 0.5);
    border-radius: 50%;
}

/* Planet 2 - Mars (Right position) */
.planet-2 {
    width: 45px;
    height: 45px;
    top: 40%;
    left: 68%;
    background: radial-gradient(circle at 35% 35%,
        rgba(255, 150, 100, 1) 0%,
        rgba(220, 100, 60, 0.95) 40%,
        rgba(180, 70, 40, 0.9) 100%
    );
    box-shadow: 0 0 30px rgba(255, 100, 50, 0.5),
                inset -15px -15px 30px rgba(0, 0, 0, 0.5);
}

/* Planet 3 - Earth (Bottom-right position) */
.planet-3 {
    width: 55px;
    height: 55px;
    top: 62%;
    left: 62%;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(40, 180, 100, 0.9) 0%, transparent 30%),
        radial-gradient(ellipse at 60% 40%, rgba(50, 200, 120, 0.8) 0%, transparent 25%),
        radial-gradient(ellipse at 45% 65%, rgba(35, 160, 90, 0.85) 0%, transparent 28%),
        radial-gradient(circle at 40% 40%,
            rgba(60, 140, 255, 1) 0%,
            rgba(40, 100, 220, 0.95) 50%,
            rgba(20, 70, 180, 0.9) 100%
        );
    box-shadow: 0 0 40px rgba(60, 140, 255, 0.6),
                inset -18px -18px 35px rgba(0, 0, 0, 0.4);
}

/* Add white clouds to Earth */
.planet-3::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 35%;
    width: 25px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
}

.planet-3::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 15%;
    width: 20px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    filter: blur(2px);
}

/* Planet 4 - Saturn (Bottom-left position) */
.planet-4 {
    width: 70px;
    height: 70px;
    top: 62%;
    left: 36%;
    background: radial-gradient(circle at 35% 35%,
        rgba(255, 230, 180, 1) 0%,
        rgba(230, 200, 140, 0.95) 50%,
        rgba(200, 170, 110, 0.9) 100%
    );
    box-shadow: 0 0 40px rgba(255, 220, 150, 0.5),
                inset -20px -20px 40px rgba(0, 0, 0, 0.3);
}

/* Saturn ring */
.planet-4::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 22px;
    border: 4px solid rgba(220, 190, 140, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(220, 190, 140, 0.5),
                inset 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Planet 5 - Purple Moon (Left position) */
.planet-5 {
    width: 38px;
    height: 38px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle at 40% 40%,
        rgba(200, 130, 255, 1) 0%,
        rgba(160, 80, 220, 0.95) 50%,
        rgba(120, 50, 180, 0.9) 100%
    );
    box-shadow: 0 0 28px rgba(180, 100, 247, 0.6),
                inset -12px -12px 25px rgba(0, 0, 0, 0.4);
}

.supernova-shockwave.explode {
    animation: shockwaveExpand 2s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
        border-width: 4px;
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 20px rgba(0, 245, 255, 1),
                    inset 0 0 20px rgba(0, 245, 255, 0.5);
    }
    10% {
        opacity: 1;
        border-color: rgba(0, 245, 255, 1);
    }
    30% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(30);
        border-width: 3px;
        border-color: rgba(0, 245, 255, 0.8);
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.8),
                    inset 0 0 30px rgba(0, 245, 255, 0.3);
    }
    60% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(60);
        border-width: 2px;
        border-color: rgba(168, 85, 247, 0.5);
        box-shadow: 0 0 60px rgba(168, 85, 247, 0.4);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(100);
        border-width: 1px;
        border-color: rgba(168, 85, 247, 0);
        box-shadow: 0 0 0px rgba(0, 245, 255, 0);
    }
}

/* Second shockwave ring */
.supernova-shockwave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.6);
    animation: shockwaveExpand 2s ease-out 0.2s forwards;
    opacity: 0;
}

/* Third shockwave ring */
.supernova-shockwave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(247, 37, 133, 0.6);
    animation: shockwaveExpand 2s ease-out 0.4s forwards;
    opacity: 0;
}

/* Hero Content Reveal Animation */
.hero-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.hero-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    will-change: opacity, transform;
}

.hero-image.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .nav-container {
        padding: 1.25rem 30px;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-wrapper {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Hide all animation elements on mobile */
    .supernova-core,
    .supernova-shockwave,
    .particle-canvas,
    .planet {
        display: none !important;
    }

    /* Show hero content immediately on mobile */
    .hero-text,
    .hero-image {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        transition: left 0.4s ease;
        gap: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        padding: 2.5rem;
    }

    .footer-content {
        text-align: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        z-index: 10002;
        box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
    }

    .scroll-top.visible {
        box-shadow: 0 4px 20px rgba(0, 245, 255, 0.5);
    }

    /* Modal responsive */
    .modal-container {
        padding: 2rem;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .modal-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .service-card,
    .project-content {
        padding: 2rem;
    }

    .about-content,
    .contact-content {
        padding: 2rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-wrapper {
        width: 250px;
        height: 250px;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 1rem;
    }

    .modal-container {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-header p {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
}
