/* Core Variables */
:root {
    --primary: #2A6BFF;
    --primary-dark: #1d59f2;
    --secondary: #6C63FF;
    --accent: #00F5A0;
    --dark: #0F172A;
    --darker: #080E1D;
    --light: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Components */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    border: none;
    box-shadow: 0 10px 25px rgba(42, 107, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(42, 107, 255, 0.4);
    color: var(--light);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(8, 14, 29, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(8, 14, 29, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent);
}

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

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

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

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: rgba(0, 245, 160, 0.15);
    border-radius: 0.375rem;
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.floating-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* Services / Features */
.services {
    background: var(--dark);
}

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

.service-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 245, 160, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: var(--darker);
    padding-top: 8rem;
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: center;
    gap: 4rem;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 1rem;
    z-index: -1;
}

.about-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.about-content ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-300);
}

.about-content ul li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Case Studies */
.case-studies {
    background: var(--darker);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.case-study-image {
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-content h3 {
    color: var(--light);
    margin-bottom: 0.75rem;
}

.case-study-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.case-study-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(42, 107, 255, 0.15);
    color: var(--primary);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    background: var(--dark);
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(0, 245, 160, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--light);
    font-weight: 600;
}

.author-info p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 1rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(8, 14, 29, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    color: var(--light);
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 107, 255, 0.2);
}

.form-control::placeholder {
    color: var(--gray-500);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 160, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.contact-text p, .contact-text a {
    color: var(--gray-300);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Additional for inner pages */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.intro {
    font-size: 1.25rem;
    color: var(--gray-200);
}

.highlights {
    list-style: none;
    margin-bottom: 2.5rem;
}

.highlights li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--gray-300);
}

.highlights li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.case-study-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.case-study-img {
    width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.case-study-img:hover {
    transform: scale(1.03);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    .case-studies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem;
        transition: all 0.4s ease;
        z-index: 100;
    }
    .nav-links.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    section {
        padding: 4rem 0;
    }
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulsing {
    animation: pulse 3s ease-in-out infinite;
}
