/* STYLE V3 - Azure Sky Tech & Globe */
:root {
    --bg-dark: #0c4a6e;
    --bg-light: #0ea5e9;
    --bg-gradient: linear-gradient(135deg, #020617 0%, #075985 100%);
    --accent: #38bdf8;
    --accent-glow: #7dd3fc;
    --text-white: #f0f9ff;
    --text-gray: #bae6fd;
    --card-bg: rgba(12, 74, 110, 0.6);
    --border: rgba(56, 189, 248, 0.2);
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-gradient);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

#tech-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; pointer-events: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* NAVBAR */
.navbar { height: 80px; display: flex; align-items: center; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: fixed; width: 100%; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: 1px; }
.logo-highlight { color: var(--accent); }

/* 3D LOGO - ROTATING CUBE WITH '3' */
.logo-3d-container { width: 40px; height: 40px; perspective: 600px; }
.cube-3d { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spinCube 10s infinite linear; }
.face { position: absolute; width: 40px; height: 40px; border: 2px solid var(--accent); background: rgba(14, 165, 233, 0.1); }
.front  { transform: rotateY(0deg) translateZ(20px); }
.back   { transform: rotateY(180deg) translateZ(20px); }
.right  { transform: rotateY(90deg) translateZ(20px); }
.left   { transform: rotateY(-90deg) translateZ(20px); }
.top    { transform: rotateX(90deg) translateZ(20px); }
.bottom { transform: rotateX(-90deg) translateZ(20px); }

.inner-num {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg); /* Counter rotation handled by animation if needed */
    font-size: 24px; font-weight: 800; color: var(--text-white);
    text-shadow: 0 0 10px var(--accent);
    font-family: var(--font-head);
    /* Make '3' rotate with cube but face outward? Or just be inside. */
    /* To make it 3D, we might need multiple layers, but simple text inside works for now. */
}

