/* ===================================================
   Personal Portfolio - Kayden Huffman
   =================================================== */

/* --- 1. Global Styles & Variables --- */
:root {
    --color-deep-blue: #2c3e50;
    --color-dark-charcoal: #34495e;
    --color-accent-gold: #cdaA71;
    --color-off-white: #F9F9F9;
    --color-white: #FFFFFF;
    --color-light-gray: #ecf0f1;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-dark-charcoal);
    background-color: var(--color-off-white);
}

/* --- 2. Typography & Layout --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center {
    text-align: center;
}
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-deep-blue);
}
h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-deep-blue); }
p { margin-bottom: 1rem; }
a { color: var(--color-accent-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-deep-blue); }
section { padding: 80px 0; }

/* --- 3. Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: sticky; top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #e0e0e0;
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-deep-blue); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--color-dark-charcoal); }

/* --- 4. Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6)), url('../img/hero-background.jpg');
    background-size: cover; background-position: center;
    color: var(--color-white);
    padding: 140px 0;
    text-align: center;
}
#hero h1 { color: var(--color-white); }
#hero .subtitle { font-size: 1.25rem; font-weight: 400; max-width: 700px; margin: 0 auto 2rem; }
.cta-button-primary {
    display: inline-block; padding: 12px 28px;
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    border-radius: 5px; font-weight: 600;
    border: 2px solid var(--color-accent-gold);
    transition: all 0.3s ease;
}
.cta-button-primary:hover { background-color: transparent; border-color: var(--color-white); color: var(--color-white); }

/* --- 5. About Section (2-Column) --- */
#about { background-color: var(--color-white); }
.about-container {
    display: flex;
    align-items: center;
    gap: 5%; /* Creates space between image and text */
}
.about-image {
    flex-basis: 35%; /* Image takes up ~35% of the container width */
    max-width: 300px;
}
.about-image img {
    width: 100%;
    border-radius: 5px; /* Subtle rounded corners */
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}
.about-text {
    flex-basis: 60%; /* Text takes up the remaining space */
}
.about-text p {
    font-size: 1.05rem;
}

/* --- 6. Expertise Section --- */
#expertise { background-color: var(--color-light-gray); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.expertise-item {
    text-align: center;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 5px;
    /* MICRO-INTERACTION: Added transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* MICRO-INTERACTION: Hover effect for expertise cards */
.expertise-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.12);
}
.expertise-item ion-icon { font-size: 40px; color: var(--color-accent-gold); margin-bottom: 1rem; }

/* --- 7. Footer & Contact --- */
footer {
    background-color: var(--color-deep-blue);
    color: var(--color-light-gray);
    text-align: center;
    padding: 80px 0 0;
}
.contact-area {
    max-width: 650px;
    margin: 0 auto;
}
.contact-area h2 {
    color: var(--color-white);
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.contact-button {
    /* ALL ORIGINAL STYLES RESTORED */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 2px solid var(--color-light-gray);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    /* MICRO-INTERACTION TRANSITION */
    transition: all 0.3s ease, transform 0.2s ease;
}
.contact-button ion-icon {
    font-size: 1.2rem;
}
/* MICRO-INTERACTION HOVER EFFECT */
.contact-button:hover {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--color-dark-charcoal);
    margin-top: 80px;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- 8. Media Queries --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .expertise-grid { grid-template-columns: 1fr; }
    #hero { padding: 100px 0; }
    
    /* NEW: Makes the about section stack on mobile */
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
    }
}