/* =========================================
   HOME HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh; /* Home gets full height */
    margin-top: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1; 
    animation: fadeInBanner 4.5s ease-out forwards;
}

@keyframes fadeInBanner {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: var(--light);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero h1 strong {
    font-weight: 700;
    display: block;
    color: var(--accent);
}

.hero p {
    font-size: 1.3rem;
    color: var(--mid);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 0.8s ease 0.4s both;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(234, 84, 85, 0.15);
}

.skill-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Timeline */
.experience-timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--light);
}

.timeline-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.timeline-item .period {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Certifications */
.certifications-section {
    margin-top: 4rem;
}

.certifications-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.certs-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-item {
    background: white;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 450px;
}

.cert-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: var(--text-light);
}

/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

/* Tablet: Move skills below text, keep 2x3 grid */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Stack CTA Buttons & Full Width */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Offset Hero Backgrounds Left by 10% */
    /* 50% (center) - 10% = 40% */
    .hero,
    .hero-bg-overlay {
        background-position: 55% center !important;
    }
}