@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #C1272D;
    --green: #006233;
    --neon-green: #00ff41;
    --black: #000000;
    --off-black: #0a0a0a;
    --card-bg: #111111;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #999999;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Text Selection Color */
::selection {
    background: var(--green);
    color: var(--white);
}

::-moz-selection {
    background: var(--green);
    color: var(--white);
}

/* Focus Outlines */
*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Link Styles */
a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

a:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--green);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   ANIMATED BACKGROUND
======================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(193, 39, 45, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 98, 51, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(193, 39, 45, 0.08) 0%, transparent 70%);
    animation: gradientShift 20s ease-in-out infinite;
}

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

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.site-wrapper {
    position: relative;
    z-index: 3;
}

/* ========================================
   TYPOGRAPHY
======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--red) 0%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientAnimation 3s ease-in-out infinite;
    background-size: 200% 200%;
}

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

/* ========================================
   NAVIGATION
======================================== */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 40px rgba(193, 39, 45, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    color: var(--white);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--red), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

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

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

.nav-cta {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

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

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--light-gray);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.3s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

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

.btn {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--green));
    color: var(--white);
    box-shadow: 0 10px 40px rgba(193, 39, 45, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(193, 39, 45, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.visual-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.sphere-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(193, 39, 45, 0.4) 0%, rgba(0, 98, 51, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: spherePulse 4s ease-in-out infinite;
}

@keyframes spherePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.sphere-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(193, 39, 45, 0.3);
    animation: rotateRing 20s linear infinite;
}

.ring-2 {
    width: 400px;
    height: 400px;
    border-color: rgba(0, 98, 51, 0.3);
    animation: rotateRing 25s linear infinite reverse;
}

.ring-3 {
    width: 500px;
    height: 500px;
    border-color: rgba(255, 255, 255, 0.05);
    border-style: dashed;
    animation: rotateRing 30s linear infinite;
}

@keyframes rotateRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-green);
    animation: floatPoint 4s ease-in-out infinite;
}

.dp-1 { top: 10%; left: 50%; animation-delay: 0s; }
.dp-2 { top: 50%; right: 10%; animation-delay: 1s; }
.dp-3 { bottom: 10%; left: 50%; animation-delay: 2s; }
.dp-4 { top: 50%; left: 10%; animation-delay: 3s; }

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

.floating-card {
    position: absolute;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cardFloat 6s ease-in-out infinite;
}

.fc-1 {
    top: 10%;
    right: 5%;
    width: 240px;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 30%;
    left: 0%;
    width: 200px;
    animation-delay: 2s;
}

.fc-3 {
    bottom: 10%;
    right: 15%;
    width: 180px;
    height: 100px;
    animation-delay: 4s;
}

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

.fc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fc-icon {
    font-size: 24px;
}

.status-active {
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.fc-metric {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.metric-value {
    color: var(--neon-green);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--red), var(--green));
    animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.sparkline {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(193, 39, 45, 0.5) 50%, 
        transparent 100%
    );
    animation: sparklineMove 3s ease-in-out infinite;
}

@keyframes sparklineMove {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    padding: 150px 0;
    position: relative;
}

.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(193, 39, 45, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(193, 39, 45, 0.3);
    box-shadow: 0 30px 80px rgba(193, 39, 45, 0.2);
}

.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 80px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.5s;
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.2), rgba(0, 98, 51, 0.2));
    border-color: var(--green);
    transform: rotate(5deg) scale(1.1);
}

.service-icon {
    font-size: 32px;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-description {
    font-size: 15px;
    color: var(--light-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-features li {
    font-size: 12px;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-glow {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 98, 51, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    transition: bottom 0.5s;
}

.service-card:hover .service-glow {
    bottom: -50px;
}

/* ========================================
   PROCESS SECTION
======================================== */
.process-section {
    padding: 150px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(193, 39, 45, 0.02) 50%, transparent 100%);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr;
    gap: 32px;
    margin-bottom: 80px;
    align-items: center;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
    position: relative;
}

.timeline-number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--green);
    border-radius: 50%;
    opacity: 0.2;
}

.timeline-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--green);
}

