/* --- Variables & Reset --- */
:root {
    --bg-dark: #0b1121;       /* Deepest Navy */
    --bg-alt:  #111827;       /* Slightly lighter/grayer */
    --primary: #3b82f6;       /* Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;     /* Purple */
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* --- Eye Candy: Background Blobs --- */
.background-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh;
    overflow: hidden; z-index: 0; pointer-events: none;
}

.shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.shape-2 { bottom: 20%; right: -10%; width: 600px; height: 600px; background: var(--secondary); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: #06b6d4; animation-delay: -10s; opacity: 0.2; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; padding: 12px 30px; border-radius: 50px;
    font-weight: 600; transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1); display: inline-block;
}

.glow-effect:hover {
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main);
    padding: 12px 30px; border-radius: 50px; font-weight: 600;
    transition: var(--transition); display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1); border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Navbar --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: var(--transition);
    background: rgba(11, 17, 33, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }
.dot { color: var(--primary); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn-primary):hover { color: var(--primary); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Hero Section (Side-by-Side Layout) --- */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center; /* Vertically center the grid in the viewport */
    justify-content: center;
    position: relative;
    padding-top: 100px; /* Space for navbar */
    padding-bottom: 50px;
    background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* This container now acts as the Grid Wrapper */
.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Text gets slightly more space */
    align-items: center; /* Vertically align text with solar system */
    gap: 40px;
    width: 100%;
}

/* Left Column Styling */
.hero-text {
    text-align: left; /* Force left alignment */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 90%; /* Prevent text from hitting the solar system too hard */
    margin: 0 0 40px 0; /* Remove auto margins so it stays left */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Align buttons to the start (left) */
}

/* Right Column Styling */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Adjust Solar System Container to fit in the column */
.orbital-container {
    width: 360px; /* Fixed width to contain the orbits */
    height: 360px;
    margin: 0 auto; /* Center it within the right column */
}

/* --- Mobile / Tablet Responsiveness --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr; /* Stack into 1 column */
        text-align: center; /* Center text on mobile */
        gap: 60px;
    }

    .hero-text {
        order: 2; /* Put text below the solar system on mobile? */
        margin-top: 20px;
    }
    
    .hero-visual {
        order: 1; /* Solar system on top for mobile visual impact */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        max-width: 100%;
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center; /* Center buttons on mobile */
    }
}

/* --- Sections --- */
.section { padding: 100px 0; position: relative; }

#services {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

.section-header { text-align: center; margin-bottom: 70px; position: relative; z-index: 2; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary); margin: 15px auto 0; border-radius: 2px;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- Glass Cards (Services & Team) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* CHANGED: Switched Team Grid to Flexbox to center orphan items */
.team-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    margin-top: 40px;
}

.service-card, .team-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition); position: relative;
    overflow: hidden; z-index: 2; text-align: center;
}

/* CHANGED: Specific controls for Flexbox team cards */
.team-card {
    flex: 1 1 300px; /* Grow, Shrink, Basis */
    max-width: 400px;
    width: 100%;
}

.service-card:hover, .team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.6);
}

.icon-box {
    width: 60px; height: 60px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-avatar {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.team-role { display: block; color: var(--primary); font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.team-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.team-contact a {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text-main); font-weight: 600; padding: 8px 20px; border-radius: 20px;
    background: rgba(255,255,255,0.05); transition: var(--transition);
}
.team-contact a:hover { background: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

/* --- Contact Banner --- */
.contact-banner-section { padding-top: 20px; padding-bottom: 100px; }
.contact-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 20px;
    padding: 80px 40px; text-align: center; position: relative;
    overflow: hidden; backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.contact-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 60%);
    animation: banner-rotate 20s linear infinite; pointer-events: none;
}
@keyframes banner-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.email-display {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 1.5rem; font-weight: 700; color: var(--primary);
    padding: 15px 40px; border: 1px solid var(--primary); border-radius: 50px;
    background: rgba(59, 130, 246, 0.05); transition: var(--transition);
    position: relative; z-index: 2;
}

footer { padding: 40px 0; background: #050a14; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: center; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .email-display { font-size: 1rem; width: 100%; justify-content: center; }
}

/* =================================================================
   SOLAR SYSTEM ANIMATION STYLES
   ================================================================= */
.orbital-container {
    position: relative;
    width: 100%;
    height: 360px; /* Adjusted height for spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;    
    margin-bottom: 40px; 
    z-index: 3; /* Ensures it sits above blobs */
}

/* Central Core */
.core-center {
    width: 80px; height: 80px;
    border-radius: 50%;
    position: absolute; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
    background: #000;
}

.core-logo {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    border: 2px solid var(--primary);
}

.core-glow {
    position: absolute; width: 120px; height: 120px;
    border-radius: 50%; border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2) inset;
    animation: pulse 4s infinite ease-in-out;
    z-index: 1;
}

/* Orbits */
.orbit {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex; justify-content: center; align-items: center;
    z-index: 5;
}

.orbit-1 { width: 180px; height: 180px; animation: rotate 15s linear infinite; }
.orbit-2 { width: 260px; height: 260px; animation: rotate 25s linear infinite reverse; }
.orbit-3 { width: 340px; height: 340px; animation: rotate 35s linear infinite; }

/* Satellites */
.satellite-container {
    position: absolute; top: 50%; left: 100%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 8px;
}

.label-tag {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary);
    color: #60a5fa; padding: 4px 10px;
    border-radius: 12px; font-size: 0.75rem; font-weight: 700;
    font-family: 'Inter', sans-serif; white-space: nowrap;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    animation: counter-rotate inherit; 
}

.orbit-1 .label-tag { animation: counter-rotate 15s linear infinite reverse; }
.orbit-2 .label-tag { animation: counter-rotate 25s linear infinite; }
.orbit-3 .label-tag { animation: counter-rotate 35s linear infinite reverse; }

.planet {
    width: 8px; height: 8px;
    background-color: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

/* Solar System Specific Keyframes */
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes counter-rotate { 100% { transform: rotate(-360deg); } }
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}