/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Pink/Purple Color Palette */
    --color-primary: #d63384;           /* Hot pink */
    --color-primary-light: #f06292;     /* Light pink */
    --color-primary-dark: #c2185b;      /* Dark pink */
    --color-secondary: #7c3aed;         /* Violet */
    --color-secondary-light: #a78bfa;   /* Light violet */
    --color-secondary-dark: #5b21b6;    /* Dark violet */
    --color-accent: #ec4899;            /* Pink accent */
    --color-gradient-start: #d63384;
    --color-gradient-end: #7c3aed;

    /* Neutral Colors */
    --color-bg: #fafafa;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #1a1a2e;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgb(214 51 132 / 0.3);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Z-index */
    --z-nav: 1000;
    --z-modal: 2000;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f0f1a;
        --color-bg-alt: #1a1a2e;
        --color-bg-dark: #0a0a15;
        --color-text: #f3f4f6;
        --color-text-light: #a1a1aa;
        --color-text-lighter: #71717a;
        --color-border: #27273d;
        --color-border-light: #1f1f38;
    }
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-3xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-full {
    width: 100%;
}

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

@media (prefers-color-scheme: dark) {
    .nav {
        background: rgba(15, 15, 26, 0.8);
    }
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-base);
}

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

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--color-border-light);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(72px + var(--space-3xl)) var(--container-padding) var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse, rgb(214 51 132 / 0.15), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgb(124 58 237 / 0.15), transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-name {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.hero-socials {
    display: flex;
    gap: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: all var(--transition-base);
}

.hero-socials a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.hero-socials svg {
    width: 20px;
    height: 20px;
}

/* Hero Visual - Floating Shapes */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -1.5s;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    animation-delay: -3s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 40%;
    border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%;
    animation-delay: -4.5s;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    color: var(--color-text-lighter);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

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

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--space-4xl) var(--container-padding);
    background: var(--color-bg-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-border-light), var(--color-border));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    padding: var(--space-4xl) var(--container-padding);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.project-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-border-light), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    transition: all var(--transition-base);
}

.project-card:hover .project-placeholder {
    background: linear-gradient(135deg, rgb(214 51 132 / 0.1), rgb(124 58 237 / 0.1));
    color: var(--color-primary);
}

.project-placeholder svg {
    width: 48px;
    height: 48px;
}

.project-content {
    padding: var(--space-xl);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tech-tag {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: linear-gradient(135deg, rgb(214 51 132 / 0.1), rgb(124 58 237 / 0.1));
    color: var(--color-primary);
    border-radius: var(--radius-full);
    border: 1px solid rgb(214 51 132 / 0.2);
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.project-link:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
    padding: var(--space-4xl) var(--container-padding);
    background: var(--color-bg-alt);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.skill-category {
    background: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skill-list li {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}

.skill-list li:hover {
    background: linear-gradient(135deg, rgb(214 51 132 / 0.05), rgb(124 58 237 / 0.05));
    border-color: var(--color-primary-light);
    color: var(--color-text);
    transform: translateX(4px);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--space-4xl) var(--container-padding);
}

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

.contact-intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(214 51 132 / 0.15);
}

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

.contact-info {
    margin-top: var(--space-xl);
    color: var(--color-text-light);
}

.contact-info a {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--color-secondary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-xl) var(--container-padding);
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg-alt);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-name {
        font-size: var(--font-size-4xl);
    }

    .hero-title {
        font-size: var(--font-size-lg);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    :root {
        --space-3xl: 2rem;
        --space-4xl: 3rem;
        --container-padding: 1rem;
    }

    .hero-name {
        font-size: var(--font-size-3xl);
    }

    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Focus Visible (Accessibility)
   ======================================== */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgb(214 51 132 / 0.3);
    color: var(--color-text);
}