/* Global Resets and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1e3a8a;      /* Rich navy blue */
    --color-primary-light: #3b5fd9; /* Lighter blue for accents */
    --color-secondary: #f97316;     /* Modern orange */
    --color-text: #1f2937;          /* Dark slate for text */
    --color-text-light: #6b7280;    /* Gray for secondary text */
    --color-background: #ffffff;    /* Pure white background */
    --color-light-bg: #f9fafb;      /* Very light gray for alternating sections */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.03);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on anchor clicks */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    color: var(--color-text); /* Text (Body) */
    background-color: var(--color-background); /* Background (Main) */
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-text); /* Text (Headings) */
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 600;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 700;
    letter-spacing: -0.02em;
} /* Hero h1 is larger */

h2.section-title { /* Main section titles on one-pager */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--color-primary); /* Primary color for section titles */
    position: relative;
    padding-bottom: 0.5em;
    letter-spacing: -0.01em;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary); /* Accent color for underline */
}

h3 { 
    font-size: 1.5rem; 
    font-weight: 600;
    margin-top: 1.5em;
} /* Sub-headings within sections */

h4 { 
    font-size: 1.25rem; 
    font-weight: 500;
} /* Further sub-headings, e.g., in lists */

/* Small mobile devices */
@media (min-width: 480px) {
    h1 { font-size: 2.75rem; }
    h2.section-title { font-size: 2.25rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2.section-title { font-size: 2.75rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.4rem; }
}

@media (min-width: 992px) {
    h1 { font-size: 3.75rem; }
    h2.section-title { font-size: 3rem; }
    h3 { font-size: 2rem; }
    h4 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary); /* Primary Color */
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
}

a:hover, a:focus {
    color: var(--color-secondary); /* Accent Color */
    text-decoration: none;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    color: var(--color-text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .container {
        width: 90%;
        padding: 0 20px;
    }
}

.section-padding {
    padding: 60px 0; /* Adjusted padding for mobile */
}

@media (min-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

@media (min-width: 992px) {
    .section-padding {
        padding: 100px 0;
    }
}

.bg-light {
    background-color: var(--color-light-bg); /* Background (Subtle Contrast) */
}

.bg-light-accent {
    background-color: rgba(249, 115, 22, 0.05); /* A very light shade of the accent for subtle highlighting */
    padding: 30px;
    border-radius: 12px;
    border-left: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
}


/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Add subtle highlight to the header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
    opacity: 0.7;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(var(--color-primary), 0.2));
    transform: scale(1.05);
}

