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

:root {
    --primary-black: #000000;
    --secondary-black: #111111;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --accent-gray: #999999;
    
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-text {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.loading-text span {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    animation: loadingBounce 1.5s infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }

.loading-bar {
    width: 200px;
    height: 2px;
    background: var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: loadingSlide 2s infinite;
}

@keyframes loadingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-20px); }
}

@keyframes loadingSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

.logo-text {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-black);
    color: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.logo-text:hover {
    transform: rotate(5deg) scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--medium-gray);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--off-white);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    position: relative;
}

.title-line.highlight {
    color: var(--primary-black);
    position: relative;
}

.title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--off-white);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
}

.btn-outline:hover {
    background: var(--primary-black);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Profile Visual ===== */
/* This is the section that was fixed */

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-container {
    position: relative;
}

.profile-frame {
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

/* CORRECTED RULE 1: Styles the container */
.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

/* CORRECTED RULE 2: Styles the actual <img> tag */
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the circle */
}

/* ===== End of fixed section ===== */


.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: orbit 10s linear infinite;
}

.element-1 {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: 0;
    animation-delay: 2.5s;
}

.element-3 {
    bottom: 0;
    left: 50%;
    animation-delay: 5s;
}

.element-4 {
    top: 50%;
    left: 0;
    animation-delay: 7.5s;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--light-gray);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-black);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-black);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--off-white);
}

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

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-black);
    line-height: 1.8;
}

.about-details {
    display: flex;
    gap: 2rem;
}

.detail-item {
    text-align: center;
}

.detail-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.visual-item {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.visual-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.visual-item i {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.visual-item span {
    font-weight: 600;
    color: var(--primary-black);
}

/* ===== FEATURED WORK ===== */
.work-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    height: 600px;
}

.work-item {
    background: var(--primary-black);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item-large {
    grid-row: 1 / 3;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.work-bg {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    transition: var(--transition);
}

.work-item:hover .work-bg {
    opacity: 0.2;
    transform: scale(1.2);
}

.work-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-item-large .work-content h3 {
    font-size: 2rem;
}

.work-content p {
    color: var(--accent-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== LATEST CONTENT ===== */
.latest-content {
    background: var(--off-white);
}

.content-slider {
    position: relative;
    overflow: hidden;
    /* Removed border-radius */
}

.content-track {
    display: flex;
    transition: transform 0.5s ease;
}

.content-slide {
    min-width: 300px;
    background: var(--white);
    margin-right: 20px; /* Adjusted to 20px */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-slide:hover {
    transform: translateY(-5px);
}

.slide-image {
    height: 200px;
    background: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.slide-content {
    padding: 2rem;
}

.slide-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.slide-content p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--primary-black);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-black);
    transform: scale(1.1);
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    background: var(--primary-black);
    color: var(--white);
    text-align: center;
}

.social-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-content p {
    font-size: 1.1rem;
    color: var(--accent-gray);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.social-icon {
    font-size: 1.5rem;
}

.social-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.social-label {
    font-weight: 600;
}

.social-handle {
    font-size: 0.9rem;
    color: var(--accent-gray);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--white);
    color: var(--primary-black);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--accent-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px; /* Adjust to match navbar height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 100px; /* Add padding for navbar */
    }

    .hero-visual {
        /* Move the visual (profile pic) to the top on mobile */
        grid-row: 1;
    }

    .hero-text {
        grid-row: 2;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-details {
        justify-content: center;
        gap: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .work-item-large {
        grid-row: auto;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}