/* ===========================
   HOME PAGE CSS — Light Theme
   =========================== */

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(168, 121, 42, 0.07), transparent);
    pointer-events: none;
}
.line-1 { left: 25%; }
.line-2 { left: 50%; }
.line-3 { left: 75%; }

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-container {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(168, 121, 42, 0.07);
    border: 1px solid rgba(168, 121, 42, 0.22);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 40px;
    animation: fadeSlideDown 0.8s ease forwards;
}
.hero-tag i { font-size: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-name { display: flex; flex-direction: column; margin-bottom: 28px; }
.name-line { display: block; line-height: 1.05; opacity: 0; animation: fadeSlideUp 0.9s ease forwards; }

.name-line--fade {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    animation-delay: 0.2s;
}

.name-primary {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation-delay: 0.35s;
}

.hero-title-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 0.55s forwards;
}
.title-bar { width: 48px; height: 2px; background: var(--gold); flex-shrink: 0; }
.hero-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-summary {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 0.7s forwards;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeSlideUp 0.9s ease 0.85s forwards; }

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 40px; right: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards;
}
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); writing-mode: vertical-rl; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(0.6); opacity: 1; } }

/* --- Hero Visual with Profile Photo --- */
.hero-visual { 
    position: relative;
    flex-shrink: 0;
    opacity: 0; 
    animation: fadeIn 1.2s ease 0.8s forwards; 
}

.profile-photo-container {
    position: relative;
    width: 280px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(10%);
    transition: all 0.4s ease;
}

.profile-photo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.photo-border {
    position: absolute;
    inset: -1px;
    pointer-events: none;
}

.photo-border::before,
.photo-border::after {
    content: '';
    position: absolute;
    background: var(--gold);
    transition: all 0.3s ease;
}

.photo-border::before {
    top: -1px;
    left: -1px;
    width: 70px;
    height: 3px;
}

.photo-border::after {
    bottom: -1px;
    right: -1px;
    width: 70px;
    height: 3px;
}

.profile-photo:hover .photo-border::before {
    width: 100px;
}

.profile-photo:hover .photo-border::after {
    width: 100px;
}

/* --- Fallback when no image is available --- */
.profile-photo.no-image {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo.no-image::before {
    content: 'N';
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 300;
    color: rgba(168, 121, 42, 0.1);
    line-height: 1;
}

/* --- Floating Badges --- */
.floating-badge {
    position: absolute;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    animation: float 6s ease-in-out infinite;
}
.floating-badge i { color: var(--gold); font-size: 0.7rem; }
.badge-1 { top: -16px; left: -90px; animation-delay: 0s; }
.badge-2 { top: 50%; left: -110px; transform: translateY(-50%); animation-delay: 1.5s; }
.badge-3 { bottom: -16px; left: -80px; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.badge-2 { animation: float2 6s ease-in-out 1.5s infinite; }
@keyframes float2 { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 8px)); } }

/* --- What I Do --- */
.what-i-do { padding: var(--section-pad) 0; background: var(--bg-mid); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
    padding: 40px 34px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    opacity: 0; transform: translateY(24px);
    box-shadow: var(--shadow-card);
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform 0.5s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(168, 121, 42, 0.2); box-shadow: var(--shadow-hover); }
.card:hover::before { transform: scaleX(1); }
.card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

.card-icon { width: 52px; height: 52px; background: rgba(168, 121, 42, 0.08); border: 1px solid rgba(168, 121, 42, 0.2); display: flex; align-items: center; justify-content: center; border-radius: 3px; margin-bottom: 24px; font-size: 1.2rem; color: var(--gold); }
.card-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400; color: var(--text-primary); margin-bottom: 14px; }
.card-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; }

/* --- Featured Projects --- */
.featured-projects { padding: var(--section-pad) 0; background: var(--bg); border-bottom: 1px solid var(--border-subtle); }
.project-list { display: flex; flex-direction: column; margin-bottom: 56px; }
.project-item { display: flex; align-items: flex-start; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--border-subtle); transition: all var(--transition); }
.project-item:first-child { border-top: 1px solid var(--border-subtle); }
.project-item:hover .project-number { color: var(--gold); }
.project-item:hover .project-name { color: var(--gold); }

.project-number { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: rgba(168, 121, 42, 0.18); line-height: 1; flex-shrink: 0; width: 70px; transition: color var(--transition); }
.project-category { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.project-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--text-primary); margin-bottom: 12px; transition: color var(--transition); }
.project-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; max-width: 620px; margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.projects-cta { text-align: center; }

/* --- CTA Strip --- */
.cta-strip { padding: 80px 0; background: var(--bg-mid); border-top: 1px solid var(--border-subtle); }
.cta-container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; color: var(--text-primary); margin-bottom: 8px; }
.cta-text p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Animations --- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 1100px) { 
    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-container {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-tag {
        display: inline-flex;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        position: relative;
        transform: none;
    }
    
    .profile-photo-container {
        width: 240px;
        height: 290px;
    }
    
    /* Hide floating badges on smaller screens */
    .floating-badge {
        display: none;
    }
    
    .hero-scroll { 
        right: 32px; 
    } 
}

@media (max-width: 768px) {
    .hero { 
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-wrapper {
        padding: 0 20px;
    }
    
    .profile-photo-container {
        width: 200px;
        height: 240px;
    }
    
    .name-primary {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .cards-grid { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    
    .project-item { 
        gap: 20px; 
    }
    
    .project-number { 
        font-size: 2rem; 
        width: 50px; 
    }
    
    .cta-container { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .hero-scroll { 
        display: none; 
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        gap: 30px;
    }
    
    .profile-photo-container {
        width: 180px;
        height: 220px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}