:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-text: #475569;
    --color-text-light: #94A3B8;
    --color-heading: #0F172A;
    
    --color-primary: #0A192F; /* Deep Executive Blue */
    --color-primary-light: #112240; 
    
    --color-accent: #005B96;  /* Bright Aviation Blue */
    --color-accent-hover: #004576;
    --color-accent-soft: #E0F2FE;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

li {
    list-style: none;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
}

.section-bg-dark {
    background-color: var(--color-primary);
    color: white;
}

.section-bg-dark h2, .section-bg-dark h3 {
    color: white;
}

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

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

.section-subtitle {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-bg-dark .section-subtitle {
    color: #38BDF8; /* Lighter blue for dark mode */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text);
}

.section-bg-dark .section-desc {
    color: #94A3B8;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white !important;
    box-shadow: 0 4px 14px rgba(0, 91, 150, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 150, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

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

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

.btn-light:hover {
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
    transition: var(--transition-base);
    background: white;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* No change needed on scroll — logo always shows in its pill */
.navbar.scrolled .nav-logo {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: white;
    text-transform: capitalize;
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--color-heading);
}

/* Underline animation on hover */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-base);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--color-heading);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('sky-placeholder.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(0, 91, 150, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Hero Stats — sits at the bottom of the hero, inside normal flow */
.hero-stats-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem 2.5rem;
    margin-top: auto;
}

.hero-stats {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 10;
    animation: fadeInUp 1s ease 1s both;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0 0.25rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
}

/* =========================================
   About Section
   ========================================= */
.about {
    padding-top: 6rem;
}

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

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 1;
    max-width: 380px;
    margin: 0 auto;
    padding-left: 1.25rem;
    border-left: 4px solid var(--color-accent);
}

.profile-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.role-title {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-heading);
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.career-list {
    margin-top: 2rem;
}

.career-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.career-year {
    flex: 0 0 120px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
}

.career-desc strong {
    color: var(--color-heading);
    display: block;
    margin-bottom: 0.25rem;
}

/* =========================================
   Expertise Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
    z-index: 2;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================
   Services (Case Studies) Section
   ========================================= */
.service-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.service-case:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-case-reverse {
    direction: rtl;
}

.service-case-reverse > * {
    direction: ltr;
}

.service-case-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    margin-top: 0.75rem;
}

.service-case-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.service-case-text strong {
    color: var(--color-accent);
}

.service-case-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 1.5rem;
}

.case-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

/* =========================================
   Customers Section
   ========================================= */
.map-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.map-img {
    width: 100%;
    border-radius: var(--radius-md);
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.client-logo-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    border-radius: var(--radius-md);
}

/* =========================================
   Icelandic Section
   ========================================= */
.icelandic {
    position: relative;
}

/* Adding a subtle pattern to dark background */
.icelandic::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

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

.is-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.is-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.is-card h4 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.is-card h4 i {
    color: #38BDF8;
}

.is-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   CTA / Contact Section
   ========================================= */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 5rem 3rem;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--color-primary-light);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 1024px) {
    .about-grid {
        gap: 2rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .is-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-item:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition-base);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        color: var(--color-heading);
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 0;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .hero-stats-wrapper {
        padding: 0 1rem 2rem;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 1.5rem;
    }
    
    .about {
        padding-top: 4rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-case,
    .service-case-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }
    
    .is-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .cta-box {
        padding: 3rem 1.5rem;
    }
}