/* Container holding the image and the text */
.container {
    position: relative;
    text-align: center;
    color: white;
  }
  
/* Bottom left text */
.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 16px;
}

/* Top left text */
.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

/* Top right text */
.top-right {
  position: absolute;
  top: 8px;
  right: 16px;
}

/* Bottom right text */
.bottom-right {
  position: absolute;
  bottom: 8px;
  right: 16px;
}

/* Centered text */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #0a0f2c;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Material Design Elevation Classes */
.mdc-elevation--z1 {
    box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
}

.mdc-elevation--z2 {
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
}

.mdc-elevation--z4 {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

.mdc-elevation--z8 {
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
}

/* Material Design Typography */
.mdc-typography--headline1 {
    font-size: 6rem;
    font-weight: 300;
    line-height: 6rem;
    letter-spacing: -0.015625em;
}

.mdc-typography--headline2 {
    font-size: 3.75rem;
    font-weight: 300;
    line-height: 3.75rem;
    letter-spacing: -0.0083333333em;
}

.mdc-typography--headline3 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 3.125rem;
    letter-spacing: normal;
}

.mdc-typography--headline4 {
    font-size: 2.125rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0.0073529412em;
}

.mdc-typography--headline5 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2rem;
    letter-spacing: normal;
}

.mdc-typography--headline6 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: 0.0125em;
}

.mdc-typography--body1 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0.03125em;
}

.mdc-typography--body2 {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: 0.0178571429em;
}
header {
    background-color: rgba(29, 34, 59, 0.8);
    padding: 20px 20px 2px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    text-align: left;
}
header h1 {
    margin: 0;
    color: #00c6ff;
}
nav {
    background-color: transparent;
    padding: 10px;
    text-align: right;
    display: flex;
    gap: 20px;
    align-items: center;
}
nav a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
}
main {
    padding: 1px;
    text-align: center;
    margin-top: 110px;
    /* margin-bottom: 60px; */
    min-height: calc(100vh - 190px);
}
footer {
    background-color: #1d223b;
    color: #aaa;
    text-align: center;
    padding: 15px;
    width: 100%;
    /* margin-top: 40px; */
}

footer a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3748 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 1;
}

.slide-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.slide-text h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00c6ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-text p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 198, 255, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 198, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: linear-gradient(90deg, #1e90ff 0%, #00c6ff 100%);
    transform: scale(1.2);
}