.logo-img {
    height: 55px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.logo-text span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    display: block;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
    color: var(--color-text);
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5em 0.2em;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Ensure it's above other header content if overlapping */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: #0A4A7F;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background: #0A4A7F;
    transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Navigation Styles */
@media (max-width: 850px) { /* Adjusted breakpoint for more links */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FFFFFF;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #F8F9FA;
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.open .hamburger {
        background: transparent;
    }
    .nav-toggle.open .hamburger::before {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.open .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* Hero Section (First section on one-pager) */
.hero {
    background-image: linear-gradient(to right, rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.7)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 95vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 2.3rem;
    margin-bottom: 0.6em;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    /* Prevent awkward line breaks */
    word-spacing: -0.1em;
    hyphens: manual;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
}

@media (min-width: 480px) {
    .hero h1 { font-size: 2.7rem; }
    .hero .subtitle { font-size: 1.05rem; }
}

@media (min-width: 768px) {
    .hero { min-height: 95vh; padding: 100px 0; }
    .hero h1 { font-size: 3.5rem; padding: 0; }
    .hero .subtitle { font-size: 1.2rem; padding: 0; }
}

@media (min-width: 992px) {
    .hero { padding: 120px 0; }
    .hero h1 { font-size: 4rem; }
    .hero .subtitle { font-size: 1.35rem; }
}

/* CTA Buttons */
.cta-button, .cta-button-small {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #FFFFFF;
    padding: 15px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover, .cta-button-small:hover {
    background-color: #e76008;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(249, 115, 22, 0.3);
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button.secondary {
    background-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(59, 95, 217, 0.2);
}

.cta-button.secondary:hover {
    background-color: #3254c8;
    box-shadow: 0 7px 20px rgba(59, 95, 217, 0.25);
}

.cta-button-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.cta-button.prominent {
    padding: 18px 40px;
    font-size: 1.15rem;
    margin: 25px 0;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}


/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 50px;
}

.benefit-item {
    background-color: var(--color-background);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.benefit-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item .icon {
    width: 55px;
    height: 55px;
    color: var(--color-primary);
    margin: 0 auto 20px;
    transition: transform var(--transition-normal);
}

.benefit-item:hover .icon {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.benefit-item h3 {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.benefit-item p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

@media (min-width: 768px) { 
    .benefits-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    } 
}

@media (min-width: 992px) { 
    .benefits-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 25px;
    } 
}

/* CTA container styling */
.cta-container {
    margin-top: 70px;
    text-align: center;
    position: relative;
    padding: 25px 0 10px;
    position: relative;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-secondary), transparent);
    opacity: 0.5;
}

.cta-caption {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* Approach Section */
.approach { 
    text-align: center;
    position: relative;
}

.approach::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-primary-light));
    opacity: 0.3;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.approach-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--color-background);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.approach-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.approach-step:hover .step-icon {
    background-color: var(--color-secondary);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-content {
    text-align: left;
    flex: 1;
}

.step-content h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.approach-arrow {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-arrow svg {
    width: 100%;
    height: 100%;
}

/* Tablet layout - 2 on top, 1 centered below */
@media (min-width: 768px) {
    .approach-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 700px;
        justify-items: center;
        align-items: start;
    }
    
    .approach-step {
        flex-direction: column;
        text-align: center;
        max-width: 320px;
        padding: 2.5rem 1.5rem;
    }
    
    .approach-step:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .approach-step:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .approach-step:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        grid-row: 2;
    }
    
    .step-content {
        text-align: center;
    }
    
    .approach-arrow {
        display: none; /* Hide arrows in grid layout */
    }
}

/* Desktop layout - horizontal row */
@media (min-width: 1024px) {
    .approach-steps {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1000px;
    }
    
    .approach-step {
        flex-direction: column;
        text-align: center;
        max-width: 280px;
        padding: 2.5rem 1.5rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    .approach-arrow {
        display: flex;
        margin-top: 3rem;
        transform: rotate(0deg);
    }
}

@media (max-width: 767px) {
    .approach-arrow {
        transform: rotate(90deg);
    }
}


/* Content Section (general styling for text-heavy sections) */
.content-section .text-container { /* Specific to one-pager sections */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-section .text-container h3 { /* Sub-titles within sections */
    font-size: 1.6rem;
    color: #1A1A1A;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
}
.content-section .text-container h3:first-of-type { /* First h3 in a section */
     margin-top: 0.5em; /* Adjust if directly after section-title */
}


.profile-container {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Keep this in case it's used elsewhere */
.image-placeholder { 
    width: 100%;
    max-width: 300px;
    height: 200px;
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}


/* Service Comparison Section */
.service-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-included, .service-custom {
    background-color: var(--color-background);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-included::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #22c55e, #16a34a);
}

.service-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.service-included:hover, .service-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
}

.service-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
}

.service-included .service-header h3 {
    color: #16a34a;
}

.service-header p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 1rem;
    font-style: italic;
}

.service-list {
    list-style: none;
    padding: 0 1.5rem 2rem 1.5rem;
    margin: 0;
}

.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.service-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-list li:first-child {
    padding-top: 0;
}

.service-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background-color: var(--color-light-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.service-cta p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .service-comparison {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .service-header h3 {
        font-size: 1.6rem;
    }
    
    .service-list li {
        font-size: 1.05rem;
    }
    
    .service-cta p {
        font-size: 1.2rem;
    }
}


/* Pricing Page (guidance) */
.pricing-guidance p { font-size: 1.1rem; line-height: 1.8; }

/* Get Started Page (text-center) */
.text-center { text-align: center; }
.large-text { font-size: 1.2rem; font-weight: 600; color: #0A4A7F; margin-bottom: 1em; }
.reassurance { margin-top: 1.5em; font-style: italic; color: #555; }
.faq-section { text-align: left; margin-top: 40px; border-top: 1px solid #eee; }
.faq-item { margin-bottom: 20px; }
.faq-item h4 { font-size: 1.2rem; color: #0A4A7F; } /* Changed from h3 to h4 */


/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

.portfolio-item {
    background-color: var(--color-background);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-preview {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.portfolio-preview .screenshot-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: none;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.portfolio-item:hover .screenshot-placeholder {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item.active-overlay .portfolio-overlay {
    opacity: 1;
}

.portfolio-actions {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    opacity: 0;
}

.portfolio-item:hover .portfolio-actions {
    transform: translateY(0);
    opacity: 1;
}

.visit-site-btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
}

.visit-site-btn:hover {
    background-color: #e76008;
    text-decoration: none;
    color: white;
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-weight: 600;
}

.portfolio-info p {
    margin-bottom: 12px;
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tech {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.portfolio-note {
    margin: 30px auto;
    max-width: 750px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Responsive grid for larger screens */
@media (min-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-info h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-info p {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .portfolio-preview {
        height: 200px;
    }
    
    .portfolio-info {
        padding: 25px;
    }
    
    .portfolio-info h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-info p {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .portfolio-preview {
        height: 220px;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Footer */
footer {
    background-color: #0f172a;
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-logo {
    margin-bottom: 25px;
    position: relative;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    margin: 0 auto;
    filter: brightness(1.1);
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.footer-logo-img:hover {
    transform: translateY(-3px);
    opacity: 1;
}

footer p { 
    margin-bottom: 0.6em; 
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

footer a { 
    color: var(--color-secondary); 
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

footer a:hover { 
    color: #fff; 
}

footer a:hover::after {
    width: 100%;
}

/* Back to Top Button */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--color-primary);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all var(--transition-normal);
    overflow: hidden;
}

#backToTopBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    transition: width 0.6s, height 0.6s;
}

#backToTopBtn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#backToTopBtn:hover::before {
    width: 150px;
    height: 150px;
}

#backToTopBtn svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#backToTopBtn:hover svg {
    transform: translateY(-3px);
}


/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.benefit-item, .portfolio-item, .section-title, .cta-button, .profile-photo {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for benefits and portfolio items */
.benefit-item:nth-child(1), .portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}
.benefit-item:nth-child(2), .portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}
.benefit-item:nth-child(3), .portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}
.benefit-item:nth-child(4), .portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}
.benefit-item:nth-child(5) {
    transition-delay: 0.5s;
}
.benefit-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* Full height section for hero */
.full-height-section {
    /* Already handled by .hero styling */
}

/* Targetable sections for scrollspy */
main section[id] {
    scroll-margin-top: 90px; /* Adjust based on sticky header height */
}

/* Google Form Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15px auto;
    border-radius: 12px;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.4s forwards;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.closeModal {
    color: white;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0.8;
    padding: 8px;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closeModal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    height: 80vh;
    max-height: calc(92vh - 60px);
}

.modal-body iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 800px;
}

@media (min-width: 480px) {
    .modal-content {
        width: 92%;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 18px 22px;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 30px auto;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .closeModal {
        font-size: 28px;
        height: 40px;
        width: 40px;
    }
    
    .modal-body iframe {
        min-height: 800px;
    }
}

/* Button to open the form - add special hover effect */
#openFormBtn, .open-form-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#openFormBtn:after, .open-form-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
    z-index: -1;
}

#openFormBtn:hover:after, .open-form-btn:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Legal pages styling (if needed, but they are separate) */
/* This styles the H1 on the separate legal pages, not the one-page sections */
/* For legal pages that use <section class="page-header"> */
.page-header h1 {
    /* This style already exists:
    color: #FFFFFF;
    font-size: 2rem; (or 2.5rem on larger screens)
    */
}

/* For legal pages that might not use .page-header for their main title */
.legal-text h1.page-title { /* Add class="page-title" to H1 on legal pages if not using .page-header */
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5em;
}

.legal-text h2 { /* Subheadings in legal pages */
    font-size: 1.6rem;
    border-bottom: 2px solid var(--color-secondary); /* Accent */
    padding-bottom: 0.3em;
    margin-top: 2em;
}
.legal-text h2:first-of-type {
    margin-top: 0;
}
.legal-text p, .legal-text ul {
    margin-bottom: 1em;
}
.legal-text ul {
    list-style-type: disc;
    padding-left: 2em;
}
.legal-text strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Lead Capture Form Section */
.lead-capture {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e9ecef;
}

/* MailerLite Form Styling */
.ml-embedded {
    max-width: 100%;
}

.ml-embedded input[type="text"],
.ml-embedded input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition-fast);
    background-color: #ffffff;
}

.ml-embedded input[type="text"]:focus,
.ml-embedded input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ml-embedded button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-top: 0.5rem;
}

.ml-embedded button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.ml-embedded button[type="submit"]:active {
    transform: translateY(0);
}

.form-next-steps {
    margin-top: 1.5rem;
    text-align: center;
}

.reassurance {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.next-steps {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary);
}

/* Hero Form Container */
.hero-form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    width: 100%;
}

/* Hero Cards Layout */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.6rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.hero-card-icon svg {
    width: 100%;
    height: 100%;
}

.hero-card:hover .hero-card-icon {
    color: var(--color-secondary);
}

.hero-card h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin: 0.3rem 0 0.2rem 0;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.hero-card p {
    color: var(--color-text);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
    opacity: 0.8;
}

/* Mobile responsive for hero cards */
@media (max-width: 479px) {
    .hero-cards {
        gap: 0.8rem;
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }
    
    .hero-card {
        padding: 0.8rem;
        border-radius: 6px;
    }
    
    .hero-card-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto 0.4rem auto;
    }
    
    .hero-card h3 {
        font-size: 0.9rem;
        margin: 0.2rem 0 0.15rem 0;
    }
    
    .hero-card p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

@media (min-width: 480px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .hero-card {
        padding: 1.8rem 1.5rem;
    }
    
    .hero-card h3 {
        font-size: 1.15rem;
    }
    
    .hero-card p {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2.5rem auto;
    }
}

@media (min-width: 1024px) {
    .hero-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        margin: 2.5rem auto;
    }
    
    .hero-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .hero-card h3 {
        font-size: 1.2rem;
    }
    
    .hero-card p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-form-container {
        max-width: calc(100% - 2rem) !important;
        width: auto !important;
        margin: 1.5rem auto 0 auto !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
    }
}


