:root {
    --primary-light: #f8f9fa;
    --secondary-light: #e8eef4;
    --accent-orange: #ff6b35;
    --accent-blue: #4a9eff;
    --accent-cyan: #00d4ff;
    --text-primary: #1a1d29;
    --text-secondary: #4a5568;
    --text-muted: #6b7c93;
    --dark-bg: #1a1d29;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-light);
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999; 
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link .logo,
.logo-link .logo-text {
    margin: 0;
}

.logo {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003; 
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--text-primary);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    padding: 120px 0rem 0px; 
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 0.9) 0%, rgba(248, 249, 250, 0.6) 50%, rgba(248, 249, 250, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    max-width: 15ch; 
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
}

.hero-visualization {
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.wave-diagram {
    width: 100%;
    height: auto;
    display: block;
}

.mission {
    padding: 60px 2rem;
    background-color: var(--dark-bg);
    background-image: url('/images/space-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 41, 0.85);
    pointer-events: none;
}

.mission.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0rem;
    color: #ffffff;
}

.mission-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #e8eef4;
    line-height: 1.8;
    max-width: 900px;
}

.vision {
    padding: 60px 2rem;
    background: rgba(232, 238, 244, 0.85);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.vision.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 2rem; 
}

.plasma-box {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 100%; 
}

.tokamak-visual {
    flex: 0 0 33.333%; 
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vision-text {
    flex: 0 0 66.667%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}


.vision-text h3 {
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.5rem; 
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary); 
    margin: 0;
    text-align: left;
}

.vision-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary); 
    margin: 0;
    text-align: left;
}

.sim-caption {
    font-size: 0.9rem !important;
    font-style: italic;
    color: #999 !important;
    text-align: center;
    margin-top: 1rem !important;
    font-weight: 300;
}

.chatwood-statement {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
    background-image: url('/images/wave-bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

.chatwood-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 41, 0.85); 
    pointer-events: none;
}

.statement-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2; 
}

.chatwood-statement h2 {
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.5rem;
    font-weight: 900; 
    margin-bottom: 1.5rem;
    color: #ffffff; 
    letter-spacing: 0.5px; 
}

.chatwood-statement p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e8eef4; 
    font-weight: 400;
}

@media (max-width: 768px) {

    .hero {
        min-height: 70vh; 
        justify-content: flex-start; 
        padding-top: 140px; 
    }

    .hero-content {
        padding: 2em;
    }

    .hero-visualization {
        display: none; 
    }

    .architecture-container {
        display: block; 
    }

    .architecture-content {
        flex: none; 
        width: 100%; 
        max-width: 100%; 
    }
    .plasma-box {
        flex-direction: column;
        gap: 2rem;
    }
    
    .chatwood-statement h2 {
        font-size: 1.75rem;
    }
    
    .chatwood-statement p {
        font-size: 1rem;
    }
}

.tokamak-visual {
    position: relative;
}

.tokamak-img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.vision-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-primary); 
}

.vision-text p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

.fusion-challenge {
    padding: 60px 2rem;
    background-color: var(--dark-bg);
    background-image: url('/images/space-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fusion-challenge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 41, 0.85); 
    pointer-events: none;
}

.fusion-challenge.visible {
    opacity: 1;
    transform: translateY(0);
}

.challenge-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; 
}

.challenge-conclusion {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 500; 
    margin-top: 2rem;
}

.highlight-statement {
    color: var(--accent-orange); 
    font-weight: 700; 
    font-style: italic;
}

.fusion-challenge h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #ffffff; 
}

.fusion-challenge p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #e8eef4; 
    line-height: 1.8;
    max-width: 1200px;
}

.footnote {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    font-style: italic !important;
    margin-top: 2rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0 !important;
}

.control-architecture {
    padding: 120px 2rem;
    background: rgba(232, 238, 244, 0.85); 
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.control-architecture.visible {
    opacity: 1;
    transform: translateY(0);
}

.architecture-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex; 
    flex-direction: row; 
    gap: 3rem;
    align-items: center; 
}

.architecture-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem; 
    text-align: left; 
}

.architecture-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.architecture-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.architecture-visual {
    flex: 0 0 50%;
    position: relative;
}

.architecture-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

@media (max-width: 640px) {
    .fusion-challenge,
    .control-architecture {
        padding: 80px 1.5rem;
    }

    .architecture-container {
        flex-direction: column; 
        gap: 2rem; 
    }

    
    .architecture-content {
        flex: none; 
        width: 100%; 
    }

    .architecture-visual {
        flex: none;
        width: 100%; 
        padding-top: 2rem; 
    }
}

.capabilities {
    padding: 120px 2rem;
    background: rgba(248, 249, 250, 0.9);
}

.capabilities-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.capability-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    text-decoration: none; 
    display: block; 
    cursor: pointer;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.capability-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-icon {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.capability-icon img {
    width: 80px;
    height: 80px;
}

.capability-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.capability-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted); 
    margin: 0;
    position: relative;
    z-index: 1;
}

.philosophy {
    padding: 60px 2rem;
    background-color: var(--dark-bg);
    background-image: url('/images/space2-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 29, 41, 0.85);
    pointer-events: none;
}

.philosophy.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.philosophy-statement {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
}

.highlight {
    color: var(--accent-orange);
    font-weight: 900;
    font-style: italic;
}

footer {
    background: rgba(232, 238, 244, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 968px) {
  .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 280px;
      height: 100vh;
      background: rgba(248, 249, 250, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      padding: 120px 2rem 2rem;
      gap: 2rem;
      transition: right 0.4s ease;
      border-left: 1px solid rgba(0, 0, 0, 0.1);
      z-index: 1002; 
  }

  .nav-menu.active {
      right: 0;
  }

 .menu-toggle {
    display: flex;
}

.menu-toggle.active {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1003;
}

    .vision-container {
       max-width: 1400px; 
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
         margin: 0 auto;
         padding: 4rem 2rem; 
    }

    .architecture-container {
        flex-direction: column; 
        gap: 2rem; 
    }

    .architecture-content {
        flex: none; 
        width: 100%; 
    }

    .architecture-visual {
        flex: none;
        width: 100%; 
        padding-top: 2rem; 
    }

    .tokamak-img {
        margin: 0 auto;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capability-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .capability-card:nth-child(3) {
        animation-delay: 0.4s;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        .hero {
    padding: 100px 1.5rem 0px; 
}
    }

    .mission,    
    .capabilities,
    .philosophy {
        padding:80px 1.5rem;
    }

    .vision{
      padding:40px 1.5rem;
    }

    .vision-container{
      padding-top: 0;
      padding-bottom: 0;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hero-visualization {
        margin-top: 2rem;
    }

    .capability-card {
        padding: 2rem 1.5rem;
    }

    .philosophy-statement {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