/* Newsletter Subscription Section */
.newsletter-section {
    background: rgba(29, 34, 59, 0.85);
    color: #fff;
    padding: 40px 20px 30px 20px;
    text-align: center;
    width: 100%;
    /* border-radius: 0 0 16px 16px; */
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    position: relative;
    top: 0;
    /* margin-bottom: 40px; */
    overflow: hidden;
}
.newsletter-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}
.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 34, 59, 0.7);
    z-index: 2;
}
.newsletter-section > *:not(.newsletter-bg-video):not(.newsletter-overlay) {
    position: relative;
    z-index: 3;
}
.newsletter-section h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #00c6ff;
}
.newsletter-section p {
    font-size: 1.1em;
    margin-bottom: 18px;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.newsletter-form input[type="email"] {
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    font-size: 1em;
    width: 220px;
    max-width: 100%;
    outline: none;
}
.newsletter-form button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(90deg, #1e90ff 0%, #00bfff 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
}
.newsletter-message {
    color: #61dafb;
    font-weight: bold;
    margin-top: 10px;
}

.welcome-header {
    padding-top: 40px;
}

.welcome-download-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0px 20px 20px 20px;
    width: 100%;
    gap: 0 24px;
}
.welcome-download-row > div {
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-download-row > div:nth-child(2) {
    justify-content: flex-start;
}
.blue-font {
    color: #B8E6FE;
    text-decoration: none;
    transition: color 0.3s ease;
}
.download-now-col {
    justify-content: flex-end;
}
.download-now-btn {
    display: inline-block;
    background: linear-gradient(90deg, #1e90ff 0%, #00c6ff 100%);
    font-weight: bold;
    font-size: 1.1em;
    padding: 14px 32px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.15);
    color: #fff;
    text-decoration: none;
    /* transition: background 0.2s, box-shadow 0.2s, transform 0.2s; */
    border: none;
    outline: none;
}
.download-now-btn:hover, .download-now-btn:focus {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    box-shadow: 0 6px 24px rgba(0, 191, 255, 0.25);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}
@media (max-width: 900px) {
    .welcome-download-row {
        grid-template-columns: 1fr;
        padding: 16px 8px;
        gap: 16px 0;
    }
    .welcome-download-row > div {
        justify-content: center !important;
    }
    .download-now-col {
        justify-content: center !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-left h1 {
        font-size: 1.5em;
    }
    
    .header-left p {
        font-size: 0.9em;
    }
    
    nav {
        gap: 10px;
    }
    
    nav a {
        margin: 0 8px;
        font-size: 0.9em;
    }
    
    main {
        margin-top: 120px;
        margin-bottom: 80px;
    }
    
    .carousel {
        height: 300px;
    }
    
    .slide-text h3 {
        font-size: 2em;
    }
    
    .slide-text p {
        font-size: 1em;
    }
    
    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }

    .newsletter-section {
        padding: 25px 8px 20px 8px;
        width: 100%;
        border-radius: 0 0 10px 10px;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-form input[type="email"] {
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
    footer {
        margin-top: 20px;
    }
}

.astroquest-feature-header {
    margin: 32px 0 0 0;
    padding: 32px 20px 0 0;
    background: #fff;
    color: #0a0f2c;
    box-shadow: 0 4px 24px rgba(30, 144, 255, 0.08);
}
.astroquest-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 32px 0 0 0;
    padding: 32px 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(30, 144, 255, 0.08);
    /* border-radius: 18px; */
}
.feature-card {
    background: rgba(10, 15, 44, 0.9);
    /* background: #0a0f2c; */
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30, 144, 255, 0.10);
    padding: 36px 18px 28px 18px;
    text-align: center;
    font-size: 1.25em;
    font-weight: 500;
    transition: transform 0.18s, box-shadow 0.18s;
    border: 1.5px solid #0a0f2c;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(30, 144, 255, 0.18);
    border-color: #0a0f2c;
}
.feature-icon {
    display: block;
    margin: 0 auto 16px auto;
    width: 64px;
    height: 64px;
}
.feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.feature-card p {
    margin-top: 12px;
    font-size: 1em;
    color: #cce6ff;
    line-height: 1.4;
}
.feature-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}
.feature-header-row .feature-icon {
    margin: 0;
    width: 48px;
    height: 48px;
}
.feature-header-row h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #00c6ff;
}
@media (max-width: 600px) {
    .feature-header-row {
        flex-direction: column;
        gap: 6px;
    }
    .feature-header-row .feature-icon {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 900px) {
    .astroquest-features-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Contact Page Styles */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.contact-content h1 {
    color: #00c6ff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-content > p {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-form {
    background: rgba(29, 34, 59, 0.9);
    padding: 40px;
    border-radius: 16px;
    border: 1.5px solid #00c6ff;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #00c6ff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1e90ff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00c6ff;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: linear-gradient(90deg, #1e90ff 0%, #00c6ff 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 191, 255, 0.25);
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4CAF50;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f44336;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-content {
        padding: 20px 15px;
    }
    
    .contact-content h1 {
        font-size: 2em;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* About Page Styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.about-content h1 {
    color: #00c6ff;
    font-size: 3em;
    text-align: center;
    margin-bottom: 30px;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro p {
    color: #fff;
    font-size: 1.3em;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-section {
    margin-bottom: 80px;
}

.expertise-section h2 {
    color: #00c6ff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.expertise-card {
    background: rgba(29, 34, 59, 0.9);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1.5px solid #00c6ff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.2);
}

.expertise-card h3 {
    color: #00c6ff;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.expertise-card p {
    color: #fff;
    line-height: 1.6;
}

.why-we-are-good {
    margin-bottom: 80px;
    text-align: center;
}

.why-we-are-good h2 {
    color: #00c6ff;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.why-we-are-good p {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.download-section {
    margin-top: 40px;
}

.stats-section {
    margin-bottom: 60px;
}

.stats-section h2 {
    color: #00c6ff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(29, 34, 59, 0.9);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1.5px solid #00c6ff;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    color: #00c6ff;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
}

.mission-section {
    text-align: center;
    padding: 40px;
    background: rgba(29, 34, 59, 0.7);
    border-radius: 16px;
    border: 1.5px solid #00c6ff;
}

.mission-section p {
    color: #fff;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .about-content {
        padding: 20px 15px;
    }
    
    .about-content h1 {
        font-size: 2.5em;
    }
    
    .expertise-section h2,
    .why-we-are-good h2,
    .stats-section h2 {
        font-size: 2em;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .expertise-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .mission-section {
        padding: 30px 20px;
    }
}

.image-blend-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}
.image-blend-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, #000 100%);
    opacity: 0.2;
  }

  .blended-image {
    width: 100%;
    height: auto;
    display: block;
  
    /* Stronger radial fade on all sides */
    -webkit-mask-image: radial-gradient(
      ellipse at center,
      black 40%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse at center,
      black 40%,
      transparent 100%
    );
  
    /* Optional soft glow for better edge masking */
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  }

/* Sun 3D Model Section */
.sun-model-section {
    padding: 60px 20px;
    margin: 40px 0;
    background: rgba(29, 34, 59, 0.3);
    /* border-radius: 20px;
    border: 1.5px solid #00c6ff; */
}

.sun-text-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 0;
}

.sun-text-content h2 {
    color: #00c6ff;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 20px 5px 0px 40px;
}

.sun-text-content p {
    color: #fff;
    margin-bottom: 0;
    margin-top: 0;
    justify-content: center;
    align-items: center;
    text-align: justify;
    padding: 20px 5px 0px 40px;
}

.sun-model-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.1);
}

.sun-model-container model-viewer {
    width: 400px !important;
    max-width: 500px !important;
    height: 400px !important;
    margin: 0 auto !important;
    display: block !important;
    background-color: #0a0f2c !important;
}

/* Fallback for when model-viewer fails to load */
.sun-model-container::before {
    content: "Loading 3D Model...";
    position: absolute;
    color: #00c6ff;
    font-size: 1.2em;
    z-index: 1;
    display: none;
}

.sun-model-container:empty::before {
    display: block;
}

/* Progress bar for model-viewer */
.progress-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #00c6ff;
    width: 0%;
    transition: width 0.3s ease;
}

.model-fallback {
    display: none;
    text-align: center;
    padding: 20px;
    color: #00c6ff;
    font-size: 1.1em;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid #00c6ff;
    border-radius: 8px;
    margin-top: 10px;
}

/* Material UI Grid Customization */
.sun-model-section .mdc-layout-grid {
    padding: 0;
}

.sun-model-section .mdc-layout-grid__inner {
    align-items: center;
}

.sun-model-section .mdc-layout-grid__cell {
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .sun-model-section {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .sun-text-content {
        text-align: center;
        padding: 20px 0;
    }
    
    .sun-text-content h2 {
        font-size: 2em;
    }
    
    .sun-text-content p {
        font-size: 1.1em;
    }
    
    .sun-model-container model-viewer {
        max-width: 100% !important;
        height: 300px !important;
    }
}