/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Light Theme Minimalism */
    --bg-color: #ffffff;
    --text-color-main: #1a1a1a;
    --text-color-secondary: #555555;
    --accent-color: #000000;
    --card-bg: #f9f9f9;
    --border-color: #e0e0e0;

    /* Fonts */
    --body-font: 'Manrope', sans-serif;
    --title-font: 'Playfair Display', serif;

    /* Typography Sizes */
    --big-font-size: 4rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-3: 3rem;
    --mb-4: 4rem;

    /* Z-index */
    --z-fixed: 100;
}

/* Responsive Typo */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 7.5rem;
        --h1-font-size: 4.5rem;
        --h2-font-size: 3rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.1rem;
    }
}

/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--title-font);
    font-weight: 400;
    color: var(--text-color-main);
}

ul {
    list-style: none;
}

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

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

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.nav {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--body-font);
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

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

.nav-toggle {
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.nav-close {
    display: none;
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        background-color: var(--bg-color);
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: var(--z-fixed);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--title-font);
    }

    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
    }

    .show-menu {
        right: 0;
    }
}

@media screen and (min-width: 769px) {
    .nav-list {
        display: flex;
        gap: 3rem;
    }
}

/* ==================== HERO HELLO REDESIGN ==================== */
.hero {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    background-color: #fcfcfc;
    /* Slightly off-white */
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

/* --- Navigation Tweaks --- */
.nav {
    justify-content: space-between;
}

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

.nav-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social-link {
    font-size: 1.2rem;
    color: var(--text-color-main);
    transition: 0.3s;
}

.nav-social-link:hover {
    color: var(--text-color-secondary);
    transform: translateY(-2px);
}

/* --- Hero Layout Mobile First --- */
.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    min-height: auto;
}

/* --- Hero Layout Desktop --- */
@media screen and (min-width: 968px) {
    .hero-container {
        grid-template-columns: 40px 1fr 1.2fr;
        /* Narrow Sidebar | Content | Image (Wider) */
        /* Narrow Sidebar | Content | Image */
        grid-template-rows: 1fr;
        height: 85vh;
        /* Increased height to scale image up */
        align-items: center;
        gap: 3rem;
    }
}

/* --- Left Sidebar (Exact Match) --- */
.hero-sidebar {
    display: none;
    /* Hidden on mobile */
}

@media screen and (min-width: 968px) {
    .hero-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 85%;
        /* Increased for longer line */
        max-height: 700px;
        padding-top: 0;
        position: relative;
    }

    .sidebar-text-top,
    .sidebar-text-bottom {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.75rem;
        color: #555;
        /* Darker text */
        white-space: nowrap;
    }

    .sidebar-line {
        flex-grow: 1;
        width: 1px;
        background-color: #999;
        /* Darker line */
        margin: 1.5rem 0;
    }
}

/* --- Content Side --- */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    /* Mobile: less padding */
    height: 100%;
    position: relative;
}

@media screen and (min-width: 968px) {
    .hero-content {
        padding-top: 20vh;
        /* Desktop: more padding */
    }
}

.hero-stats {
    display: flex;
    gap: 4rem;
    /* Specific gap */
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 300;
    font-family: var(--body-font);
    color: #333;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.2rem;
}

.hero-main-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-family: var(--body-font);
    font-weight: 300;
    /* Regular weight like reference */
    font-size: 3.5rem;
    /* Mobile default */
    /* Matched reference scale */
    line-height: 1;
    letter-spacing: -2px;
    color: #1a1a1a;
    margin-left: -0.5rem;
    /* Optical alignment */
}

/* Desktop size */
@media screen and (min-width: 968px) {
    .hero-title {
        font-size: 11rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
    padding-bottom: 2rem;
    /* Add some breathing room from bottom edge */
}

.scroll-down {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* --- Image Side --- */
.hero-visual {
    height: 100%;
    display: flex;
    align-items: flex-end;
    /* Align bottom like reference */
    justify-content: center;
}

.hero-img-box {
    width: 100%;
    height: 50vh;
    /* Mobile: reasonable height */
    max-height: 400px;
    /* Mobile: cap max height */
    overflow: hidden;
    position: relative;
    border-radius: 0;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.hero-img-box:hover {
    filter: grayscale(0%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

@media screen and (min-width: 968px) {
    .hero-img-box {
        height: 100%;
        max-height: none;
    }
}

/* ==================== ABOUT ==================== */
.about-container {
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--text-color-main);
}

.section-arrow {
    font-size: 1rem;
    color: var(--text-color-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-role-highlight {
    font-size: 1.5rem;
    font-family: var(--body-font);
    color: var(--text-color-secondary);
    font-weight: 300;
    line-height: 1.4;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.about-text-lg {
    font-family: var(--body-font);
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 400;
    max-width: 800px;
}

.about-text-sm {
    color: var(--text-color-secondary);
    max-width: 600px;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-header {
        margin-bottom: 1rem;
    }

    .about-text-lg {
        font-size: 1.5rem;
    }
}

/* ==================== SKILLS ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skills-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: 0.3s;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skills-title {
    font-family: var(--body-font);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-title i {
    color: var(--text-color-secondary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skills-list li {
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* ==================== CONTACT ==================== */
.container-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 6rem;
}

.contact-title {
    font-size: 3rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.contact-btn {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--text-color-main);
    padding-bottom: 0.5rem;
    transition: 0.3s;
}

.contact-btn:hover {
    color: var(--text-color-secondary);
    border-color: var(--text-color-secondary);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.social-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copyright {
    font-size: var(--small-font-size);
    color: var(--text-color-secondary);
}

@media screen and (min-width: 1100px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== PROJECTS ==================== */
.projects {
    background-color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media screen and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background-color: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.project-tech {
    font-size: 0.8rem;
    color: #666;
    font-family: var(--body-font);
    display: block;
}

.project-details {
    list-style: none;
    padding: 0;
}

.project-details li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.project-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.footer-view-count {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
    font-family: var(--body-font);
    color: var(--text-color-secondary);
}