:root {
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: #000;
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- GALAXY CANVAS --- */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #000000 100%);
}

/* --- NAVIGATION --- */
nav {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-white); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-white); }

.cta-btn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

/* GLOWING TEXT ANIMATION */
.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        to right,
        #4f46e5 20%,
        #22d3ee 50%,
        #ffffff 60%,
        #22d3ee 70%,
        #4f46e5 90%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine-flow 3s linear infinite;
}

@keyframes text-shine-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}

.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-gray); max-width: 600px; margin-bottom: 2.5rem; }

/* --- SECTIONS GENERAL --- */
.vision-section, .services, .contact, footer { position: relative; z-index: 2; }

/* --- NEW: VISION SECTION (Replaces Stats) --- */
.vision-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
}

.vision-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle line accent on top of vision box */
.vision-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.vision-label {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.vision-glass h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.vision-glass p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- SERVICES --- */
.services { padding: 6rem 5%; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header span { color: var(--primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.5rem; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* Force height for alignment */
}
.card:hover { transform: translateY(-10px); background: rgba(30, 41, 59, 0.7); border-color: var(--primary); }
.card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: #fff; }
.card p { color: var(--text-gray); line-height: 1.6; font-size: 0.95rem; }

/* --- CONTACT --- */
.contact { padding: 6rem 5%; text-align: center; }
.contact-glass { max-width: 600px; margin: 0 auto; background: var(--glass); padding: 3rem 1rem; border-radius: 20px; border: 1px solid var(--glass-border); }
.contact h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact p { margin-bottom: 2rem; color: var(--text-gray); }

footer { padding: 2rem; text-align: center; border-top: 1px solid var(--glass-border); background: #000; font-size: 0.9rem; color: var(--text-gray); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) { .grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(20px);
        flex-direction: column; padding: 2rem 0; border-bottom: 1px solid var(--glass-border);
        display: none;
    }
    .nav-links.active { display: flex; }
    .mobile-hidden { display: none; }
    .grid-container { grid-template-columns: 1fr; }
    .vision-glass { padding: 2rem 1.5rem; }
}

/* --- SUB-PAGE HERO SIZING --- */
.sub-hero {
    height: 50vh; /* Shorter hero for sub-pages */
    min-height: 400px;
}

/* --- PORTFOLIO / PROJECTS STYLES --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; 
}

/* Simulated Image Overlay */
.project-thumb i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.project-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
}

/* --- TEAM PAGE STYLES --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-card {
    text-align: center;
    position: relative;
}

.member-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--primary), #000);
    padding: 3px; /* Border width */
}

.member-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000; /* Inner border */
}

.member-role {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-gray);
    transition: 0.3s;
}

.social-links a:hover { color: var(--text-white); }

/* --- CONTACT PAGE FORM --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group textarea {
    height: 150px;
    resize: none;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.hidden { display: none; }


/* --- NEW PROFESSIONAL CONTACT UI --- */

/* 1. Layout & Container */
.contact-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: -50px; /* Pull up to overlap hero slightly */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Info takes less space, Form takes more */
    gap: 0; /* Seamless glass look */
    max-width: 1200px;
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden; /* Clips children */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* 2. Left Panel: Info */
.contact-info-panel {
    background: rgba(255, 255, 255, 0.02);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Decorative background glow for left panel */
.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
}

.panel-header .tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.panel-header h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.1;
}

.panel-header p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px; height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.info-item .val {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
}

.info-item .val:hover { color: var(--primary); }

.social-connect { margin-top: auto; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }


/* 3. Right Panel: Form */
.contact-form-panel {
    padding: 3.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.tech-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

/* Icons inside inputs */
.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: 0.3s;
    pointer-events: none; /* Let clicks pass through */
}

/* The actual Input fields */
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1rem 1rem 3rem; /* Left padding for icon */
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

/* Custom styles for select dropdown to look like input */
.input-wrapper select {
    appearance: none;
    cursor: pointer;
    color: #fff;
}

/* Hover & Focus States */
.input-wrapper input:hover,
.input-wrapper select:hover,
.input-wrapper textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

/* Highlight icon when input is focused */
.input-wrapper input:focus + i, 
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: var(--primary);
}

/* Submit Button */
.submit-btn {
    margin-top: 1rem;
    padding: 1.2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    letter-spacing: 1px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        padding: 2.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-form-panel {
        padding: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Stack inputs vertically */
        gap: 1rem;
    }
}

/* =========================================
   PROJECT CARD & BUTTON FIXES
   ========================================= */

/* 1. BUTTON STYLING (Glass/Ghost Style) */
.view-btn {
    display: inline-block;
    padding: 0.6rem 1.8rem; /* Slightly smaller than main CTA */
    
    /* Transparent Background with Border (The "Other" Style) */
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--primary); /* Blue Border */
    
    border-radius: 50px;
    color: var(--primary); /* Blue Text */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.view-btn:hover {
    /* Fills with Gradient on Hover */
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* 2. PROJECT THUMBNAIL FIX */
.project-thumb {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #000; 
}