/* ========================================
   ROSE-HULMAN THEME
   Maroon & White with Modern Dark Aesthetic
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* CSS Custom Properties */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;

    /* Rose-Hulman Colors */
    --rose-maroon: #800000;
    --rose-maroon-light: #9B2335;
    --rose-maroon-dark: #5c0000;
    --rose-white: #ffffff;

    --accent-primary: #9B2335;
    --accent-secondary: #ffffff;
    --accent-gradient: linear-gradient(135deg, #800000 0%, #9B2335 60%, #c4a4a4 100%);
    --accent-glow: 0 0 20px rgba(155, 35, 53, 0.4);

    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(155, 35, 53, 0.4);

    --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    --container-width: 1200px;
    --nav-height: 70px;
    --banner-height: 0px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Animated Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(155, 35, 53, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 35, 53, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Ambient Glow Effect */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(155, 35, 53, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(155, 35, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-container {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition-medium);
}

.nav-container.scrolled {
    background: rgba(10, 10, 10, 0.99);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    filter: brightness(1.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9B2335;
    background: linear-gradient(90deg, #9B2335 0%, #9B2335 40%, #ffffff 50%, #9B2335 60%, #9B2335 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: -100% 50%; }
}

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

.nav-link {
    position: relative;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    overflow: hidden;
    letter-spacing: 0.01em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(155, 35, 53, 0.3);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link.active {
    color: #e8a0a0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + var(--banner-height)) 3rem 3rem;
    position: relative;
    background: url('background-pictures/rose-union.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    text-align: left;
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(155, 35, 53, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-family: var(--font-primary);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 500px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

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

.section-header .hero-buttons,
.page-header .hero-buttons {
    display: inline-flex;
    justify-content: center;
}

.hero .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(155, 35, 53, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(155, 35, 53, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 1.5rem 1.5rem;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(155, 35, 53, 0.15);
    border: 1px solid rgba(155, 35, 53, 0.4);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.125rem;
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(155, 35, 53, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 35, 53, 0.15);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.card-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition-medium);
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--accent-gradient);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(20px);
}

.about-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(155, 35, 53, 0.15);
    border: 1px solid rgba(155, 35, 53, 0.25);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(155, 35, 53, 0.25);
    transform: translateY(-2px);
}

/* ========================================
   PORTFOLIO
   ======================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-medium);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

/* ========================================
   GALLERY (Replacement for Sliders)
   ======================================== */

.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.gallery-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-card {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-medium);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: #ffffff;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-value:hover {
    color: var(--accent-primary);
}

/* LinkedIn Pulse Button */
.linkedin-btn-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0077b5;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.25rem;
    text-decoration: none;
    margin-top: 0.75rem;
    animation: linkedin-pulse 2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.linkedin-btn-pulse:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.5);
    animation: none;
}

@keyframes linkedin-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 119, 181, 0.4);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 0 10px rgba(0, 119, 181, 0);
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Page Header (for inner pages) */
.page-header {
    padding: calc(var(--nav-height) + 1rem) 1.5rem 1rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(155, 35, 53, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1.125rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Number Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + var(--banner-height) - 1px);
        right: 0;
        left: auto;
        width: clamp(220px, 27vw, 320px);
        max-height: calc(100vh - (var(--nav-height) + var(--banner-height)));
        background: #ffffff;
        flex-direction: column;
        padding: 0.35rem 0.75rem 0.5rem;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        transition: transform var(--transition-medium), opacity var(--transition-medium);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        border-top-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 12px;
        box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.2);
        z-index: 999;
        pointer-events: none;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.65rem 0.75rem;
        text-align: left;
        color: #111111;
        background: transparent;
        border-radius: 8px;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        color: #5c0000;
        background: transparent;
    }

    .nav-link.active {
        color: #9B2335;
        background: transparent;
    }

    .nav-links li + li {
        margin-top: 0.2rem;
    }

    .nav-link.fun-link {
        background: none !important;
        -webkit-text-fill-color: #111111 !important;
        color: #111111 !important;
        animation: none !important;
    }

    .nav-link.fun-link:hover {
        color: #5c0000 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: calc(var(--nav-height) + var(--banner-height)) 1.5rem 3rem;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: auto;
        max-width: none;
        justify-content: flex-start;
    }

    .btn {
        justify-content: flex-start;
    }

    .section {
        padding: 1.25rem 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: 200px;
        height: 135px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ENHANCED RESPONSIVE STYLES
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Page headers */
    .page-header {
        padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Services/cards grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Contact grid - 2 columns on tablet */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Contact card adjustments */
    .contact-card {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-value {
        font-size: 0.95rem;
    }

    /* LinkedIn button */
    .linkedin-btn-pulse {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 1rem;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Hero buttons center on mobile */
    .hero .hero-buttons {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .hero .hero-buttons .btn {
        width: auto;
        max-width: none;
        justify-content: flex-start;
    }

    /* Stats */
    .rose-stats {
        gap: 1rem;
    }

    .rose-stat-number {
        font-size: 2rem;
    }

    .rose-stat-label {
        font-size: 0.75rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    /* Contact grid - single column */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Page header */
    .page-header {
        padding: calc(var(--nav-height) + 1.5rem) 1rem 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Cards */
    .card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    /* Stats */
    .rose-stat-number {
        font-size: 1.75rem;
    }

    /* About section */
    .about-image {
        max-width: 250px;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    /* Skills list */
    .skills-list {
        gap: 0.4rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Timeline */
    .timeline-date {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Gallery */
    .gallery-item {
        width: 150px;
        height: 100px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   RESUME/ABOUT PAGE STYLES
   ======================================== */

/* Timeline for Education & Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 3px solid #ffffff;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(155, 35, 53, 0.15);
    border: 1px solid rgba(155, 35, 53, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-place {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Experience List */
.experience-list {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
}

.experience-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.skills-grid .card {
    text-align: center;
}

.skills-grid .card-icon {
    margin: 0 auto 1.5rem;
}

.skills-grid .skills-list {
    justify-content: center;
    margin-top: 1rem;
}

/* Logo text enhancement */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Page header buttons animation fix */
.page-header .hero-buttons {
    opacity: 1;
    animation: none;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        width: 12px;
        height: 12px;
        left: -7px;
    }
}

/* ========================================
   SECTION BACKGROUNDS WITH OVERLAYS
   ======================================== */

/* Base background section styles */
.section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.section-bg > * {
    position: relative;
    z-index: 1;
}

/* Code Background - for tech/projects sections */
.bg-code {
    background-image: url('background-pictures/computer-code-background.jpg');
}

.bg-code::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(128, 0, 0, 0.7) 100%);
}

.bg-code,
.bg-code .section-title,
.bg-code .section-subtitle,
.bg-code .card-title,
.bg-code .card-description,
.bg-code p {
    color: #ffffff;
}

.bg-code .section-subtitle,
.bg-code .card-description,
.bg-code .text-secondary {
    color: rgba(255, 255, 255, 0.85);
}

.bg-code .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.bg-code .card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Campus Background - for Rose-Hulman sections */
.bg-campus {
    background-image: url('background-pictures/rose-campus-1.jpg');
}

.bg-campus::before {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.bg-campus,
.bg-campus .section-title,
.bg-campus .section-subtitle,
.bg-campus .card-title,
.bg-campus .card-description,
.bg-campus p {
    color: #ffffff;
}

.bg-campus .section-subtitle,
.bg-campus .card-description {
    color: rgba(255, 255, 255, 0.85);
}

.bg-campus .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.bg-campus .card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Stars Background - for dramatic/CTA sections */
.bg-stars {
    background-image: url('background-pictures/star-background.jpg');
}

.bg-stars::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(155, 35, 53, 0.6) 100%);
}

.bg-stars,
.bg-stars .section-title,
.bg-stars .section-subtitle,
.bg-stars h2,
.bg-stars p {
    color: #ffffff;
}

.bg-stars .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Prism Background - for abstract/creative sections */
.bg-prism {
    background-image: url('background-pictures/prism-wall-background.jpg');
}

.bg-prism::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(128, 0, 0, 0.6) 100%);
}

.bg-prism,
.bg-prism .section-title,
.bg-prism .section-subtitle,
.bg-prism .card-title,
.bg-prism .card-description,
.bg-prism p {
    color: #ffffff;
}

.bg-prism .section-subtitle,
.bg-prism .card-description {
    color: rgba(255, 255, 255, 0.85);
}

.bg-prism .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Waves Background - for dynamic sections */
.bg-waves {
    background-image: url('background-pictures/red-blue-wave-background.jpg');
}

.bg-waves::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(155, 35, 53, 0.5) 100%);
}

.bg-waves,
.bg-waves .section-title,
.bg-waves .section-subtitle,
.bg-waves .card-title,
.bg-waves .card-description,
.bg-waves p {
    color: #ffffff;
}

.bg-waves .section-subtitle,
.bg-waves .card-description {
    color: rgba(255, 255, 255, 0.85);
}

.bg-waves .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Space Background - for impactful sections */
.bg-space {
    background-image: url('background-pictures/space-red-blue-background.jpg');
}

.bg-space::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(128, 0, 0, 0.5) 100%);
}

.bg-space,
.bg-space .section-title,
.bg-space .section-subtitle,
.bg-space h2,
.bg-space p {
    color: #ffffff;
}

.bg-space .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Green Tech Background - for tech-focused sections */
.bg-green-tech {
    background-image: url('background-pictures/computer-green-background.jpg');
}

.bg-green-tech::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 50, 0, 0.7) 100%);
}

