/*
 * Custom stylesheet for Nandhish Nuchina’s professional portfolio site.
 *
 * This theme draws inspiration from premium professional‑services websites. It
 * uses a sophisticated palette of deep navy, warm burgundy, muted gold and
 * cream to create an upscale yet approachable look. Typography mixes the
 * classic elegance of Playfair Display for headings with the clean legibility
 * of Source Sans Pro for body text. The layout relies on flexbox and grid
 * rather than JavaScript frameworks and is fully responsive.
 */

/* Use modern sans-serif typefaces similar to the Harman PhD Consulting site. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Root variables for consistent styling */
:root {
    /* Refreshed palette modeled closely on harmanphdconsulting.com. A deeper navy anchors
       the top bar and footer, while a vibrant azure provides energy for buttons and
       highlights. A soft off‑white background keeps content airy and readable. */
    --primary-color: #0C6AB8;      /* Vibrant azure for primary buttons and links */
    --secondary-color: #031E42;    /* Deep navy for header, footer and dark accents */
    --background-color: #F4F7FB;   /* Very light blue/grey for page backgrounds */
    --accent-color: #E86A33;       /* Warm accent colour used sparingly (calls‑to‑action) */
    --text-color: #2A2A2A;         /* Rich dark grey for body text */
    --muted-color: #6E7A8A;        /* Muted blue‑grey for secondary text */
    --white: #FFFFFF;
    --max-width: 1200px;
}

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

body {
    /* Use Inter for body text, echoing the harman site */
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header and Navigation */
/* Top bar – displays location, email and availability. Not sticky. */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-bar-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
}

.top-bar .separator {
    margin: 0 4px;
    color: var(--white);
}

/* Main navigation bar – sticky to top of viewport. White background with dark text. */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.brand a {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Primary button used in header and across site */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Section titles */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Hero Section */
/* The hero section features a full‑width gradient background inspired by the Harman
   site. A generous border radius on the bottom corners creates the illusion of
   the coloured panel floating above a white page. */
.hero {
    background:
        linear-gradient(rgba(7, 48, 108, 0.45), rgba(7, 48, 108, 0.45)),
        url('../images/hero-background.png') center center / cover no-repeat ;
    color: var(--white);
    padding: 140px 0 160px;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text {
    flex: 1 1 500px;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--white);
    opacity: 0.9;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
    color: var(--white);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    flex: 1 1 320px;
    text-align: center;
}

.hero-image img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* About summary section on the home page */
.about-summary {
    background-color: var(--white);
    padding: 80px 0;
}
.about-summary-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.summary-image {
    flex: 1 1 300px;
    text-align: center;
}
.summary-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}
.summary-text {
    flex: 1 1 500px;
}
.summary-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.summary-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.summary-text .btn {
    margin-top: 1rem;
}

/* Focus Areas Section */
.focus-areas {
    background-color: var(--background-color);
    padding: 80px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted-color);
    line-height: 1.5;
}

/* Why RA Section */
.why-ra {
    background-color: var(--white);
    padding: 80px 0;
}

.why-ra p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Proof Points */
.proof-points {
    background-color: var(--background-color);
    padding: 60px 0;
}

.proof-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    list-style: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 0;
}

.proof-list li {
    font-size: 1rem;
    color: var(--muted-color);
    position: relative;
    padding-left: 26px;
}

.proof-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding: 80px 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1 1 300px;
    text-align: center;
}

.about-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.about-text {
    flex: 1 1 500px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.pillar {
    background-color: var(--background-color);
    border-left: 5px solid var(--primary-color);
    padding: 16px;
    border-radius: 4px;
}

.pillar h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--muted-color);
}

/* Portfolio Overview Page */
.portfolio-section {
    background-color: var(--background-color);
    padding: 80px 0;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    transition: box-shadow 0.3s ease-in-out;
}

.portfolio-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.portfolio-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 16px;
}

.portfolio-item a {
    font-weight: 600;
    color: var(--primary-color);
}

.portfolio-item a:hover {
    color: var(--accent-color);
}

/* Portfolio Detail Page */
.portfolio-detail {
    background-color: var(--white);
    padding: 80px 0;
}

.portfolio-detail h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.portfolio-detail p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-detail .back-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
}

/* Resume Page */
.resume-section {
    background-color: var(--white);
    padding: 80px 0;
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
}

.resume-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.resume-entry {
    margin-bottom: 30px;
}

.resume-entry h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.resume-entry h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.resume-entry p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 4px;
}

/* Writing & Reading Page */
.writing-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

.writing-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.writing-list {
    list-style: none;
    margin-bottom: 40px;
}

.writing-list li {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 8px;
}

.movie-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Override heading fonts to use Poppins instead of Playfair for a modern feel */
h1, h2, h3, h4, h5,
.section-title,
.hero-text h1,
.card h3,
.pillar h4,
.portfolio-item h3,
.portfolio-detail h1,
.resume-container h2,
.resume-entry h3,
.writing-section h3 {
    font-family: 'Poppins', sans-serif;
}

/* Contact Page */
.contact-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    height: 140px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contact-form button:hover {
    background-color: var(--accent-color);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 16px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Large footer inspired by Harman PhD Consulting’s bottom header. It features
   multiple columns for about, focus areas, quick links and contact info. */
.footer-large {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.footer-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-col a.btn-footer {
    margin-top: 12px;
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
}

.footer-col a.btn-footer:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    background-color: var(--secondary-color);
    color: var(--muted-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Slightly reduce the hero title size for smaller screens */
    .hero-text h1 {
        font-size: 2.4rem;
    }

    /* On mobile, stack the navigation vertically instead of hiding it. This ensures all
       menu options remain accessible without requiring a desktop view. */
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        align-items: center;
    }
    .nav-links li {
        text-align: center;
    }
    /* Give the header’s call-to-action button some breathing room below the stacked nav links */
    .nav-container .btn {
        margin-top: 1rem;
    }

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image img,
    .about-image img {
        width: 240px;
        height: 240px;
    }
}