.timeline-line {
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, var(--green), transparent);
    margin-top: 8px;
}

.timeline-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 16px;
    color: var(--light-gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.timeline-duration {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(0, 98, 51, 0.1);
    border: 1px solid var(--green);
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   TECH SECTION
======================================== */
.tech-section {
    padding: 150px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tech-category {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s;
    cursor: pointer;
}

.tech-category:active {
    transform: scale(0.98);
}

.tech-category:hover {
    border-color: rgba(0, 98, 51, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 98, 51, 0.1);
}

.tech-category h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tags span {
    font-size: 13px;
    color: var(--light-gray);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.tech-tags span:hover {
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.1), rgba(0, 98, 51, 0.1));
    border-color: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 150px 0;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle at center, rgba(193, 39, 45, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-contact {
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
}

.cta-contact a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--white);
    margin-left: 8px;
    transition: all 0.3s;
}

.cta-contact a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--gray);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* ========================================
   MODAL
======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red), var(--green));
    border-radius: 10px;
    transition: background 0.3s;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--green), var(--red));
}

/* Firefox Scrollbar */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--green) rgba(255, 255, 255, 0.05);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: var(--card-bg);
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--red);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid, .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 60px 40px 1fr;
        gap: 24px;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .timeline-content h3 {
        font-size: 24px;
        min-width: auto;
    }
    
    .timeline-content p {
        font-size: 15px;
        min-width: auto;
    }
    
    .section-container {
        padding: 0 40px;
    }
    
    .nav-container {
        padding: 20px 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Use 5% padding on mobile */
    .section-container, .nav-container, .hero-container, .footer-container, .footer-bottom {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-badge {
        font-size: 11px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-card {
        padding: 28px 20px;
        text-align: center;
    }
    
    .service-number {
        position: relative;
        top: auto;
        right: auto;
        font-size: 48px;
        opacity: 0.1;
        margin: 0 auto 16px;
    }
    
    .service-icon-wrapper {
        margin: 0 auto 20px;
    }
    
    .service-title {
        font-size: 22px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .service-features {
        justify-content: center;
    }
    
    .timeline {
        max-width: 100%;
        padding: 0;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 16px;
    }
    
    .timeline-visual {
        display: none;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content h3 {
        font-size: 22px;
        min-width: auto;
        margin-bottom: 12px;
    }
    
    .timeline-content p {
        font-size: 15px;
        min-width: auto;
        margin: 0 auto 16px;
        max-width: 100%;
    }
    
    .timeline-duration {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .tech-category {
        padding: 24px;
    }
    
    .tech-category h4 {
        font-size: 18px;
    }
    
    .cta-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .cta-container {
        padding: 40px 5%;
        text-align: center;
        margin: 0 5%;
    }
    
    .cta-contact {
        margin-top: 20px;
        font-size: 13px;
    }
    
    .cta-contact a {
        display: block;
        margin-top: 8px;
        margin-left: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 0;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        display: inline-block;
        margin: 0 auto;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
        max-width: 280px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 16px;
    }
    
    .footer-col a {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        padding-top: 40px;
        margin-top: 40px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 32px 20px;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    /* Keep 5% padding but ensure minimum */
    .section-container, .nav-container, .hero-container, .footer-container, .footer-bottom {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .service-number {
        font-size: 60px;
        top: 16px;
        right: 16px;
    }
    
    .cta-title {
        font-size: 26px;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 14px;
    }
    
    .cta-container {
        padding: 32px 5%;
        border-radius: 20px;
        margin: 0 5%;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .cta-contact {
        font-size: 12px;
    }
    
    .cta-contact a {
        font-size: 14px;
        margin-top: 4px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand .logo {
        font-size: 28px;
        margin: 0 auto;
    }
    
    .footer-brand p {
        font-size: 13px;
        max-width: 240px;
    }
    
    .footer-col h4 {
        font-size: 13px;
    }
    
    .footer-col a {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 11px;
        padding-top: 32px;
        margin-top: 32px;
    }
    
    .modal-content {
        padding: 24px 16px;
    }
}