/* =========================================
   1. GLOBAL VARIABLES & BASE STYLES
========================================= */
:root {
    --primary: #7e22ce;
    --primary-dark: #6b21a8;  
    --primary-soft: #f3e8ff;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-soft: #dcfce7;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --gradient-main: linear-gradient(135deg, #10b981 0%, #7e22ce 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #475569;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--dark); }
a { text-decoration: none; transition: all 0.3s ease; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-primary-soft { background-color: var(--primary-soft) !important; }

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
.navbar-brand img { height: 45px; }
.nav-link { 
    font-weight: 600; color: var(--dark) !important; margin: 0 12px; font-family: var(--font-heading); 
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

.dropdown-menu {
    border: none; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); border-radius: 12px; padding: 10px 0; border: 1px solid #f1f5f9;
}
.dropdown-item { font-weight: 500; padding: 10px 20px; color: #334155; }
.dropdown-item:hover, .dropdown-item:focus { background-color: var(--primary-soft); color: var(--primary); }

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu { display: block; margin-top: 0; }
}

/* --- FOOTER --- */
.footer-main { background: var(--dark); color: #f1f5f9; padding-top: 70px; }
.footer-main h5 { color: #ffffff; margin-bottom: 25px; font-weight: 700; }
.footer-links a { color: #94a3b8; display: block; margin-bottom: 12px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; margin-top: 50px; color: #94a3b8; }

/* --- GLOBAL BUTTONS --- */
.btn-primary { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-gradient { background: var(--gradient-main); border: none; color: #fff; }
.btn-gradient:hover { box-shadow: 0 10px 20px rgba(126, 34, 206, 0.3); color: #fff; transform: translateY(-2px); }

/* =========================================
   2. GLOBAL UTILITIES & ANIMATIONS
========================================= */
.reveal {
    opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

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

/* --- SHARED 3D ICONS --- */
.icon-3d {
    width: 70px; height: 70px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.15), inset 0 -4px 0 rgba(0,0,0,0.2); transition: transform 0.3s ease;
}
.icon-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); color: #ffffff; }
.icon-green { background: linear-gradient(135deg, #34d399, #10b981); color: #ffffff; }
.icon-light { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #7e22ce; }

/* =========================================
   3. HERO SECTIONS (Page Specific)
========================================= */
/* Index Hero */
.static-hero { position: relative; background-color: #ffffff; padding: 120px 0 80px 0; overflow: hidden; }
.static-hero::after { content: ''; position: absolute; bottom: -10%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%); z-index: 0; }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--dark); }
.hero-subtitle { font-size: 1.2rem; color: #64748b; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-image-wrapper { display: flex; justify-content: center; }
.hero-main-img { width: 100%; max-width: 450px; border-radius: 24px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); animation: floatSmooth 6s ease-in-out infinite; border: 1px solid rgba(0,0,0,0.05); overflow: hidden; background-color: #fff; }
.hero-main-img img { width: 100%; height: auto; object-fit: cover; }

/* About Hero */
.inner-hero { position: relative; background-color: #ffffff; padding: 150px 0 100px 0; overflow: hidden; text-align: center; }
.inner-hero::after { content: ''; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(126, 34, 206, 0.08) 0%, rgba(255,255,255,0) 70%); z-index: 0; }
.inner-hero-title { font-size: 4rem; font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: var(--dark); margin-bottom: 1.5rem; position: relative; z-index: 2; }
.inner-hero-subtitle { font-size: 1.25rem; color: #64748b; max-width: 750px; margin: 0 auto; line-height: 1.8; position: relative; z-index: 2; }

/* Contact Hero */
.contact-hero { position: relative; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); padding: 150px 0 120px 0; overflow: hidden; text-align: center; }
.contact-hero::before { content: ''; position: absolute; top: -50%; left: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(126, 34, 206, 0.2) 0%, rgba(255,255,255,0) 70%); z-index: 1; }
.contact-hero-content { position: relative; z-index: 2; }
.contact-hero-title { font-size: 4rem; font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: #ffffff; margin-bottom: 1.5rem; }
.contact-hero-subtitle { font-size: 1.25rem; color: #cbd5e1; max-width: 650px; margin: 0 auto; line-height: 1.8; }

/* Products Hero */
.products-hero { position: relative; background: linear-gradient(135deg, #4c1d95 0%, #7e22ce 50%, #059669 100%); padding: 160px 0 100px 0; overflow: hidden; color: white; }
.products-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.products-hero-title { font-size: 4rem; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 1.5rem; }
.products-hero-subtitle { font-size: 1.25rem; color: #e9d5ff; max-width: 700px; line-height: 1.8; }

/* Services Hero */
.services-hero { position: relative; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); padding: 160px 0 100px 0; overflow: hidden; }
.services-hero::before { content: ''; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(126, 34, 206, 0.3) 0%, rgba(255,255,255,0) 70%); z-index: 1; }
.services-hero::after { content: ''; position: absolute; bottom: -20%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(255,255,255,0) 70%); z-index: 1; }
.services-hero-content { position: relative; z-index: 2; }
.services-hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -1px; color: #ffffff; margin-bottom: 1.5rem; }
.services-hero-subtitle { font-size: 1.15rem; color: #cbd5e1; line-height: 1.8; margin-bottom: 2rem; max-width: 600px; }
.services-hero-img-box { position: relative; z-index: 2; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease; }
.services-hero-img-box:hover { transform: perspective(1000px) rotateY(0deg) translateY(-10px); }
.services-hero-img-box img { width: 100%; height: auto; display: block; }

/* Responsive Heroes */
@media (max-width: 991px) {
    .inner-hero { padding: 120px 0 80px 0; }
    .inner-hero-title { font-size: 3rem; }
    .contact-hero { padding: 120px 0 80px 0; }
    .contact-hero-title { font-size: 3rem; }
    .products-hero { padding: 130px 0 80px 0; text-align: center; }
    .products-hero-title { font-size: 3rem; }
    .products-hero-subtitle { margin: 0 auto 2rem auto; }
    .services-hero { padding: 130px 0 80px 0; text-align: center; }
    .services-hero-title { font-size: 2.8rem; }
    .services-hero-subtitle { margin: 0 auto 2rem auto; }
    .services-hero-img-box { margin-top: 3rem; transform: none; }
    .services-hero-img-box:hover { transform: translateY(-10px); }
}

/* =========================================
   4. COMPONENTS & CARDS
========================================= */
/* Shared Cards */
.modern-card, .service-detail-card, .card-3d-modern {
    background: #ffffff; border: 1px solid #f1f5f9; border-radius: 24px; padding: 40px 30px; transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; position: relative; z-index: 1;
}
.modern-card:hover, .service-detail-card:hover, .card-3d-modern:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: #e2e8f0;
}
.modern-card:hover .icon-3d, .service-detail-card:hover .icon-3d { transform: scale(1.05) translateY(-5px); }

/* Index 3D Icons */
.icon-3d-box { width: 85px; height: 85px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 2rem; position: relative; backdrop-filter: blur(10px); transition: transform 0.3s ease; }
.card-3d-modern:hover .icon-3d-box { transform: scale(1.08) rotate(-5deg); }
.icon-3d-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); color: #ffffff; box-shadow: inset 2px 2px 4px rgba(255,255,255,0.4), inset -4px -4px 8px rgba(0,0,0,0.2), 0 15px 25px rgba(126, 34, 206, 0.3); }
.icon-3d-green { background: linear-gradient(135deg, #34d399, #10b981); color: #ffffff; box-shadow: inset 2px 2px 4px rgba(255,255,255,0.4), inset -4px -4px 8px rgba(0,0,0,0.2), 0 15px 25px rgba(16, 185, 129, 0.3); }
.icon-3d-light { background: linear-gradient(135deg, #ffffff, #f3e8ff); color: var(--primary); box-shadow: inset 2px 2px 6px rgba(255,255,255,1), inset -4px -4px 8px rgba(126, 34, 206, 0.1), 0 15px 25px rgba(126, 34, 206, 0.15); }
.icon-3d-grey { background: linear-gradient(135deg, #ffffff, #f8fafc); color: #64748b; box-shadow: inset 2px 2px 6px rgba(255,255,255,1), inset -4px -4px 8px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.06); }
.border-hover-purple:hover { border-top: 4px solid var(--primary); }
.border-hover-green:hover { border-top: 4px solid var(--secondary); }

/* Index Tech Box */
.tech-box { background: #ffffff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 25px 20px; text-align: center; transition: all 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.tech-box:hover { border-color: var(--secondary); background: #f8fafc; transform: translateY(-3px); }
.tech-box i { font-size: 2.5rem; margin-bottom: 10px; color: #94a3b8; transition: color 0.3s ease;}
.tech-box:hover i { color: var(--primary); }
.tech-box span { font-size: 0.9rem; font-weight: 600; color: #475569; display: block; }

/* Contact Components */
.contact-info-wrapper { margin-top: -60px; position: relative; z-index: 10; }
.info-card { background: #ffffff; border-radius: 20px; padding: 40px 30px; text-align: center; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08); border: 1px solid #f1f5f9; height: 100%; transition: all 0.3s ease; }
.info-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12); border-color: var(--primary); }
.info-icon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; color: #ffffff; }
.info-card h4 { font-weight: 700; margin-bottom: 15px; color: var(--dark); }
.info-card p, .info-card a { color: #475569; font-size: 1.05rem; line-height: 1.6; text-decoration: none; display: block; transition: color 0.3s; }
.info-card a:hover { color: var(--primary); }
.contact-form-wrapper { background: #ffffff; border-radius: 24px; padding: 50px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); border: 1px solid #f1f5f9; }
.form-control, .form-select { border: 2px solid #e2e8f0; border-radius: 12px; padding: 15px 20px; font-size: 1rem; color: #334155; transition: all 0.3s ease; background-color: #f8fafc; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.1); background-color: #ffffff; }
.form-label { font-weight: 600; color: #475569; margin-bottom: 8px; font-size: 0.95rem; }
.btn-submit { background: linear-gradient(135deg, #10b981 0%, #7e22ce 100%); border: none; color: white; font-weight: 700; padding: 16px 30px; border-radius: 50px; font-size: 1.1rem; transition: all 0.3s ease; width: 100%; box-shadow: 0 10px 20px rgba(126, 34, 206, 0.3); }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(126, 34, 206, 0.4); color: white; }
@media (max-width: 768px) { .contact-form-wrapper { padding: 30px 20px; } }
.accordion-item { border: 1px solid #e2e8f0; border-radius: 16px !important; margin-bottom: 15px; overflow: hidden; background: #ffffff; }
.accordion-button { font-weight: 600; color: var(--dark); padding: 20px; background: #ffffff; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-soft); }
.accordion-body { padding: 20px; color: #475569; line-height: 1.7; }
.map-wrapper { border-radius: 24px; overflow: hidden; height: 400px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* About Components */
.story-img-wrapper { position: relative; border-radius: 30px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); border: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
.story-img-wrapper img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; transition: transform 0.6s ease; }
.story-img-wrapper:hover img { transform: scale(1.05); }
.milestone-item { padding-left: 30px; position: relative; margin-bottom: 40px; }
.milestone-item::before { content: ''; position: absolute; left: 0; top: 10px; bottom: -50px; width: 2px; background: #e2e8f0; }
.milestone-item:last-child::before { display: none; }
.milestone-dot { position: absolute; left: -6px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.2); }

/* Services Components */
.service-list { list-style: none; padding: 0; margin: 1.5rem 0 0 0; }
.service-list li { display: flex; align-items: flex-start; margin-bottom: 1rem; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.service-list li i { color: var(--secondary); margin-right: 12px; margin-top: 4px; font-size: 1.1rem; }
.step-card { background: #ffffff; border-radius: 20px; padding: 40px 30px; text-align: center; border: 1px solid #f1f5f9; position: relative; z-index: 2; }
.step-number { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(126, 34, 206, 0.1); }

/* Products Components */
.product-showcase { padding: 100px 0; position: relative; }
.product-showcase:nth-child(even) { background-color: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.product-mockup-wrapper { position: relative; border-radius: 24px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15); border: 1px solid rgba(0,0,0,0.05); overflow: hidden; background: #ffffff; transition: transform 0.5s ease; }
.product-mockup-wrapper:hover { transform: translateY(-10px); box-shadow: 0 40px 80px rgba(15, 23, 42, 0.2); }
.product-mockup-wrapper img { width: 100%; height: auto; display: block; }
.product-feature-list { list-style: none; padding: 0; margin: 2rem 0; }
.product-feature-list li { display: flex; align-items: flex-start; margin-bottom: 1.2rem; font-size: 1.05rem; color: #475569; }
.product-feature-list li i { font-size: 1.3rem; margin-right: 15px; margin-top: 3px; }
.floating-contact-btn { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #10b981 0%, #7e22ce 100%); color: white; border-radius: 50px; padding: 12px 25px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; box-shadow: 0 10px 25px rgba(126, 34, 206, 0.4); z-index: 1050; transition: all 0.3s ease; text-decoration: none; border: 2px solid white; }
.floating-contact-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(126, 34, 206, 0.5); color: white; }