/* === VARIABLES & GLOBAL STYLES === */
:root {
    /* Theme colors (easy to change site-wide) */
    --bg-color: #f8f9fa;
    --primary-text-color: #212529;
    --secondary-text-color: #6c757d;
    --accent-color: #007bff;
    --card-color: #ffffff;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

main {
    max-width: 1100px; /* Keeps content centered and not too wide */
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0; /* Spacing between sections */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* === ANIMATIONS === */
.hidden {
    /* Initial hidden state for scroll reveal effect */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
    /* State after animation is triggered */
    opacity: 1;
    transform: translateY(0);
}

/* === NAVBAR === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky; /* Navbar sticks to top on scroll */
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    /* Shadow appears when scrolling down */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .left a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text-color);
    text-decoration: none;
}

nav .right a {
    color: var(--secondary-text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

nav .right a:hover {
    color: var(--accent-color);
}

/* === HERO SECTION === */
.hero-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 90vh; /* Take up most of viewport */
}

.hero-section .text h2 {
    font-size: 3.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
}

.hero-section .text p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}

.hero-section .links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    margin-right: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-section .links a:hover {
    background-color: #0056b3;
    transform: translateY(-3px); /* Lift effect */
}

.hero-section .headshot img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--card-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === SKILLS SECTION === */
.skills-section .text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--secondary-text-color);
}

.skills-section .cells {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}

.skills-section .cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-section .cell:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skills-section .cell img {
    width: 60px;
    height: 60px;
}

/* === TESTIMONY & CONTACT SECTION === */
.testimony-section .group, 
.contact-section .group {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background-color: var(--card-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.person-details {
    text-align: center;
    flex-shrink: 0; /* Prevents shrinking in flex layout */
}

.person-details img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimony-section .text p {
    color: var(--secondary-text-color);
}

.testimony-section .text p:not(:last-child) {
    margin-bottom: 1.5rem;
}

.contact-section .text, 
.contact-section a {
    color: var(--secondary-text-color);
}

.contact-section a {
    color: var(--accent-color);
}

/* === FORM === */
form {
    width: 100%;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text-color);
    font-weight: 600;
}

form input, 
form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: #f1f3f5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

form input:focus, 
form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Glow effect */
}

form button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* === RESPONSIVENESS === */
@media (max-width: 900px) {
    /* Stack hero + contact + about sections vertically */
    .hero-section, 
    .testimony-section .group, 
    .contact-section .group {
        flex-direction: column;
    }
    .hero-section {
        text-align: center;
    }
    .hero-section .text h2 {
        text-align: center;
    }
}

@media (max-width: 600px) {
    /* Mobile-specific tweaks */
    body {
        font-size: 14px;
    }
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    main {
        padding: 0 1rem;
    }
    section {
        padding: 4rem 0;
    }
    h2 {
        font-size: 2rem;
    }
    .hero-section .text h2 {
        font-size: 2.5rem;
    }
    .hero-section .headshot img {
        width: 200px;
        height: 200px;
    }
}
