:root {
    --bg-color: #F5F5F7; /* Apple-like off-white */
    --text-color: #111;
    --accent: #3B82F6;
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'General Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden; /* Hide scrollbar during preloader */
}

/* 1. PRELOADER STYLES */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.counter {
    font-family: var(--font-heading);
    font-size: 10vw;
    font-weight: 600;
}

.preloader-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* 2. NAVIGATION */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-contact {
    background: #000;
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

/* 3. HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 10vw;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
}

.line {
    overflow: hidden; /* For reveal animation */
}

.line span {
    display: block;
    transform: translateY(100%); /* Initial state hidden */
}

.hero-sub {
    font-size: 1.5rem;
    margin-top: 2rem;
    opacity: 0.7;
}

/* 4. WORK SECTION (Project List) */
.work-section {
    padding: 10rem 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
    margin-bottom: 4rem;
}

.project-item {
    position: relative;
    border-top: 1px solid #ccc;
    transition: all 0.5s ease;
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
}

/* The Image Hover Reveal Effect */
.project-img-wrapper {
    position: fixed; /* Moves with cursor via JS later if desired, or static reveal */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-item:hover .project-img-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-item:hover {
    background-color: #fff;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* 5. BROWSER WINDOW ABOUT SECTION */
.about-section {
    padding: 5rem 5%;
    background: #e0e0e2;
    display: flex;
    justify-content: center;
}

.browser-window {
    width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.window-header {
    background: #f1f1f1;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.address-bar {
    margin: 0 auto;
    background: #fff;
    padding: 0.2rem 2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    width: 50%;
    text-align: center;
}

.window-body {
    padding: 4rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.bio-img img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

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

.bio-text h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* 6. FOOTER */
.footer {
    background: #000;
    color: #fff;
    padding: 8rem 5% 2rem 5%;
    text-align: center;
}

.footer h2 {
    font-family: var(--font-heading);
    font-size: 5vw;
    margin-bottom: 2rem;
}

.email-link {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid #555;
}

.footer-bottom {
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
    font-size: 0.9rem;
}

.socials a {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 15vw; }
    .bio-grid { grid-template-columns: 1fr; }
    .project-link { flex-direction: column; align-items: flex-start; }
    .project-img-wrapper { display: none; } /* Hide fancy hover on mobile */
}