/* Custom Fonts */
@font-face {
    font-family: 'Kiona';
    src: url('../fonts/Kiona-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Kiona';
    src: url('../fonts/Kiona-Itallic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* CSS Variables */
:root {
    --primary-navy: #1a2746;
    --primary-green: #4cb14f;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-color: #e0e0e0;

    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Kiona', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.nav-links .cta-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
}

.nav-links .cta-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a2746 0%, #0f1a2e 50%, #1a2746 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

/* Floating Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    top: 10%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-green);
    top: 60%;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 20%;
    left: 5%;
    animation: float 18s ease-in-out infinite;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--primary-green);
    top: 30%;
    right: 5%;
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(76, 177, 79, 0.15));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-headline .highlight {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.hero-subtext {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

.btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 177, 79, 0.3);
}

/* Button Glow Effect for Hero */
.btn-glow {
    position: relative;
    box-shadow: 0 0 20px rgba(76, 177, 79, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-green), #6fd158, var(--primary-green));
    border-radius: 50px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 0.7;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; filter: blur(10px); }
    50% { opacity: 1; filter: blur(15px); }
}

.btn-secondary {
    display: inline-block;
    background: var(--primary-navy);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 177, 79, 0.3);
}

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

/* Snapshot Section */
.snapshot {
    background: var(--primary-green);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.snapshot-headline {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.snapshot-text {
    font-size: 18px;
    opacity: 0.95;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary-navy);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* Featured Work Carousel */
.featured-work {
    background: var(--white);
}

.featured-work .section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--primary-navy);
}

.work-carousel {
    overflow: hidden;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.work-card {
    min-width: 280px;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.work-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-green));
}

.work-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--primary-navy);
}

.work-card p {
    padding: 0 20px 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.carousel-btn {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

/* About Section */
.about {
    background: var(--primary-navy);
    color: var(--white);
}

.about .section-title {
    color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--white);
}

.about-text p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.about-tagline {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--primary-green);
    margin-top: 30px;
}

/* Services Section */
.services {
    background: var(--primary-green);
    color: var(--white);
}

.services .section-title {
    text-align: center;
    margin-bottom: 70px;
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-navy);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-navy);
    background: rgba(26, 39, 70, 0.08);
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(76, 177, 79, 0.3);
}

.service-card h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.services-cta {
    text-align: center;
    padding: 40px;
}

.services-cta p {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 500;
}

.services .btn-primary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

.services .btn-primary:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

/* Our Work Section */
.our-work {
    background: var(--white);
    text-align: center;
}

.portfolio-notice {
    max-width: 600px;
    margin: 50px auto;
    padding: 50px 40px;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid var(--primary-green);
    box-shadow: 0 5px 20px rgba(76, 177, 79, 0.1);
}

.portfolio-notice p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.portfolio-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-form input {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.portfolio-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.portfolio-form button {
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-family: var(--font-primary);
}

/* Clients Section */
.clients {
    background: var(--primary-navy);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.clients .section-title {
    color: var(--white);
}

.clients .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 50px;
}

.container-full {
    max-width: 100%;
    padding: 0 20px;
}

/* Clients Carousel */
.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
}

.clients-track {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

/* Slower animation for desktop */
@media (min-width: 969px) {
    .clients-track {
        animation: scroll 80s linear infinite;
    }
}

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

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

.client-logo {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    min-width: 200px;
    max-width: 200px;
    transition: var(--transition);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.client-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(76, 177, 79, 0.4);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Careers Section */
.careers {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
}

.careers .section-title {
    color: var(--white);
}

.careers p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.careers .btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

.careers .btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

/* Contact Section */
.contact {
    background: var(--white);
    text-align: center;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-email {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-email a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.contact-email a:hover {
    color: var(--primary-navy);
}

.contact-location {
    font-size: 18px;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 18px 25px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: center;
}

.form-success {
    margin-top: 20px;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer p {
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

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

    .hero-headline {
        font-size: 48px;
    }

    .hero-subtext {
        font-size: 18px;
    }

    /* Reduce floating shapes on mobile for performance */
    .shape {
        filter: blur(30px);
    }

    .shape-1, .shape-4 {
        width: 300px;
        height: 300px;
    }

    .shape-2, .shape-3 {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .clients-track {
        gap: 30px;
    }

    .client-logo {
        min-width: 180px;
        max-width: 180px;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-headline {
        font-size: 36px;
        line-height: 1.3;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator span {
        width: 20px;
        height: 32px;
    }

    .snapshot-headline {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .work-card {
        min-width: 250px;
    }

    .service-card {
        padding: 30px;
    }

    .contact-email {
        font-size: 20px;
    }
}
