/* Core Variables */
:root {
    /* Color Palette */    

    --primary-dark: #040B3C;
    --primary-mid: #0C1445;
    --primary-light: #1B2CC1;
    --accent-primary: #14D9D9;
    --accent-secondary: #7B8CDE;
    --text-primary: #FFFFFF;
    --text-secondary: #B8E3FF;
    --text-highlight: #000000;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);

    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-mid), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}


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

body {
    font-family: "Poppins", sans-serif;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    background: rgba(4, 11, 60, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

/* Headers */
.header {
    padding: 8rem 0 4rem;
    text-align: center;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: rgba(12, 20, 69, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(20, 217, 217, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

/* Solutions Page Specific */
.solution-card {
    composes: card;
}

.integration-section {
    background: rgba(12, 20, 69, 0.7);
    padding: 4rem 0;
    margin: 4rem 0;
}

.code-block {
    background: rgba(4, 11, 60, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: monospace;
    overflow-x: auto;
}

.certifications-section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(4, 11, 60, 0.3);
    border-radius: 16px;
}

/* Research Page Specific */
.research-card {
    composes: card;
    border-left: 4px solid var(--accent-primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 1000px;
    margin-bottom: 2rem;
}



.hero-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* This ensures buttons wrap properly on mobile */
}

/* Common Components */
.section {
    padding: 4rem 0;
}

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

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents button text from breaking */
    text-align: center;
    min-width: 200px; /* Ensures consistent button width */
    margin: 0.5rem; /* Adds space when buttons wrap */
}

.button-primary {
    background: var(--accent-primary);
    color: var(--text-highlight);
    border: 1px solid var(--accent-primary);
}
.button-primary:hover {
    background: transparent;
    color: var(--accent-primary);
}
.button-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    
}
.button-secondary:hover {
    background: var(--accent-primary);
    color: var(--primary-dark);
}



/* Footer */
.footer {
    background: rgba(4, 11, 60, 0.95);
    padding: 4rem 0;
    margin-top: 4rem;
}

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

.social-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .button {
        min-width: 160px; /* Slightly smaller on mobile */
    }
}

/* Add to the existing styles.css */
.platform-section {
    margin-bottom: 6rem;
}

.major-section-header {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 8rem 0 3rem;
    font-weight: 600;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.platform-card {
    background: var(--primary-mid);
    padding: 2rem;
    border-radius: 8px;
}

.platform-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.platform-card ul {
    list-style: none;
}

.platform-card li {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.platform-card li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.trail_copyright{
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Capabilities Section */
.capabilities {
padding: 6rem 0;
}

.section-title {
font-size: 2rem;
margin-bottom: 3rem;
}

.capabilities-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 3rem;
}

.capability-card h3 {
color: var(--text-light);
font-size: 1.5rem;
margin-bottom: 1rem;
}

.capability-card p {
color: var(--text-secondary);
margin-bottom: 1rem;
}

.metrics {
margin-top: 1rem;
}

.metric {
color: var(--accent);
font-size: 1.5rem;
font-weight: bold;
}

section.cta-section {
    text-align: center;
    margin: 2rem 0 4rem;
}

.nav-logo-image{
    width: auto;
    height:25px;
}

.nav-active{
    color: var(--text-primary);
}

.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 80px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starTwinkle 4s ease-in-out infinite;
    opacity: 0.3;
    z-index: -1;
}
.logo {
    text-align: center;
    padding: 2rem 0;
    animation: float 6s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    background-size: 200% 200%;
    animation: gradient-animation 3s ease-in-out infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add these styles for the mobile menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    /* Hamburger menu animation */
    .mobile-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}