/* ========================================
   AGNI AEROSPACE - GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --accent: #00ffff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

html {
    background: var(--primary-bg);
}

/* ========================================
   HEADER
   ======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

.cta-btn {
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('../images/home.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(1px 1px at 80% 10%, white, transparent),
                radial-gradient(2px 2px at 90% 60%, white, transparent),
                radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: starMove 100s linear infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes starMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1200px;
    padding: 0 5%;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* ========================================
   MISSION SECTION
   ======================================== */
   
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   RESEARCH SECTION
   ======================================== */
   
#research {
    position: relative;
    padding: 6rem 5%;
    background-image: url('../images/IMG_3617.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
}

/* Overlay to make text readable */
#research::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Keep all section content above overlay */
#research > * {
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.tech-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--accent);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   COLLABORATION SECTION
   ======================================== */
#collaborate {
    background: linear-gradient(180deg, #0d0520 0%, #000000 100%);
    position: relative;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.collab-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.collab-card:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.05);
}

.collab-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.collab-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.collab-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   CLEAN ORBIT SECTION
   ======================================== */

.clean-orbit {
    position: relative;
    padding: 6rem 5%;
    background: radial-gradient(circle at top, rgba(0,255,255,0.08), transparent 60%);
}

.clean-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.clean-orbit > * {
    position: relative;
    z-index: 2;
}

/* Highlight intro box */
.orbit-highlight {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 2rem 3rem;
    text-align: center;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.orbit-highlight p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.orbit-highlight strong {
    color: var(--accent);
}

/* Pillars grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Pillar cards */
.pillar-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3rem 2.5rem 2.5rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.25);
}

/* Floating pillar badge */
.pillar-badge {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at top, #00ffff, #007777);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Pillar headings */
.pillar-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Description */
.pillar-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Pillar list items */
.pillar-card ul {
    list-style: none;
    padding-left: 0;
}

.pillar-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pillar-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    max-width: 600px;
    margin: 4rem auto 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Placeholder color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

/* Select options */
.form-group select option {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--secondary-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-secondary);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .tech-grid,
    .mission-grid,
    .collab-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 5%;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}
header {
    z-index: 9999 !important;
}

.hero::before,
.stars {
    pointer-events: none;
}