.bg-green-tech,
.bg-green-tech .section-title,
.bg-green-tech .section-subtitle,
.bg-green-tech .card-title,
.bg-green-tech .card-description,
.bg-green-tech p {
    color: #ffffff;
}

.bg-green-tech .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Fix skill tags in background sections */
.section-bg .skill-tag {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.section-bg .skill-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Fix section labels in background sections */
.section-bg .section-label {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Fix buttons in background sections */
.section-bg .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.section-bg .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Fix curriculum tracks in background sections */
.section-bg .curriculum-track {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-bg .curriculum-track h3 {
    color: #ffffff;
}

.section-bg .curriculum-track h3 i {
    color: rgba(255, 255, 255, 0.9);
}

.section-bg .course-item {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .course-item.completed {
    color: #10b981;
}

.section-bg .course-item.completed i {
    color: #10b981;
}

/* Fix skill bars in background sections */
.section-bg .skill-bar {
    background: rgba(255, 255, 255, 0.15);
}

.section-bg .skill-bar-header {
    color: #ffffff;
}

/* Fix journey cards in background sections */
.section-bg .journey-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-bg .journey-card h3 {
    color: #ffffff;
}

.section-bg .journey-card p {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .journey-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Fix fun facts in background sections */
.section-bg .fun-fact p {
    color: rgba(255, 255, 255, 0.9);
}

.section-bg .fact-dot {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.section-bg .fact-dot.active {
    background: #ffffff;
    border-color: #ffffff;
}

/* Fix timeline items in background sections */
.section-bg .timeline-item {
    border-left-color: rgba(255, 255, 255, 0.3);
}

.section-bg .timeline-item::before {
    background: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-bg .timeline-date {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.section-bg .timeline-place {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .experience-list li {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .experience-list li::before {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile - disable fixed background for performance */
@media (max-width: 768px) {
    .section-bg {
        background-attachment: scroll;
    }
}
