/* --- Variables --- */
:root {
    --bg-color: #0b1121; /* Deeper blue/black */
    --bg-secondary: #151e32;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    
    --gradient-main: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-glow: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, rgba(11, 17, 33, 0) 70%);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 100px 0; }

.section__title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.section__title--left { text-align: left; }

.gradient-text {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn--primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    margin-left: 15px;
}

.btn--outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.btn--full { width: 100%; margin-left: 0; }
.btn--glow { animation: pulse-glow 3s infinite; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 17, 33, 0.8);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon { font-size: 1.8rem; filter: drop-shadow(0 0 5px var(--accent-cyan)); }

.nav__list { display: flex; gap: 32px; align-items: center; }

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

.nav__link:hover { color: white; }
.nav__link:hover::after { width: 100%; }

.nav__link.btn-nav {
    border: 1px solid var(--accent-purple);
    padding: 8px 24px;
    border-radius: 20px;
    color: var(--accent-purple);
}

.nav__link.btn-nav:hover {
    background: var(--accent-purple);
    color: white;
}

.nav__link.btn-nav::after { display: none; }

.nav__close, .burger { display: none; }

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__bg-grid {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero__title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero__img {
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

/* --- About Section (Updated for No Image) --- */
.about { background: linear-gradient(180deg, var(--bg-color), var(--bg-secondary)); }

.about__grid {
    max-width: 800px;
    margin: 0 auto;
}

/* Removed old .about__grid grid layout */
/* Removed .about__image styles */

.about__text p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-secondary); }
.about__text strong { color: white; }

.about__list { margin-top: 30px; }
.about__list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-icon { color: var(--accent-green); font-weight: bold; }

/* --- Services Section --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon { font-size: 3rem; margin-bottom: 25px; }
.service-card__title { font-size: 1.4rem; margin-bottom: 15px; color: white; }
.service-card__text { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Tech Section (Updated) --- */
.tech { position: relative; overflow: hidden; }

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

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

.tech-card__title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    display: inline-block;
}

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

.tag {
    background: rgba(6, 182, 212, 0.05);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* --- Approach (Timeline) --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex; /* Changed from grid to flex to support 5 items gracefully */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline__line {
    position: absolute; top: 20px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    z-index: 0; opacity: 0.3;
}

.timeline__item {
    position: relative; z-index: 1; text-align: center;
    background: var(--bg-color); /* Ensure background covers the line */
    padding: 0 10px;
    flex: 1;
    min-width: 140px;
}

.timeline__number {
    width: 45px; height: 45px; margin: 0 auto 20px;
    background: var(--bg-color); border: 2px solid var(--accent-blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: white; box-shadow: 0 0 15px rgba(59,130,246,0.3);
}

.timeline__title { color: white; margin-bottom: 8px; font-size: 1.1rem; }
.timeline__item p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Security Section (Grid Style) --- */
.security {
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
}

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

.security__img {
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.security__content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.security__content strong {
    color: var(--accent-green);
}

.security__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.security__list li::before {
    content: '•';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

/* --- Why Us Section --- */
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
    border-color: var(--accent-purple);
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Contacts --- */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(21, 30, 50, 0.5);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contacts__desc { font-size: 1.2rem; margin-bottom: 40px; }

.contact-box { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { font-size: 1.5rem; background: rgba(255,255,255,0.05); width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.contact-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.contact-value { color: white; font-weight: 500; font-size: 1.05rem; line-height: 1.4; }
.link-hover:hover { color: var(--accent-cyan); text-decoration: underline; }

.contacts__form { background: rgba(255,255,255,0.02); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.form-title { color: white; margin-bottom: 25px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-input {
    width: 100%; padding: 16px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2);
    color: white; font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--accent-blue); background: rgba(0,0,0,0.4); }
.form-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 15px; text-align: center; opacity: 0.7; }

/* --- Footer --- */
.footer {
    background: #050a14;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__heading { color: white; margin-bottom: 15px; font-size: 1.2rem; }
.footer__text { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 10px; }
.footer__copy { color: var(--text-secondary); font-size: 0.9rem; opacity: 0.5; }
.footer__details li { margin-bottom: 8px; color: var(--text-secondary); font-size: 0.95rem; }
.footer__details strong { color: var(--text-primary); }
.footer__bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.disclaimer { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.5; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__title { font-size: 3rem; }
    .services__grid, .tech__grid { grid-template-columns: 1fr; }
    .contacts__wrapper { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; align-items: flex-start; } /* Adjusted for flex */
    .timeline__line { display: none; }
    .timeline__item { width: 100%; text-align: left; padding-left: 20px; margin-bottom: 30px; border-left: 2px solid rgba(59,130,246,0.3); }
    .timeline__number { margin: 0 0 10px 0; }
    .security__container { grid-template-columns: 1fr; } /* Added for Security */
    .why-us__grid { grid-template-columns: 1fr 1fr; } /* Added for Why Us */
}

@media (max-width: 768px) {
    .header__container { padding: 0 20px; }
    .burger { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: none; border: none; cursor: pointer; z-index: 1002; }
    .burger span { width: 100%; height: 2px; background: white; transition: 0.3s; }
    
    .nav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-color); flex-direction: column; justify-content: center;
        transition: 0.4s; z-index: 1001; padding: 40px;
    }
    .nav--active { right: 0; }
    .nav__list { flex-direction: column; font-size: 1.5rem; gap: 40px; }
    .nav__close { display: block; position: absolute; top: 30px; right: 30px; font-size: 2rem; background: none; border: none; color: white; }

    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__img { margin-top: 30px; }
    .hero__actions { justify-content: center; }
    .about__grid { grid-template-columns: 1fr; }
    /* .about__image { order: -1; } <-- Removed as element is gone */
    .footer__grid { grid-template-columns: 1fr; }
    .why-us__grid { grid-template-columns: 1fr; }
    .tech__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section__title { font-size: 2rem; }
    .hero__title { font-size: 2.2rem; }
    .services__grid { grid-template-columns: 1fr; }
}