/* Base Styles & Variables */
:root {
    --primary-navy: #0f172a; /* Deep slate background/header color */
    --secondary-slate: #334155; /* Mid-slate text and border accent */
    --accent-blue: #0ea5e9; /* Electric teal / premium accent */
    --accent-hover: #0284c7; /* Hover state teal */
    --coral-accent: #f59e0b; /* Warm Amber instead of harsh red */
    --bg-light: #f8fafc; /* Professional off-white surface color */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #cbd5e1; /* Sleeker, high-fidelity gray borders */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--secondary-slate); }

/* Navigation */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-navy);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--secondary-slate);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links > li > a:hover, .nav-links > li > a.active {
    color: var(--accent-blue);
}

.nav-links > li > a:hover::after, .nav-links > li > a.active::after {
    width: 100%;
}

/* Dropdown CSS */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    z-index: 101;
    top: 100%; /* Fixes the gap issue */
    left: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--secondary-slate);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-light);
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--accent-blue);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInNav 0.2s ease;
}

@keyframes fadeInNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    border: 1px solid var(--accent-blue);
}

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

.btn-primary-small {
    padding: 0.5rem 1rem;
    background-color: var(--primary-navy);
    color: var(--white) !important;
    border-radius: var(--radius-md);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-primary-small:hover {
    background-color: var(--secondary-slate);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-navy);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--secondary-slate);
}

.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.align-center { align-items: center; }

/* Hero Section Redesigned */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    text-align: center;
}
.hero-redesigned {
    padding: 2rem 0 0;
    text-align: left;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
}

.page-hero {
    position: relative;
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    text-align: center;
    overflow: hidden;
}

.page-hero h1 {
    color: var(--primary-navy);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    color: var(--secondary-slate);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 30%);
    animation: slowSpin 25s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 6rem; /* Space for the preview row */
}

.hero-text-col {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary-slate);
    margin: 1.5rem 0 2.5rem;
    max-width: 100%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Floating Cards Visual */
.hero-visual-col {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-portrait-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 0; /* Behind float cards, above glow */
    border: 4px solid var(--white);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15), 0 10px 20px -6px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15), 0 10px 20px -6px rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-navy);
    z-index: 1;
    animation: float 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.float-card .icon {
    font-size: 1.25rem;
}

@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(15px, -25px) rotate(3deg); }
    66% { transform: translate(-10px, 15px) rotate(-2deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.card-1 { top: 5%; left: 5%; animation-delay: 0s; }
.card-2 { top: 25%; right: 2%; animation-delay: -2s; }
.card-3 { top: 40%; left: 0%; animation-delay: -4s; }
.card-4 { top: 55%; right: 5%; animation-delay: -1s; }
.card-5 { bottom: 5%; left: 10%; animation-delay: -3s; }
.card-6 { bottom: 20%; right: 15%; animation-delay: -5s; border: 1px solid rgba(34, 197, 94, 0.5); }
.card-7 { bottom: 10%; right: 25%; animation-delay: -2s; border: 1px solid rgba(236, 72, 153, 0.5); }

/* Hero Preview Row */
.hero-preview-row {
    position: absolute;
    bottom: -2rem; /* Pulls it down to overlap the next section */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
    padding: 0 2rem;
}

.preview-card {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--secondary-slate);
    font-size: 0.95rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
}

.philosophy-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Code Mockup Window */
.mockup-window {
    background: #1e293b;
    border-radius: var(--radius-lg);
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.mockup-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.mockup-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #94a3b8;
}

.code-line { margin-bottom: 0.75rem; }
.code-line.indent { padding-left: 1.5rem; color: #cbd5e1; }
.code-line.success { color: #22c55e; margin-top: 1.5rem; font-weight: bold; }

/* Idea Gallery */
.gallery {
    padding: 6rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-slate);
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
}

.card-image {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-text {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

.bg-blue { background: #2563eb; }
.bg-slate { background: #475569; }
.bg-navy { background: #0f172a; }
.bg-accent { background: #0ea5e9; }

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.view-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn::after {
    content: "→";
    transition: transform 0.2s ease;
}

.view-btn:hover::after {
    transform: translateX(5px);
}

/* Interactive Dashboard Mockup */
.bg-interactive {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.text-light h2, .text-light p {
    color: var(--white);
}

.platform-mockup {
    padding: 6rem 0;
}

.dashboard-ui {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.dash-sidebar {
    width: 250px;
    background: #0f172a;
    color: var(--white);
    padding: 2rem 1rem;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
}

.dash-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    color: #60a5fa;
}

.dash-nav {
    list-style: none;
}

.dash-nav li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-nav li:hover, .dash-nav li.active {
    background: #1e293b;
    color: var(--white);
}

.dash-main {
    flex-grow: 1;
    padding: 2rem 3rem;
    background: #f1f5f9;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dash-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-initial {
    align-self: flex-start;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.dash-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dash-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.dash-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-slate);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    cursor: help;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.date-badge {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.check-list li.pending {
    border-left: 4px solid #eab308;
    background: #fefce8;
}

.check-list li.pending .date-badge {
    color: #a16207;
    background: #fef9c3;
}

.check-list li:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.check-list li.completed { border-left: 4px solid #22c55e; }
.check-list li.missing { border-left: 4px solid #ef4444; background: #fff5f5; }

.tooltip-box {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 10;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
}

.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-navy) transparent transparent transparent;
}

.check-list li:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
}

.eligibility-group {
    margin-bottom: 1.5rem;
}

.eligibility-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dash-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dash-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-slate);
    transition: all 0.2s;
}

.dash-btn:hover {
    background: #f1f5f9;
}

/* Meet Andrew Page Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-col {
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.milestone-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.milestone-image {
    width: 300px;
    flex-shrink: 0;
}

.award-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.milestone-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.milestone-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.presentation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.presentation-visual {
    height: 200px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.presentation-details {
    padding: 1.5rem;
}

.presentation-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.presentation-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.citation {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .milestone-card {
        flex-direction: column;
    }
    
    .milestone-image {
        width: 100%;
        height: 250px;
    }
}

.dash-btn.active {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

.info-bubble {
    background: #eff6ff;
    border-left: 4px solid var(--accent-blue);
    padding: 1rem;
    font-size: 0.9rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(15, 23, 42, 0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
}

/* CTA & Contact */
.cta {
    padding: 6rem 0;
    background: var(--bg-light);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
    color: var(--white);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2, .contact-info p {
    color: var(--white);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-form {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.2s ease;
    color: var(--text-main);
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0;
}

.footer-sub {
    color: #94a3b8;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .gallery-grid, .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    h1 { font-size: 2.5rem; }
    
    .gallery-card {
        flex-direction: column;
    }
    
    .card-image {
        width: 100%;
        height: 150px;
    }

    .hero-redesigned {
        padding: 2rem 0 0;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual-col {
        height: 350px;
    }

    .hero-preview-row {
        position: relative;
        bottom: 0;
        flex-direction: column;
        gap: 0.5rem;
        padding: 2rem;
    }

    .hero-grid {
        padding-bottom: 2rem;
    }
}

/* Resource Gallery Styles */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-image {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    width: calc(100% + 3rem);
    height: 140px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
    display: block;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-badge-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.resource-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.resource-badge.external {
    background: #f1f5f9;
    color: var(--secondary-slate);
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    flex-grow: 1;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.resource-card .btn-primary, .resource-card .btn-secondary {
    align-self: flex-start;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.resource-card.placeholder {
    background: #f8fafc;
    border-style: dashed;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: #1e293b; /* dark placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.video-wrapper iframe, .video-wrapper video, .video-wrapper > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
