@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #ff6a00;
    --primary-dark: #cc5500;
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --text-dark: #111111;
    --text-muted: #555555;
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* Page Loader */
.page-loader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-loader.active {
    opacity: 1; pointer-events: all;
}

.loader-content {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
}

.loader-spinner {
    width: 60px; height: 60px; position: relative;
}

.loader-spinner::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    border: 4px solid rgba(255, 106, 0, 0.2);
    border-top-color: #ff6a00; border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: #fff; font-size: 1.1rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); transition: padding 0.3s;
}
.logo { font-size: 1.8rem; font-weight: 800; color: #111; letter-spacing: -1px; display: flex; align-items: center; }
.logo .dot { color: var(--primary); }
.logo-img { height: 50px; width: auto; object-fit: contain; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: #111; font-weight: 600; font-size: 1.05rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #111;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 999;
}

.mobile-nav.open {
    display: flex !important;
}

.mobile-nav a {
    padding: 1rem 5%;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.3s;
}

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

.mobile-nav .btn-primary {
    margin: 1rem 5%;
    width: auto;
    border-radius: 50px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600;
    transition: all 0.3s ease; display: inline-block; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(255,106,0,0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 15px 25px rgba(255,106,0,0.3); color: #fff; }
.btn-secondary { background: transparent; color: #111; border: 2px solid #111; }
.btn-secondary:hover { background: #111; color: #fff; }
.btn-group { display: flex; gap: 1rem; margin-top: 2rem; }

/* Hidden state for Observer */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.show { opacity: 1; transform: translateY(0); }

/* Headers */
.hero-parallax {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=2000&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; padding: 0 10%; color: #fff;
}
.hero-content h1 { font-size: 5.5rem; line-height: 1.1; margin-bottom: 2rem; font-weight: 800; letter-spacing: -2px; }
.hero-content p { font-size: 1.3rem; max-width: 600px; color: rgba(255,255,255,0.9); }

.page-header {
    padding-top: 10rem; padding-bottom: 4rem; padding-left: 5%; padding-right: 5%;
    background: var(--bg-alt);
}
.page-header h1 { font-size: 4rem; color: #111; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; }

/* Sections */
.section-title { font-size: 3rem; font-weight: 800; color: #111; margin-bottom: 1.5rem; letter-spacing: -1px; }

.split-section { display: flex; flex-wrap: wrap; align-items: center; padding: 6rem 5%; gap: 4rem; }
.split-content { flex: 1; min-width: 400px; }
.split-image { flex: 1; min-width: 400px; }
.split-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Trust Bar */
.trust-bar { padding: 4rem 5%; background: var(--bg); border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-heading { text-align: center; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; font-size: 0.9rem; }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5rem; opacity: 0.7; }
.trust-img { height: 75px; filter: grayscale(100%) contrast(120%) opacity(0.65); transition: all 0.3s; max-width: 100%; object-fit: contain; }
.trust-img:hover { filter: none; opacity: 1; transform: scale(1.05); }

/* Cards */
.glass-card {
    background: #fff; border-radius: 20px; padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02);
    display: flex; flex-direction: column; transition: transform 0.3s;
}
.glass-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.glass-card.featured { background: var(--primary); color: #fff; }
.glass-card.featured .card-title, .glass-card.featured p { color: #fff; }

.glass-card-dark {
    background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.features { display: grid; gap: 2rem; padding: 6rem 5%; max-width: 1400px; margin: 0 auto; }
.card-link { font-weight: 600; text-decoration: none; margin-top: 2rem; display: inline-block; transition: color 0.3s; }
.card-link:hover { color: var(--primary-dark); }

/* IT Grid Layer */
.it-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; max-width: 1400px; margin: 0 auto; }
.it-image-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: all 0.4s ease;
    position: relative; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column;
}
.it-image-card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.img-container { height: 240px; overflow: hidden; }
.it-image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.it-image-card:hover img { transform: scale(1.08); }
.card-content { padding: 2.5rem; flex-grow: 1; position: relative; background: #fff; z-index: 2; }
.it-number {
    position: absolute; top: -20px; right: 2.5rem;
    width: 45px; height: 45px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; box-shadow: 0 10px 20px rgba(255,106,0,0.3);
}
.it-image-card h3 { font-size: 1.6rem; color: #111; margin-bottom: 1rem; }
.it-image-card p { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }
.badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(255,106,0,0.1); color: var(--primary); font-size: 0.85rem; font-weight: 600; border-radius: 50px; margin-top: 1.5rem; }

/* Interactive Gallery */
.expanding-cards-container { display: flex; gap: 1rem; }
.expanding-card {
    flex: 1; background-size: cover; background-position: center; border-radius: 20px;
    cursor: pointer; transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
}
.expanding-card.active { flex: 4; }
.expanding-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); opacity: 0; transition: opacity 0.6s; }
.expanding-card.active::before { opacity: 1; }
.expanding-card .card-content { position: relative; z-index: 2; padding: 3rem; opacity: 0; transform: translateY(20px); transition: all 0.4s; color: #fff; }
.expanding-card.active .card-content { opacity: 1; transform: translateY(0); transition-delay: 0.2s; background: transparent; }
.expanding-card h3 { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; }
.expanding-card p { display: none; }
.expanding-card.active p { display: block; color: rgba(255,255,255,0.9); }

/* Vcards & Values */
.vcard { display: flex; flex-direction: column; padding: 2rem; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.vcard.floating { margin-bottom: 2rem; transition: transform 0.3s; border-left: 4px solid var(--primary); }
.vcard.floating:hover { transform: translateX(10px); }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; }
.bg-dark { background: #111; color: #fff; }
.bg-white { background: #fff; color: var(--primary); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.value-card { background: #fff; padding: 3rem 2rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; transition: all 0.3s; border: 1px solid rgba(0,0,0,0.03); }
.value-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(255,106,0,0.1); }
.val-icon { margin-bottom: 1.5rem; }

/* Marquee */
.marquee-wrapper { overflow: hidden; white-space: nowrap; width: 100%; display: flex; align-items: center; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; font-weight: 600; font-size: 1.5rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Modern List */
.modern-list { display: flex; flex-direction: column; gap: 1rem; }
.list-item { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; font-weight: 500; color: #333; padding: 1rem; background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.list-item span { width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; font-weight: 800; }

/* Testimonials */
.testimonial-slider { overflow: hidden; padding: 2rem 0; background: var(--bg-alt); }
.testimonial-track { display: flex; width: calc(400px * 6); animation: scroll 30s linear infinite; gap: 2rem; padding: 0 1rem; }
.testimonial-card { width: 400px; padding: 2.5rem; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); flex-shrink: 0; }
.quote { font-style: italic; color: #555; font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.author { font-weight: 700; color: #111; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-400px * 3 - 6rem)); } }

/* Project Gallery Overlay */
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 1400px; margin: 0 auto; }
.project-box { position: relative; height: 400px; border-radius: 20px; overflow: hidden; }
.project-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
.project-box:hover .project-info { transform: translateY(0); opacity: 1; }
.project-box:hover img { transform: scale(1.1); }

/* Banner */
.image-banner { position: relative; height: 500px; }
.image-banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; }
.banner-overlay h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }

/* Footer */
.footer { padding: 4rem 10% 2rem; background-color: var(--bg); text-align: center; }
.footer-link { color: var(--text-dark); text-decoration: none; border-bottom: 1px dashed var(--primary); transition: color 0.3s ease, border-color 0.3s ease; }
.footer-link:hover { color: var(--primary); border-bottom: 1px solid var(--primary); }

/* Project Modal Engine */
.project-box.interactive { cursor: pointer; border: 2px solid transparent; }
.project-box.interactive:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary); box-shadow: 0 25px 50px rgba(255,106,0,0.15); }
.project-box.interactive:hover .project-info { background: var(--primary); }
.project-box.interactive:hover .project-info h3, .project-box.interactive:hover .project-info p { color: #fff; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--bg); width: 90%; max-width: 1200px; border-radius: 20px; padding: 4rem; max-height: 85vh; overflow-y: auto; position: relative; border-top: 8px solid var(--primary); transform: translateY(50px) scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal.active .modal-content { transform: translateY(0) scale(1); }
.close-modal { position: absolute; top: 2rem; right: 2.5rem; font-size: 2.5rem; font-weight: 300; cursor: pointer; color: #555; width: 50px; height: 50px; border-radius: 50%; background: #f0f0f0; display: flex; justify-content: center; align-items: center; transition: all 0.3s; }
.close-modal:hover { background: #111; color: #fff; transform: rotate(90deg); }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.modal-gallery img { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); transition: transform 0.3s; }
.modal-gallery img:hover { transform: scale(1.03); }

/* Responsive */
@media (max-width: 768px) {
    .hero-parallax { padding: 0 5%; padding-top: 6rem; }
    .hero-content h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; }
    .hero-content p { font-size: 1rem; }
    .split-section { padding: 4rem 5%; gap: 2rem; flex-direction: column; }
    .split-content { min-width: 100%; }
    .split-image { min-width: 100%; }
    .split-image img { height: auto; max-height: 400px; }
    
    /* Mobile Menu */
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: block !important; }
    .navbar { padding: 1rem 5%; }
    .navbar.open { height: auto; }
    .mobile-nav { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .mobile-nav.open { max-height: 500px; display: flex !important; }
    
    .features { grid-template-columns: 1fr; }
    .expanding-cards-container { flex-direction: column; height: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
    .expanding-card { min-height: 300px; }
    .expanding-card.active { flex: none; }
    .page-header h1 { font-size: 2.5rem; }
    
    /* Footer spacing fixes */
    .footer { padding: 4rem 5% 2rem; }
    .glass-card.footer-card { padding: 2rem; }
    .glass-card.footer-card h3 { font-size: 1.5rem; }
    
    /* Split section with glass card positioning */
    .split-image { position: relative; margin-bottom: 0; }
    .glass-card-dark { position: relative !important; bottom: auto !important; left: auto !important; margin-top: 2rem; margin-bottom: 3rem; max-width: 100%; width: 100%; }
    
    /* Section titles on mobile */
    .section-title { font-size: 2rem; }
    
    /* Trust bar */
    .trust-grid { gap: 2rem 3rem; }
    
    /* IT Grid on mobile */
    .it-grid { grid-template-columns: 1fr; }
    
    /* Buttons */
    .btn-group { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* Projects Hero Section */
.projects-hero {
    position: relative; overflow: hidden; padding: 10rem 5%; margin-top: 80px;
    min-height: 600px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.projects-hero-bg {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%; opacity: 0.15;
}

.hero-shape {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,0,0.8) 0%, rgba(255,106,0,0) 70%);
}

.hero-shape-1 { width: 300px; height: 300px; top: -50px; right: -50px; animation: float 6s ease-in-out infinite; }
.hero-shape-2 { width: 200px; height: 200px; top: 50%; right: 10%; animation: float 8s ease-in-out infinite reverse; }
.hero-shape-3 { width: 250px; height: 250px; bottom: -30px; right: 20%; animation: float 7s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.projects-hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 900px;
    color: #fff; animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.projects-title {
    font-size: 4.5rem; font-weight: 800; margin-bottom: 1.5rem;
    line-height: 1.1; letter-spacing: -2px;  
}

.projects-subtitle {
    font-size: 1.4rem; color: rgba(255,255,255,0.8); margin-bottom: 3rem;
    line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto;
}

.projects-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    display: flex; flex-direction: column; align-items: center;
}

.stat-number {
    font-size: 2.5rem; font-weight: 800; color: #ff6a00; margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem; color: rgba(255,255,255,0.7); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Responsive Projects Hero */
@media (max-width: 768px) {
    .projects-hero {
        padding: 6rem 5%;
        min-height: auto;
    }
    
    .projects-title {
        font-size: 2.8rem;
    }
    
    .projects-subtitle {
        font-size: 1.1rem;
    }
    
    .projects-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-shape {
        display: none;
    }
}