:root {
    /* Color Palette */
    --color-bg: hsl(140, 60%, 98%);
    /* Very light mint */
    --color-surface: hsl(140, 50%, 94%);
    --color-text-main: hsl(150, 40%, 15%);
    --color-text-muted: hsl(150, 20%, 40%);

    --color-primary: hsl(340, 82%, 52%);
    /* Vibrant Pink-Red */
    --color-primary-hover: hsl(340, 82%, 45%);
    --color-secondary: hsl(340, 100%, 75%);
    /* Soft Pink */

    --color-white: #ffffff;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--color-primary);
    margin-left: var(--spacing-sm);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(232, 245, 233, 0.9);
    /* Transparent Mint */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dot {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.tag {
    display: inline-block;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--color-secondary);
    opacity: 0.3;
    z-index: -1;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 450px;
    margin-bottom: var(--spacing-md);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-image {
    width: 400px;
    height: 500px;
    background: var(--color-surface);
    border-radius: 200px 200px 20px 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.placeholder-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #fce4ec 100%);
    position: relative;
}

.placeholder-visual::after {
    content: 'User Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-muted);
    font-weight: 500;
}


.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    top: 0;
    right: 0;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #FFD180;
    /* Soft Orange */
    bottom: 50px;
    left: 50px;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-image {
    height: 250px;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-secondary);
}

/* Just for demo variance */
.project-card:nth-child(2) .project-image {
    background: hsl(180, 50%, 94%);
}

.project-card:nth-child(3) .project-image {
    background: hsl(200, 50%, 94%);
}


.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
}

/* About Section */
.bg-light {
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.image-frame {
    position: relative;
    z-index: 1;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    z-index: -1;
}

.placeholder-visual-portrait {
    width: 100%;
    height: 400px;
    background: lightgray;
    border-radius: 20px;
}

/* Contact Section */
.contact-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.contact-container {
    max-width: 600px;
}

.contact-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.email-link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    color: var(--color-text-main);
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a:hover {
    color: var(--color-primary);
}

/* Image Updates */
.blob-image img,
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content,
    .about-text {
        order: 2;
    }

    .hero-visual,
    .about-visual {
        order: 1;
        height: auto;
        margin-bottom: var(--spacing-md);
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .stats {
        justify-content: center;
    }
}

/* --- Modern Enhancements --- */

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-white: #0f172a;
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .testimonial-card {
    background-color: var(--color-surface);
    color: var(--color-text-main);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

/* Skills Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background: var(--color-surface);
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 1rem;
}

.separator {
    color: var(--color-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials Carousel (Scroll Snap) */
.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.client-info strong {
    display: block;
    color: var(--color-primary);
}

.client-info span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}