/* CSS Variables */
/* Energetic Lime & Charcoal */
:root {
    --primary-color: #84cc16; /* A bright, energetic lime */
    --primary-hover: #65a30d; /* A deeper lime for hover */
    --primary-color-rgb: 132, 204, 22; /* RGB for rgba() usage */
    --primary-gradient-end: #a3e635; /* Brighter lime for gradients */

    --dark-bg: #18181b;       /* A warm, charcoal black */
    --darker-bg: #131316;     /* A true black for depth */
    --light-gray: #27272a;   /* A medium-dark gray for cards */
    --text-gray: #a1a1aa;     /* A soft, neutral gray for text */
    --border-gray: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(55, 65, 81, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.hover-lift {
    transition: all 0.3s ease;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

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

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

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(23, 23, 23, 0.95); /* Matches --dark-bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 23, 0.95); /* Matches --dark-bg */
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 32px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, rgba(38, 38, 38, 0.3) 100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 32px;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-cta {
    font-size: 14px;
    color: #9ca3af;
}

.cta-link {
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Client Logos */
.client-logos {
    padding: 64px 0;
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 48px;
}

.logos-slider {
    overflow: hidden;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 48px;
    align-items: center;
}

.logo-item {
    flex-shrink: 0;
    height: 48px;
    width: 128px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.6;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 800px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

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

.service-card {
    padding: 32px;
    border-radius: 12px;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-color-rgb), 0.5);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 24px;
}

.service-category {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-description {
    color: #d1d5db;
    margin-bottom: 24px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    text-decoration: underline;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent); /* Matches --darker-bg */
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-description {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 16px;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.portfolio-link:hover {
    text-decoration: underline;
}

.portfolio-link .fa-external-link-alt {
    margin-left: 8px;
    font-size: 0.8em;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrapper {
    padding: 32px;
    border-radius: 12px;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    background-color: var(--darker-bg);
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.contact-form textarea {
    resize: none;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text p {
    color: #d1d5db;
}

.contact-image {
    border-radius: 12px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-gray);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-gray);
}

.copyright {
    color: #9ca3af;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-bg);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 16px;
    z-index: 1001;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast[data-toast-type="success"] .toast-icon {
    color: #10b981; /* Green */
}

.toast[data-toast-type="error"] .toast-icon {
    color: #ef4444; /* Red */
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-description {
    color: #d1d5db;
    font-size: 14px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions .btn {
        display: none;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand, .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

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

    .hero-subtitle {
        font-size: 1rem;
    }

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