@keyframes spinCube {
    0% { transform: rotateX(-15deg) rotateY(0); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.nav-toggle {
    display: none; flex-direction: column; gap: 6px; cursor: pointer;
}
.nav-toggle span {
    width: 25px; height: 2px; background: var(--text-white); transition: 0.3s;
}

/* Default Desktop Menu */
.nav-menu {
    display: flex; gap: 30px; list-style: none; align-items: center;
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 0; width: 100%;
    background: rgba(2, 6, 23, 0.95); padding: 20px;
    border-bottom: 1px solid var(--border);
}
.nav-menu a { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-menu a:hover { color: var(--accent); }
.btn-nav { border: 1px solid var(--accent); padding: 8px 20px; border-radius: 4px; color: var(--accent) !important; }
.btn-nav:hover { background: var(--accent); color: #000 !important; }

/* HERO SECTION */
.hero { padding-top: 120px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-title { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(to right, #38bdf8, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px; max-width: 500px; }
.hero-btns { display: flex; gap: 20px; }
.btn { padding: 15px 35px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.3s; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--accent); color: #020617; border: none; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(56,189,248,0.4); }
.btn-secondary { border: 1px solid var(--text-gray); color: var(--text-white); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* GLOBE VISUAL - Updated to be more visible */
.hero-visual { position: relative; width: 350px; height: 350px; margin: 0 auto; perspective: 1000px; }

.tech-circle-outer {
    position: absolute; inset: -20px; border: 1px dashed var(--border); border-radius: 50%;
    animation: spinSlow 30s linear infinite; opacity: 0.5;
}

.globe-container {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d;
    animation: floatGlobe 6s ease-in-out infinite;
}

.globe-sphere {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #0ea5e9, #020617);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

/* Realistic Solid Continent Map Texture - FIXED */
.globe-sphere::before {
    content: ''; position: absolute;
    width: 200%; height: 100%;
    /* Simple, high contrast world map SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1000'%3E%3Cpath fill='%231e293b' d='M1857,368c-11,0-21-10-17-21c10-30,54-36,67-10c6,13-4,25-17,28C1879,367,1868,362,1857,368z M276,678c-4-9-12-15-22-14c-14,1-22,16-16,28c6,13,24,16,34,8C278,695,280,686,276,678z M1600,300c50,0,100,50,150,0c-20-50-80-20-100-50C1600,200,1550,250,1600,300z M800,200c50,0,100,50,50,100C800,350,750,300,800,200z M1200,600c-50,0-100-50-50-100C1200,450,1250,500,1200,600z M400,400c50,0,50,50,0,50C350,450,350,400,400,400z'/%3E%3Crect width='2000' height='1000' fill='none'/%3E%3Cpath fill='%230f172a' d='M50,50 L100,150 L200,100 Z M1800,800 L1900,900 L1850,950 Z'/%3E%3C/svg%3E");
    background-size: 200px 100px; /* Smaller repeat for pattern effect if map fails */
    opacity: 0.8; /* Increased opacity */
    animation: globeSpin 20s linear infinite;
    mix-blend-mode: multiply; /* Better blending */
}

/* Better SVG World Map - Fallback Pattern */
.globe-sphere {
    /* ... existing styles ... */
    background: radial-gradient(circle at 30% 30%, #38bdf8, #0c4a6e); /* Brighter Blue */
}

@keyframes globeSpin {
    0% { background-position: 0 0; }
    100% { background-position: -200px 0; }
}

/* Rays / Pings */
.ray {
    position: absolute; top: 50%; left: 50%; width: 2px; height: 100px;
    background: linear-gradient(to top, transparent, var(--accent));
    transform-origin: bottom center; opacity: 0;
}
.ray-1 { animation: rayShoot 4s infinite; transform: rotate(45deg) translateY(-150px); }
.ray-2 { animation: rayShoot 4s infinite 2s; transform: rotate(-30deg) translateY(-150px); }

.ping {
    position: absolute; width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}
.ping-1 { top: 30%; left: 40%; animation: pingPulse 2s infinite; }
.ping-2 { top: 60%; left: 70%; animation: pingPulse 3s infinite 1s; }

@keyframes spinSlow { 100% { transform: rotate(360deg); } }
@keyframes floatGlobe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes rayShoot { 0% { opacity: 0; height: 0; } 50% { opacity: 1; height: 100px; } 100% { opacity: 0; transform: rotate(45deg) translateY(-250px); } }
@keyframes pingPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

/* SERVICES */
.services { padding: 100px 0; background: rgba(0,0,0,0.2); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; }
.section-head p { color: var(--accent); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 30px; border-radius: 12px; transition: 0.3s;
    display: flex; flex-direction: column; gap: 15px;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

/* Horizontal Header inside card */
.card-header { display: flex; align-items: center; gap: 15px; }
.icon-box { font-size: 2rem; }
.card h3 { font-size: 1.2rem; font-family: var(--font-head); text-transform: uppercase; margin: 0; }
.card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.5; margin-top: 5px; }
.highlight { background: linear-gradient(145deg, rgba(56,189,248,0.15), var(--card-bg)); border-color: var(--accent); }

/* CORPORATE & FORM */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.corporate { padding: 100px 0; }
.stat-row { display: flex; gap: 40px; margin: 30px 0; }
.num { display: block; font-size: 3rem; font-weight: 700; color: var(--accent); font-family: var(--font-head); }
.lbl { color: var(--text-gray); font-size: 0.9rem; }

.corp-form {
    background: rgba(2, 6, 23, 0.6); border: 1px solid var(--border);
    padding: 30px; border-radius: 12px;
}
.corp-form h3 { margin-bottom: 20px; font-family: var(--font-head); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); color: white; margin-bottom: 20px;
    border-radius: 6px; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.full-width { width: 100%; }

/* MAP SECTION */
.map-section { padding-bottom: 50px; }
.map-section iframe { border-radius: 12px; border: 1px solid var(--border); }

/* FOOTER - Compact */
footer { background: #020617; padding: 20px 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-info { margin-bottom: 0; }
.footer-info h4 { font-family: var(--font-head); font-size: 1.2rem; margin: 0; color: var(--accent); display: inline-block; margin-right: 10px; }
.footer-info p { color: var(--text-gray); display: inline-block; margin: 0; font-size: 0.9rem; }
.footer-contact { display: none; } /* Remove phone/mail details from footer, they are in header/contact section */
.footer-copyright { grid-column: auto; margin-top: 0; padding-top: 0; border-top: none; font-size: 0.8rem; color: var(--text-gray); }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text { order: 2; }
    .hero-visual { order: 1; width: 250px; height: 250px; margin-bottom: 20px; }
    .hero-title { font-size: 3rem; }
    .hero-btns { justify-content: center; }
    
    .split-layout { grid-template-columns: 1fr; text-align: center; }
    .stat-row { justify-content: center; }
    .corp-text p { margin: 0 auto 20px; }
}

@media (max-width: 768px) {
    /* Navbar */
    .nav-menu { display: none; } /* Hidden by default, needs JS toggle */
    .nav-toggle { display: flex; }
    .logo-text { font-size: 20px; }
    
    /* Sections */
    .section-head h2 { font-size: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    
    /* Footer */
    .footer-grid { flex-direction: column; gap: 15px; text-align: center; }
    .footer-info h4, .footer-info p { display: block; margin-bottom: 5px; }
    
    /* Card Mobile */
    .card { text-align: left; } /* Keep card content readable */
    
    /* Prevent overflow */
    html, body { overflow-x: hidden; width: 100%; }
    .container { padding: 0 15px; }
    
    .corp-form { margin-top: 20px; }
}

/* Ensure logo is visible */
.logo-3d-container { flex-shrink: 0; }
