/* ========================================
   CSS Variables
======================================== */
:root {
    --color-primary: #0a2540;
    --color-secondary: #425466;
    --color-accent: #635bff;
    --color-accent-light: #7a73ff;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fc;
    --color-border: #e5e7eb;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Animation Classes
======================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

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

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

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

.btn-dark:hover {
    background: #0d2d4d;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Header
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

header.scrolled .header-inner {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-accent);
}

.logo svg {
    flex-shrink: 0;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-desktop a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-secondary);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-desktop a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-header {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50px;
}

.btn-header:hover {
    background: var(--color-accent);
    transform: none;
    box-shadow: none;
}

/* Hamburger Menu Button */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--color-bg-alt);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Hamburger Active State */
.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav a {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--color-bg-alt);
}

.mobile-nav .btn {
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
}

/* ========================================
   Section Styles
======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.hero-scroll a:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

/* ========================================
   Clients Section
======================================== */
.clients {
    padding: 3rem 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.clients .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.clients p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.client-logo {
    font-size: 2rem;
    color: #9ca3af;
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 7rem 0;
}

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

.service-card {
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: var(--transition);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 7rem 0;
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.1;
}

.about-content .section-tag {
    text-align: left;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ========================================
   Work Section
======================================== */
.work {
    padding: 7rem 0;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.work-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.work-card-large {
    grid-column: 1;
    grid-row: span 2;
}

.work-image {
    height: 240px;
    overflow: hidden;
}

.work-card-large .work-image {
    height: 100%;
    min-height: 400px;
}

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

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

.work-content {
    padding: 1.5rem;
}

.work-card-large .work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.work-card-large .work-category {
    color: rgba(255, 255, 255, 0.8);
}

.work-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.work-card-large .work-content h3 {
    font-size: 1.5rem;
    color: white;
}

.work-content p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.work-card-large .work-content p {
    color: rgba(255, 255, 255, 0.8);
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.work-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Team Section
======================================== */
.team {
    padding: 7rem 0;
    background: var(--color-bg-alt);
}

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

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.team-image {
    height: 280px;
    overflow: hidden;
}

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

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

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

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

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: 50%;
    color: var(--color-secondary);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--color-accent);
    color: white;
}

/* ========================================
   Testimonial Section
======================================== */
.testimonial {
    padding: 7rem 0;
    background: var(--color-primary);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.testimonial-content > i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.testimonial blockquote {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author div {
    text-align: left;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 7rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: 10px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.contact-item span {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    opacity: 0.7;
    line-height: 1.7;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-links h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    font-size: 0.9375rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.875rem;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
}

/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .work-card-large {
        grid-row: span 1;
    }

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .btn-header {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-inner {
        padding: 0.75rem 1rem;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .section-header h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .clients .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .client-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .testimonial blockquote {
        font-size: 1.25rem;
    }

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

    .footer-brand p {
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
