/* =========================================
   HOME.CSS - Hero, Storytelling & Footer
   ========================================= */

/* --- 1. HERO SECTION (Split Layout) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes text left, image right */
    padding: 100px 10% 0 10%;
    gap: 50px;
}

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

.greeting {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-color);
}

/* --- TYPING ANIMATION --- */
.typing-container {
    display: inline-block;
    margin-bottom: 30px;
}

.typing-text {
    font-size: 1.5rem;
    color: #555;
    border-right: 3px solid var(--accent-color); 
    padding-right: 5px;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
    max-width: 500px;
}

/* --- HERO IMAGE (Right Side) --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* This styles the transparent PNG */
.hero-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 70vh; /* Prevents the image from getting too tall */
    object-fit: contain;
    /* Optional: A subtle float animation for the hero image */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- 2. STORYTELLING SECTIONS --- */
.home-section {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.home-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* A sleek underline for the section titles */
.home-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
}

.text-block {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #444;
    max-width: 800px;
    margin-bottom: 30px;
}

/* A specific layout for the "Goals" to make them stand out */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.goal-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--accent-color);
}

.goal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- 3. THE PHILOSOPHY (Blockquote Focus) --- */
.philosophy-section {
    background-color: #EFEFEA; /* Slightly darker than main bg for contrast */
    text-align: center;
    padding: 120px 10%;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.4;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-style: italic;
}

.philosophy-author {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================
   MOBILE RESPONSIVENESS (HOME PAGE ONLY)
   ========================================= */


@media (max-width: 768px) {
    /* --- 1. Hero Section --- */
    .hero {
        flex-direction: column;
        padding: 120px 7% 40px 7%; /* Increased left/right padding to 7% */
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem; 
        margin-bottom: 15px;
    }

    .typing-text {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 auto;
    }

    .hero-image-container {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .hero-image-container img {
        max-width: 90%;
        max-height: 40vh; 
    }

    /* --- 2. Sections (Purpose & The Catalyst) --- */
    .home-section {
        padding: 60px 7%; /* Increased left/right padding for better margins */
    }

    .home-section-title {
        font-size: 1.8rem; 
        margin-bottom: 25px;
    }

    .text-block {
        font-size: 1rem; 
        line-height: 1.6;
    }

    /* --- 3. What I Build (Cards) --- */
    .goals-grid {
        grid-template-columns: 1fr; 
        gap: 30px; /* Increased the vertical spacing between the cards */
        margin-top: 30px;
    }

    .goal-card {
        padding: 30px 25px; /* Added more vertical padding inside the card itself */
    }

    .goal-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px; /* Added space between the card title and the paragraph */
    }

    .goal-card p {
        font-size: 0.95rem; 
        line-height: 1.6; /* Improved readability */
    }

    /* --- 4. Philosophy Section (The Quote) --- */
    .philosophy-section {
        padding: 60px 7%; /* Matched the new 7% side padding */
    }

    .philosophy-quote {
        font-size: 1.3rem; 
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .philosophy-author {
        font-size: 0.95rem;
    }
}