/* --- style.css --- */

/* 1. Global Styles & Variables */
:root {
    --color-primary: #6e48d9;
    --color-primary-dark: #4a23a0;
    --color-secondary: #00c6ff;
    --color-bg-light: #f7f9fc;
    --color-bg-dark: #1a1a2e;
    --color-text: #333;
    --color-text-light: #f1f1f1;
    --color-white: #ffffff;
    --color-grey: #aaa;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius: 12px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; color: #555; }

/* 2. Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(110, 72, 217, 0.3);
}

.button-nav-cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}
.button-nav-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}


/* 3. Header & Navigation (Mobile-First) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
}

.site-header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}
.logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: none; /* Hidden on mobile */
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Header height */
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-links.active {
    display: flex; /* Shown by JS */
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}
.nav-links a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: block; /* Show on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

/* 4. Hero Section */
.hero-section {
    background: var(--color-bg-light);
    padding-top: 100px;
    padding-bottom: 60px;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}
.hero-content .subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
}
.hero-image img {
    max-width: 300px;
    max-height: 550px;
    margin: 0 auto;
}

/* 5. Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.feature-card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.feature-card i {
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* 6. Gallery Section */
.gallery-section {
    background: var(--color-bg-light);
}
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}
.scroll-container figure {
    flex-shrink: 0;
    width: 250px;
    height:557px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
/* Custom scrollbar */
.scroll-container::-webkit-scrollbar {
    height: 8px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}
.scroll-container::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
}

/* 7. Tech Stack Section */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.stack-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* 8. About Me Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    text-align: center;
}
.about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 5px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 10px;
}
.social-links a:hover {
    color: var(--color-primary);
}

/* 9. Download Section */
.download-section {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
}
.download-section h2 {
    color: var(--color-white);
}
.download-section p {
    color: var(--color-grey);
    margin-bottom: 2rem;
}

/* 10. Footer */
.site-footer {
    background: #f9f9f9;
    padding: 30px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #eee;
}

/* ------------------------------ */
/* 11. Responsive Media Queries   */
/* ------------------------------ */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    
    .nav-toggle {
        display: none; /* Hide hamburger */
    }
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 15px;
    }
    .nav-links a {
        padding: 5px 10px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .hero-image img {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stack-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr 2fr;
        gap: 50px;
        text-align: left;
    }
    .about-photo img {
        margin: 0;
    }
}