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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0a2e2e;
    background: #f8fdfc;
    overflow-x: hidden;
}

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

/* Color Variables */
:root {
    --teal-primary: #00b8b5;
    --teal-hover: #00e0dd;
    --gold-accent: #de9c21;
    --gold-glow: #f0b84a;
    --dark: #0a2e2e;
    --light-bg: #f8fdfc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 184, 181, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-primary);
}
.logo a{
    text-decoration: none;
    color: var(--teal-primary);
}


.logo-img {
    height: 32px;
    margin-right: 8px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--teal-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(
            rgba(10, 46, 46, 0.82),   /* deep teal-black with 82% opacity */
            rgba(10, 46, 46, 0.68)
        ),
        url('../images/hero-1.png');
    /*background-image: url('/assets/images/hero-1.png');   /* ← note the leading slash */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-primary) 0%, #009693 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--gold-accent);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-glow);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.cta-primary {
    background: var(--gold-accent);
    color: var(--white);
    border-color: var(--gold-accent);
}

.cta-primary:hover {
    background: var(--white);
    color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--teal-primary);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ——— Services Section – Pure CSS Icons ——— */
.services {

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

.section-subtitle {
    color: var(--teal-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    max-width: 700px;
    margin: 1.5rem auto 4rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 184, 181, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 184, 181, 0.15);
    border-color: var(--teal-primary);
}

.service-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    position: relative;
}

.service-icon.teal { background: #00b8b5; }
.service-icon.gold { background: #de9c21; }

/* 1. Code Brackets */
/* ——— GLOBAL ICON: Code Brackets ——— */
.icon-code {
    position: relative;
    display: inline-block;
    width: 48px;      /* ← this was missing! */
    height: 48px;     /* ← this was missing! */
    margin: 0 auto;
}

/* Now your existing rules will work perfectly */
.icon-code::before,
.icon-code::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 32px;
    border: 4px solid white;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-code::before {
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    left: 8px;
    transform: translateY(-50%) rotate(12deg);
}

.icon-code::after {
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    right: 8px;
    transform: translateY(-50%) rotate(-12deg);
}

/* 2. Rocket */
.icon-rocket {
    width: 36px;
    height: 42px;
    position: relative;
}

.icon-rocket::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 28px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 0;
    left: 6px;
}

.icon-rocket::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid white;
    bottom: 0;
    left: 8px;
}

/* 3. Refresh / Cycle */
.icon-refresh {
    position: relative;
    width: 40px;
    height: 40px;
    border: 5px solid white;
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(45deg);
}

.icon-refresh::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom: 12px solid white;
    top: -12px;
    right: -4px;
    transform: rotate(-45deg);
}

/* 4. Sparkles */
.icon-sparkles {
    position: relative;
}

.icon-sparkles::before,
.icon-sparkles::after,
.icon-sparkles span::before,
.icon-sparkles span::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 18px;
    background: white;
    border-radius: 3px;
}

.icon-sparkles::before {
    top: 8px;
    left: 12px;
    transform: rotate(30deg);
}

.icon-sparkles::after {
    top: 8px;
    right: 12px;
    transform: rotate(-30deg);
}

.icon-sparkles span::before {
    bottom: 10px;
    left: 18px;
    width: 18px;
    height: 6px;
    transform: rotate(90deg);
}

.icon-sparkles span::after {
    bottom: 10px;
    right: 18px;
    width: 18px;
    height: 6px;
    transform: rotate(90deg);
}

/* CTA */
.services-cta {
    margin-top: 2rem;
}

.services-cta p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}
/* Fix centering for ALL grid sections (services, portfolio, trust, etc.) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* This is the magic line that centers everything inside .container */
.section-title,
.section-subtitle,
.section-intro,
.services-grid,
.portfolio-grid,
.trust-grid {
    margin-left: auto;
    margin-right: auto;
    text-align: center;          /* centers the headings + intro text */
}

.services-grid,
.portfolio-grid,
.trust-grid {
    display: grid;
    gap: 2.5rem;
    justify-items: center;       /* ← THIS centers the actual cards */
    max-width: 1200px;           /* optional – keeps it from stretching too wide on huge screens */
}
/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--white);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

/* Darker, richer overlay */
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 46, 46, 0.95) 0%,      /* deep teal-black at bottom */
        rgba(10, 46, 46, 0.85) 50%,
        rgba(10, 46, 46, 0.4) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.4s ease;
}

.portfolio-overlay-content {
    color: white;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.portfolio-overlay p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.portfolio-link {
    background: #de9c21;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.portfolio-link:hover {
    background: #f0b84a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 156, 33, 0.4);
}


.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ——— Trust Section ——— */
.trust {
    background: linear-gradient(135deg, #f8fdfc 0%, #e8f8f7 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    justify-items: center;
    margin-top: 3rem;
}

.trust-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 184, 181, 0.1);
    max-width: 320px;
}

.trust-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 184, 181, 0.2);
    border-color: var(--teal-primary);
}

.trust-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.trust-icon.teal { background: #00b8b5; }
.trust-icon.gold { background: #de9c21; }

/* Trust Icons - Pure CSS */
.icon-speed {
    position: relative;
    width: 36px;
    height: 36px;
}

.icon-speed::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border: 4px solid white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.icon-speed::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-shield {
    width: 32px;
    height: 36px;
    position: relative;
    clip-path: polygon(50% 0%, 0% 20%, 0% 100%, 50% 85%, 100% 100%, 100% 20%);
    background: white;
}

.icon-support {
    position: relative;
    width: 36px;
    height: 36px;
}

.icon-support::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 4px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    top: 8px;
    left: 4px;
}

.icon-support::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* ——— GLOBAL ICON: Code Brackets ——— */
.icon-code {
    position: relative;
    display: inline-block;
    width: 48px;      /* ← this was missing! */
    height: 48px;     /* ← this was missing! */
    margin: 0 auto;
}

/* Now your existing rules will work perfectly */
.icon-code::before,
.icon-code::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 32px;
    border: 4px solid white;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-code::before {
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    left: 8px;
    transform: translateY(-50%) rotate(12deg);
}

.icon-code::after {
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    right: 8px;
    transform: translateY(-50%) rotate(-12deg);
}

.trust-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.trust-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}
/* CTA Section */
.cta-section {
    padding: 1rem 0;
    background: var(--teal-primary);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-primary.large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-primary);
}

.footer-brand p {
    margin-top: 0.5rem;
    opacity: 0.8;
}
.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--teal-primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

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

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

/*---------------------------------------------------
                    Contact page
----------------------------------------------------*/
.contact-section { padding: 6rem 0; background: var(--light-bg); }
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; 
    align-items: start; 
}
.contact-form-wrapper, .contact-info { background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #0a2e2e; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.9rem; border: 2px solid #ddd; border-radius: 10px; font-family: inherit;}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {outline: none; border-color: #00b8b5;}
.form-status { margin-top: 1rem; font-weight: 600; }
.form-success { color: #00b8b5; font-weight: 600; margin: 1rem 0; }
.form-error   { color: #e74c3c; font-weight: 600; margin: 1rem 0; }
@media (max-width: 868px) {
    .contact-grid { grid-template-columns: 1fr; }
}