/* ===== CSS Variables ===== */
:root {
    --lime: #BFFF00;
    --lime-dark: #a6e000;
    --olive: #2D3319;
    --olive-light: #3d4525;
    --olive-lighter: #4a5530;
    --cream: #f5f5f0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #e8e8e8;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Section Scroll Fade-in Animation */
.section.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--olive);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--olive-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--lime);
    color: var(--olive);
}

.btn-primary:hover {
    background-color: var(--lime-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--olive);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.nav-cta {
    background-color: var(--lime);
    color: var(--olive) !important;
}

.nav-cta:hover {
    background-color: var(--lime-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--lime);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--olive);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(191, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    max-width: 600px;
    flex: 1;
}

.hero-image {
    flex-shrink: 0;
    position: relative;
}

.hero-image img {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero Image Pop-in Animation */
.hero-headshot {
    opacity: 0;
    transform: scale(0.3);
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.2s;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typing Effect Styles */
.hero-title {
    min-height: 1.2em;
}

.hero-subtitle {
    min-height: 1.6em;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--lime);
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero CTA fade-in */
.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    color: var(--lime);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ===== About Section ===== */
.about {
    background-color: var(--cream);
}

.about .section-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 3px solid var(--lime);
    border-radius: 12px;
    z-index: -1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.0625rem;
    color: var(--olive-light);
}

.about-text .highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--olive);
    border-left: 4px solid var(--lime);
    padding-left: 20px;
    margin: 32px 0;
}

.about-text .signature {
    font-weight: 600;
    color: var(--olive);
    font-style: italic;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--cream);
}

.services .section-title {
    color: var(--olive);
}

.services .section-subtitle {
    color: var(--olive-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--olive);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--lime);
}

.service-card h3 {
    color: var(--olive);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--olive-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
}

.service-list li {
    color: var(--olive-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.service-list li::before {
    content: "•";
    color: var(--lime);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--olive);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-link:hover {
    color: var(--lime-dark);
}

/* ===== Portfolio Section ===== */
.portfolio {
    background-color: var(--olive);
}

.portfolio .section-title {
    color: var(--lime);
}

.portfolio .section-subtitle {
    color: var(--text-light);
    opacity: 0.9;
}

/* Carousel Container */
.portfolio-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
}

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

.portfolio-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
    flex: 0 0 calc(50% - 16px);
    min-width: calc(50% - 16px);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--lime);
}

/* Video Thumbnail */
.portfolio-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--olive);
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background-color: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--olive);
    margin-left: 4px;
}

.portfolio-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--lime-dark);
}

/* Portfolio Content */
.portfolio-content {
    padding: 24px;
}

.portfolio-card h3 {
    color: var(--olive);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.portfolio-card p {
    color: var(--olive-light);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: var(--olive);
    color: var(--lime);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--lime);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--lime-dark);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--olive);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--olive-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background-color: var(--lime-dark);
}

.carousel-dot.active {
    background-color: var(--lime);
    transform: scale(1.2);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--cream);
}

.testimonials .section-title {
    color: var(--olive);
}

/* Single Testimonial Layout */
.testimonials-single {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
    box-shadow: var(--shadow-lg);
}

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

.testimonial-intro {
    color: var(--olive);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.testimonial-content p {
    color: var(--olive-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-featured .testimonial-content p::before,
.testimonial-featured .testimonial-content p::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--lime);
}

.testimonial-featured .testimonial-content p::after {
    content: '"';
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(45, 51, 25, 0.1);
}

.author-info h4 {
    color: var(--olive);
    font-size: 1rem;
    font-weight: 600;
}

.author-info span {
    color: var(--olive-light);
    font-size: 0.875rem;
}

/* ===== Industries Section ===== */
.industries {
    background-color: var(--olive);
    padding: 60px 0;
}

.industries .section-title {
    color: var(--lime);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 32px;
}

.industries-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.industry-tag {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 500;
}

.industry-separator {
    color: var(--lime);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ===== FAQ Section ===== */
.faq {
    background-color: var(--cream);
}

.faq .section-title {
    color: var(--olive);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: var(--lime);
    box-shadow: var(--shadow-md);
}

.faq-question {
    color: var(--olive);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: italic;
}

.faq-answer {
    color: var(--olive-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--olive);
}

.contact .section-title {
    color: var(--lime);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.contact .section-subtitle {
    color: var(--text-light);
    opacity: 0.9;
    max-width: 700px;
}

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

.contact-primary-cta {
    display: block;
    background-color: var(--lime);
    padding: 40px 48px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 3px solid transparent;
    margin-bottom: 32px;
}

.contact-primary-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--lime-dark);
}

.contact-primary-cta .cta-text {
    display: inline;
    color: var(--olive);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.contact-primary-cta .cta-arrow {
    display: inline;
    color: var(--olive);
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.contact-primary-cta:hover .cta-arrow {
    transform: translateX(8px);
}

.contact-primary-cta .cta-subtext {
    color: var(--olive);
    font-size: 1rem;
    margin-top: 12px;
    opacity: 0.85;
    font-style: italic;
}

.contact-secondary {
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0.9;
}

.contact-secondary p {
    margin-bottom: 8px;
}

.contact-secondary a {
    color: var(--lime);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-secondary a:hover {
    color: var(--lime-dark);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--olive);
    padding: 48px 0;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 36px;
    margin: 0 auto;
}

.footer-tagline {
    color: var(--lime);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

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

    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        width: 468px;
        height: 468px;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--olive);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 14px 20px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-text .highlight {
        text-align: left;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px;
    }

    /* Portfolio Carousel */
    .portfolio-carousel {
        gap: 12px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .portfolio-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .portfolio-content {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    /* Industries */
    .industries {
        padding: 48px 0;
    }

    .industries-list {
        flex-direction: column;
        gap: 12px;
    }

    .industry-separator {
        display: none;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-item {
        padding: 20px;
    }

    /* Contact */
    .contact-primary-cta {
        padding: 32px 24px;
    }

    .contact-primary-cta .cta-text {
        font-size: 1.5rem;
    }

    .contact-primary-cta .cta-arrow {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-image img {
        width: 375px;
        height: 375px;
    }

    .btn {
        padding: 14px 28px;
        width: 100%;
        text-align: center;
    }

    .about-text .highlight {
        font-size: 1.125rem;
    }

    .contact-primary-cta .cta-text {
        font-size: 1.25rem;
    }

    .contact-primary-cta .cta-arrow {
        font-size: 1.25rem;
    }
}
