/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-blue: #0066ff;
    --primary-light: #4d94ff;
    --primary-dark: #0047b3;
    --accent-blue: #00d2ff;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0b1120;
    --bg-darker: #060913;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    --gradient-dark: linear-gradient(135deg, #1e293b, var(--bg-dark));
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(11, 17, 32, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 102, 255, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p { margin-bottom: 1rem; color: var(--text-muted); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white, .text-white h2, .text-white p { color: var(--text-light); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* =========================================
   Header & Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-base);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i { color: var(--primary-blue); }
.logo span { color: var(--primary-blue); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-base);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.glow-1 {
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: var(--accent-blue);
}

.glow-2 {
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: var(--primary-blue);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; margin-bottom: 2rem; color: #475569; }

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.trust-logos span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 3D Visual Concept */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-card-ui {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg);
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: -10px 20px 40px rgba(0,0,0,0.1);
    padding: 1.5rem;
    animation: floating 6s ease-in-out infinite;
}

.ui-header .dots {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
    margin-bottom: 2rem;
}

.ui-body .line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.ui-body .w-75 { width: 75%; }
.ui-body .w-50 { width: 50%; }

.ui-body .chart {
    height: 120px;
    background: linear-gradient(to top, rgba(0,102,255,0.2) 0%, transparent 100%);
    border-bottom: 2px solid var(--primary-blue);
    margin-top: 2rem;
    border-radius: 4px;
    position: relative;
}
.ui-body .chart::before {
    content: ''; position: absolute;
    bottom: -6px; left: 50%;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0,102,255,0.3);
}

@keyframes floating {
    0% { transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg) translateY(-20px); }
    100% { transform: translate(-50%, -50%) rotateY(-15deg) rotateX(10deg) translateY(0); }
}

.abstract-shape {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(20px);
}
.shape-1 { width: 100px; height: 100px; top: 20%; right: 10%; opacity: 0.6; animation: floatX 8s infinite alternate;}
.shape-2 { width: 150px; height: 150px; bottom: 10%; left: 10%; background: #00d2ff; opacity: 0.4; animation: floatY 7s infinite alternate;}

@keyframes floatX { from { transform: translateX(0); } to { transform: translateX(-30px); } }
@keyframes floatY { from { transform: translateY(0); } to { transform: translateY(-30px); } }

/* =========================================
   About Section
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.about-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
}

.about-card .icon {
    width: 50px; height: 50px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.about-card h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.about-card p { margin-bottom: 0; font-size: 0.85rem; }

.section-title { margin-bottom: 1.5rem; }

.milestones {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.milestone h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.milestone p { margin-bottom: 0; font-weight: 500; }

/* =========================================
   Services Section
   ========================================= */
.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.service-icon {
    width: 60px; height: 60px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::after { opacity: 1; }
.service-card:hover h3, .service-card:hover p { color: white; }
.service-card:hover .service-icon { background: rgba(255,255,255,0.2); color: white; }

/* =========================================
   Portfolio Section
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.portfolio-img {
    height: 300px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-content { padding: 2rem; }

.category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; margin-bottom: 0.5rem;
}

.case-details p { margin-bottom: 0.5rem; font-size: 0.95rem; color: #475569;}
.case-details .impact {
    color: #10b981;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* =========================================
   Technologies Marquee
   ========================================= */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 150px;
    z-index: 2;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

.marquee-content {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
}

.tech-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tech-item i { font-size: 2rem; }
.tech-item:hover { color: var(--accent-blue); transform: scale(1.1); }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================
   Testimonials
   ========================================= */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(0, 102, 255, 0.1);
    position: absolute;
    top: 2rem; left: 2rem;
}

.stars { color: #f59e0b; margin-bottom: 1.5rem; }
.quote { font-size: 1.25rem; font-style: italic; color: var(--text-main); margin-bottom: 2rem; position: relative; z-index: 1;}

.author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.author-avatar {
    width: 50px; height: 50px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.author-info h4 { margin-bottom: 0; font-size: 1rem; }
.author-info span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   Blog Section
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }

.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-content { padding: 1.5rem; }
.blog-content .date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block;}
.blog-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }

.read-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.read-more:hover i { transform: translateX(5px); }
.read-more i { transition: transform 0.2s; }

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-darker);
    border-radius: 30px;
    overflow: hidden;
    color: white;
}

.contact-info {
    padding: 4rem;
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&q=80&w=600') center/cover;
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 9, 19, 0.9);
}

.contact-info > * { position: relative; z-index: 1; }
.contact-info p { color: var(--text-light); opacity: 0.8; }
.contact-info .gradient-text { text-shadow: 0 0 20px rgba(0, 102, 255, 0.4); }

.info-items { margin: 2rem 0; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-item i {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-blue);
}
.info-item h4 { margin-bottom: 0.2rem; font-size: 1rem; color: white;}
.info-item p { margin: 0; font-size: 0.9rem; }

.contact-form-container {
    padding: 4rem;
    background: var(--bg-white);
    color: var(--text-main);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: #f8fafc;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    background: white;
}
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 500;}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-dark);
    color: white;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand p { color: var(--text-muted); margin: 1.5rem 0; max-width: 300px; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links h4 { color: white; margin-bottom: 1.5rem; }
.footer-links a {
    display: block; color: var(--text-muted); margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-blue); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Animations & Transitions
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.active { opacity: 1; transform: translateY(0); }

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-left.active { opacity: 1; transform: translateX(0); }

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-right.active { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.active > * { opacity: 1; transform: translateY(0); }

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-container, .about-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .trust-logos { justify-content: center; }
    .hero-visual { display: none; }
    .about-card { right: 50%; transform: translateX(50%); bottom: -20px; }
    .milestones { justify-content: center; }
    
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 4rem 0; }
    
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
    }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .social-links { justify-content: center; }
    .footer-brand p { margin: 1rem auto; }
}
