/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Palette */
    --bg-main: #f8f9fa;
    --bg-surface: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;

    /* Accents */
    --accent-primary: #3182ce;
    /* Blue */
    --accent-secondary: #805ad5;
    /* Purple */
    --accent-tertiary: #dd6b20;
    /* Orange/Rust */

    /* UI Elements */
    --border-light: #e2e8f0;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    color: #1a202c;
    letter-spacing: -0.02em;
}

.code-font {
    font-family: var(--font-code);
}

/* Background Animation */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(49, 130, 206, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(128, 90, 213, 0.03) 0%, transparent 40%);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    font-family: var(--font-code);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #1a202c;
    transition: 0.3s;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40%;
    height: 4px;
    background: var(--accent-primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-text .greeting {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1a202c;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    font-family: var(--font-code);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(49, 130, 206, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(49, 130, 206, 0.23);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text-main);
    background: white;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.profile-img-container {
    position: relative;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(49, 130, 206, 0.08);
    /* Soft blue blob */
    z-index: -1;
    transform: scale(1.1) rotate(-5deg);
    animation: blobMorph 8s infinite alternate;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 50px;
    transform: rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: white;
    padding: 10px;
}

@keyframes blobMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1.05) rotate(-5deg);
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: scale(1.15) rotate(5deg);
    }
}

/* About Section */
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* Skills Grid (Pills) */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-pill:hover {
    transform: translateY(-2px);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: var(--shadow-hover);
}

/* Creative Projects Layout (Zig-Zag) */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-item.reverse {
    direction: rtl;
    /* For Visual Zig Zag */
}

.project-item.reverse .project-content {
    direction: ltr;
    /* Reset text direction */
}

.project-card-visual {
    background: white;
    border-radius: 16px;
    height: auto;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    /* Placeholder bg */
    position: relative;
    overflow: hidden;
}

.project-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-visual:hover img {
    transform: scale(1.05);
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Feature Accents */
.project-item.accent-blue .project-content h3 {
    color: var(--accent-primary);
}

.project-item.accent-purple .project-content h3 {
    color: var(--accent-secondary);
}

.project-item.accent-orange .project-content h3 {
    color: var(--accent-tertiary);
}

.project-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Achievements Grid (Masonry-ish) */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.achievement-photo-placeholder {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 2rem;
}

.achievement-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

/* Contact Section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-main);
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

.contact-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
        /* Reset zig-zag on mobile */
    }

    .profile-img {
        max-width: 300px;
        transform: rotate(0deg);
    }
}