/* ============================================
   Niels Hansa Personal Website - Nunito Font Version
   Version: 2026-03-30
   Font: Nunito (200-1000, italic)
   Color Palette: New Professional Palette (Blue, Indigo, Gold, Red, White)
   ============================================ */

/* RESET FOR BLUE LINE ISSUE */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* 0. ACCESSIBILITY & SKIP LINKS */
.skip-to-content {
    position: absolute;
    top: -100px; /* Move further off-screen to prevent 1px visibility */
    left: -100px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease, left 0.3s ease;
    clip: rect(0 0 0 0); /* Old method for full hiding */
    clip-path: inset(50%); /* Modern method - completely hidden */
    overflow: hidden;
}

.skip-to-content:focus {
    top: 0;
    left: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    clip: auto; /* Restore when focused */
    clip-path: none;
    overflow: visible;
}

/* 1. COLOR VARIABLES (CSS Custom Properties) */
:root {
    /* New Primary Colors */
    --cornflower-ocean: #0e6ba8ff;    /* Deep professional blue */
    --red: #ff101fff;                 /* Vibrant attention red */
    --white: #ffffffff;               /* Pure white */
    --space-indigo: #171738ff;        /* Dark sophisticated indigo */
    --sunflower-gold: #edb230ff;      /* Warm accent gold */
    
    /* Semantic Colors (based on new palette) */
    --color-primary: var(--cornflower-ocean);      /* Main brand color */
    --color-secondary: var(--space-indigo);        /* Secondary dark color */
    --color-accent: var(--sunflower-gold);         /* Accent/warning color */
    --color-alert: var(--red);                     /* Alert/attention color */
    --color-dark: var(--space-indigo);             /* Dark elements */
    --color-light: var(--white);                   /* Light elements */
    
    /* Text Colors */
    --color-text: var(--space-indigo);             /* Main text color */
    --color-text-light: #4a4a6d;                   /* Light text (derived from space-indigo) */
    --color-text-inverse: var(--white);            /* Text on dark backgrounds */
    --color-background: var(--white);              /* Main background */
    --color-background-alt: #f5f7fa;               /* Alternate background (light blue-grey) */
    --color-border: #d1d9e6;                       /* Border color */
    
    /* Gradients (using new palette) */
    --gradient-primary: linear-gradient(135deg, var(--cornflower-ocean) 0%, var(--space-indigo) 100%);
    --gradient-accent: linear-gradient(135deg, var(--sunflower-gold) 0%, var(--red) 100%);
    --gradient-light: linear-gradient(135deg, #e6ecf5 0%, var(--white) 100%);
    --gradient-dark: linear-gradient(135deg, var(--space-indigo) 0%, #0a0a1a 100%);
    --gradient-ocean: linear-gradient(135deg, var(--cornflower-ocean) 0%, #0a4d8c 100%);
    
    /* Shadows (updated for new colors) */
    --shadow-sm: 0 2px 8px rgba(14, 107, 168, 0.1);
    --shadow-md: 0 4px 16px rgba(14, 107, 168, 0.15);
    --shadow-lg: 0 8px 32px rgba(14, 107, 168, 0.2);
    --shadow-accent: 0 4px 16px rgba(237, 178, 48, 0.2);
    --shadow-alert: 0 4px 16px rgba(255, 16, 31, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* 2. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    border: none !important;
    outline: none !important;
}

body {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    padding-top: 80px; /* For fixed navbar */
    width: 100%;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    overflow-x: hidden; /* Double ensure no horizontal scroll */
}

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

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-secondary);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 4. NAVIGATION */
.navbar {
    background-color: var(--color-background);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--color-primary);
}

.navbar .container {
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-family: "Nunito", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.logo:hover {
    color: var(--color-accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-normal);
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* 5. HERO SECTION */
.hero {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Ensure hero content is centered */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    color: var(--color-text-inverse);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    color: var(--color-text-inverse);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero h2::after {
    display: none;
}

.hero .tagline {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.highlight-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.highlight-item span {
    font-weight: 500;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--color-accent);
}

.contact-info a {
    color: var(--color-text-inverse);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

.hero-image {
    flex: 0 0 350px;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 6. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    gap: 0.5rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #0a4d8c; /* Darker shade of cornflower-ocean */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 107, 168, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.btn-secondary:hover {
    background-color: #0f0f25; /* Darker shade of space-indigo */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(23, 23, 56, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
}

.btn-outline:hover {
    background-color: var(--color-text-inverse);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* 7. SECTIONS COMMON */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--color-background-alt);
}

/* 8. SUMMARY SECTION */
.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.summary-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-left: 4px solid var(--color-primary);
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.summary-icon {
    flex: 0 0 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-size: 1.5rem;
}

.summary-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.summary-text p {
    color: var(--color-text);
    font-size: 1rem;
}

/* 9. TRANSITION NARRATIVE SECTION */
.transition-narrative {
    background: var(--gradient-light);
    border-radius: 15px;
    padding: 3rem;
    margin-top: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.transition-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 2.5rem;
    position: relative;
}

.transition-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

.transition-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.transition-phase {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-left: 4px solid var(--color-primary);
}

.transition-phase:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.phase-icon {
    flex: 0 0 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-size: 1.5rem;
}

.phase-content {
    flex: 1;
}

.phase-content h4 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-content h4::before {
    content: '→';
    color: var(--color-primary);
    font-weight: bold;
}

.phase-content p {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.phase-content p strong {
    color: var(--color-secondary);
}

/* 10. CONTACT SECTION */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border-left: 4px solid var(--color-primary);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-size: 1.3rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.contact-details a,
.email-masked-text {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.contact-details a:hover,
.email-masked-text:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.contact-details p {
    color: var(--color-text);
    margin: 0;
}

/* 11. FOOTER STYLES */
.footer {
    background: var(--gradient-dark);
    color: #ffffff !important;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-tagline {
    color: var(--color-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-text-inverse);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: color var(--transition-normal);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-inverse);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    color: var(--color-dark);
}

/* Email masking styles */
.email-masked {
    cursor: default;
}

.email-masked:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    color: var(--color-text-inverse);
}

.email-masked-text {
    color: var(--color-primary);
    font-weight: 500;
}

.email-masked-text:hover {
    color: var(--color-accent);
    cursor: default;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #ffffff !important;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.footer-bottom a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 12. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero-image {
        order: -1;
        margin: 3rem 0 0.5rem 0;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .hero-highlights {
        justify-content: center;
    }
    
    .hero-contact {
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Reduced to match shorter navbar */
    }
    
    .navbar {
        padding: 0.6rem 0; /* Reduced padding - much shorter navbar */
        min-height: 70px; /* Much shorter navbar */
        border-bottom: none;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem; /* Increased gap for better spacing */
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem; /* Increased gap between links */
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 5rem 0 2.5rem 0; /* SIGNIFICANTLY increased top padding for more space after navbar */
    }
    
    .hero h1 {
        margin-bottom: 0.4rem; /* Increased for better spacing like desktop */
    }
    
    .hero h2 {
        margin-bottom: 1rem; /* Increased for better spacing like desktop */
    }
    
    .hero .tagline {
        margin-bottom: 1.5rem; /* Increased for better spacing like desktop */
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem; /* Added spacing between text and first button */
    }
    
    .hero-image {
        margin: 2rem 0 0.125rem 0; /* Reduced by 50% MORE - headshot extremely close to text below */
    }
    
    .hero .container {
        gap: 0.125rem; /* Reduced by 50% MORE - headshot extremely close to text */
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .transition-narrative {
        padding: 2rem;
    }
    
    .transition-title {
        font-size: 1.7rem;
    }
    
    .transition-phase {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
    }
    
    .phase-icon {
        margin: 0 auto;
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    
    .phase-content {
        text-align: left;
    }
    
    .phase-content h4 {
        text-align: left;
    }
    
    .phase-content h4::before {
        display: none;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px; /* Reduced to match shorter navbar */
    }
    
    .navbar {
        padding: 0.5rem 0; /* Reduced padding - much shorter navbar */
        min-height: 80px; /* Much shorter navbar */
        border-bottom: none;
    }
    
    .navbar .container {
        gap: 1.2rem;
    }
    
    .nav-links {
        gap: 1.5rem; /* Increased gap between links */
    }
    
    .hero {
        padding: 6rem 0 2.5rem 0; /* EXTRA large top padding for iPhone 15 Pro */
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.3rem; /* Increased for better spacing like desktop */
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem; /* Increased for better spacing like desktop */
        margin-top: 0;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.2rem; /* Increased for better spacing like desktop */
        margin-top: 0;
    }
    
    .hero-buttons {
        margin-top: 1.2rem; /* Added spacing between text and first button */
    }
    
    .profile-image {
        width: 220px; /* Slightly smaller for very small screens */
        height: 220px;
    }
    
    .hero-image {
        margin: 1.5rem 0 0.075rem 0; /* Reduced by 50% MORE - headshot almost touching text below */
    }
    
    .hero .container {
        gap: 0.075rem; /* Reduced by 50% MORE - headshot almost touching text */
    }
    
    .hero-highlights {
        flex-direction: column;
        align-items: center;
        margin-top: 0.5rem;
    }
    
    .highlight-item {
        width: 100%;
        justify-content: center;
    }
    
    .transition-narrative {
        padding: 1.5rem;
    }
    
    .transition-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* iPhone 15 Pro specific fix (393px width) */
@media (max-width: 393px) {
    body {
        padding-top: 70px; /* Reduced to match even shorter navbar */
    }
    
    .navbar {
        min-height: 70px; /* Even shorter navbar */
        padding: 0.3rem 0; /* Minimal padding */
        border-bottom: none;
    }
    
    .hero {
        padding: 7rem 0 2.5rem 0; /* MAXIMUM top padding for iPhone 15 Pro */
    }
    
    .hero-image {
        margin: 2rem 0 0.125rem 0; /* Reduced by 50% MORE - headshot extremely close to text below */
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero h1 {
        margin-bottom: 0.3rem; /* Increased for better spacing like desktop */
    }
    
    .hero h2 {
        margin-bottom: 0.8rem; /* Increased for better spacing like desktop */
    }
    
    .hero .tagline {
        margin-bottom: 1.2rem; /* Increased for better spacing like desktop */
    }
    
    .hero-buttons {
        margin-top: 1.2rem; /* Added spacing between text and first button */
    }
    
    .nav-links {
        gap: 1.5rem; /* Increased gap between links */
    }
}

/* 13. UTILITY CLASSES */
.text-center {
    text-align: center;
}

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

/* 14. DEBUG - Remove in production */
.debug-outline * {
    outline: 1px solid rgba(14, 107, 168, 0.1);
}

/* 15. NUNITO FONT CLASS (as requested) */
.nunito-regular {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}