/* Extra Large Devices (large desktops, 1200px and up) */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .feature-block {
        gap: 2.5rem;
    }
    
    .hero-visual {
        height: 450px;
    }
    
    .globe-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-block {
        gap: 2rem;
    }
    
    .hero-visual {
        height: 420px;
    }
    
    .globe-container {
        width: 260px;
        height: 260px;
    }
    
    .floating-avatars .avatar {
        width: 50px;
        height: 50px;
    }
    
    .mockup-phone {
        width: 280px;
        height: 560px;
    }
    
    .mockup-screen {
        width: 260px;
        height: 540px;
    }
}

/* Large Devices (desktops, 992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 1.25rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .feature-block {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .feature-block.reverse {
        flex-direction: column;
    }

    .feature-content {
        text-align: center;
        max-width: 600px;
    }

    .feature-image {
        width: 100%;
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .avatar-showcase {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .founders-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .hero-visual {
        height: 380px;
        margin-top: 1.5rem;
    }

    .globe-container {
        width: 240px;
        height: 240px;
    }

    .floating-avatars .avatar {
        width: 42px;
        height: 42px;
    }

    /* Adjust avatar positions for medium-large screens */
    .floating-avatars .avatar:nth-child(1) { top: 12%; left: 18%; }
    .floating-avatars .avatar:nth-child(2) { top: 62%; left: 22%; }
    .floating-avatars .avatar:nth-child(3) { top: 18%; left: 72%; }
    .floating-avatars .avatar:nth-child(4) { top: 58%; left: 78%; }
    .floating-avatars .avatar:nth-child(5) { top: 38%; left: 48%; }

    /* Hide the main "Early Access" button in navbar, rely on menu link */
    .navbar .container > .btn-primary {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
}

/* Medium Devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Pre-registration banner improvements */
    .pre-registration-banner {
        padding: 0.75rem 0;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Navigation improvements for tablets */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 350px;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s ease;
        z-index: 1001;
        border-left: 1px solid rgba(129, 140, 248, 0.2);
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1002;
        padding: 0.5rem;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero section for tablets */
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }

    .hero-visual {
        height: 320px;
        margin-top: 2rem;
    }

    .globe-container {
        width: 190px;
        height: 190px;
    }

    .floating-avatars .avatar {
        width: 38px;
        height: 38px;
    }
    
    /* Adjusted avatar positions for tablets */
    .floating-avatars .avatar:nth-child(1) { top: 8%; left: 12%; }
    .floating-avatars .avatar:nth-child(2) { top: 68%; left: 20%; }
    .floating-avatars .avatar:nth-child(3) { top: 15%; left: 75%; }
    .floating-avatars .avatar:nth-child(4) { top: 60%; left: 80%; }
    .floating-avatars .avatar:nth-child(5) { top: 35%; left: 45%; }

    /* About section */
    .about-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.75rem;
        text-align: center;
    }

    /* Features section */
    .security-animation {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1.05rem;
    }
    
    .feature-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .feature-list {
        margin-top: 1.25rem;
    }
    
    .mockup-phone {
        width: 240px;
        height: 480px;
    }
    
    .mockup-screen {
        width: 220px;
        height: 460px;
    }
    
    .video-call-demo {
        width: 100%;
        max-width: 380px;
        height: 280px;
    }
    
    /* Founders section */
    .founders-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .founder-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .founder-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .founder-name {
        font-size: 1.2rem;
    }
    
    .founder-role {
        font-size: 0.95rem;
    }
    
    /* Donations section */
    .donations-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .donation-tier {
        padding: 1.5rem;
    }
    
    .tier-price {
        font-size: 1.8rem;
    }
    
    /* Statistics section */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Waitlist section */
    .waitlist-benefits {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .benefit-item {
        text-align: center;
        padding: 1.25rem;
    }

    .benefit-icon {
        margin: 0 auto 1rem;
        width: 50px;
        height: 50px;
    }
    
    .benefit-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Avatar grid */
    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .avatar-grid .avatar {
        width: 55px;
        height: 55px;
    }
    
    .avatar-showcase {
        width: 100%;
        padding: 1rem;
    }
    
    /* Roadmap CTA */
    .roadmap-cta {
        text-align: center;
        padding: 2rem 1.5rem;
        background-color: rgba(31, 41, 55, 0.8);
        border-radius: var(--border-radius-lg);
        margin-top: 2rem;
        border: 1px solid rgba(129, 140, 248, 0.2);
    }
    
    .roadmap-cta h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .footer-section ul {
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 0.75rem;
    }
}
.roadmap-cta {
        /*position: relative;  /* Ensure positioning context for z-index */
        /*z-index: 1;         /* Ensure it stacks correctly with the timeline container */
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
        background-color: rgba(31, 41, 55, 0.7);
        border-radius: var(--border-radius-lg);
        /*margin-top: 40px;  Was -150px, changed to positive value */
        border: 1px solid rgba(129, 140, 248, 0.15);
}
/* Small Devices (landscape phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Pre-registration banner for mobile */
    .pre-registration-banner {
        padding: 0.5rem 0;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .banner-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Navigation for mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .nav-links {
        width: 85%;
        max-width: 300px;
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Hero section for mobile */
    .hero {
        padding: 4rem 0 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-visual {
        height: 220px;
        margin-top: 1.5rem;
    }

    .globe-container {
        width: 140px;
        height: 140px;
    }

    .floating-avatars .avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Adjusted avatar positions for mobile */
    .floating-avatars .avatar:nth-child(1) { top: 12%; left: 18%; }
    .floating-avatars .avatar:nth-child(2) { top: 72%; left: 25%; }
    .floating-avatars .avatar:nth-child(3) { top: 20%; left: 70%; }
    .floating-avatars .avatar:nth-child(4) { top: 65%; left: 75%; }
    .floating-avatars .avatar:nth-child(5) { top: 40%; left: 50%; }
    
    /* About section for mobile */
    .about-cards {
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem 1rem;
    }
    
    /* Features section for mobile */
    .feature-block {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .feature-content {
        order: 2;
    }
    
    .feature-image {
        order: 1;
    }

    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .feature-list {
        margin-top: 1rem;
    }
    
    .feature-list li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .mockup-phone {
        width: 180px;
        height: 360px;
        margin: 0 auto;
    }
    
    .mockup-screen {
        width: 160px;
        height: 340px;
    }
    
    .video-call-demo {
        width: 100%;
        max-width: 280px;
        height: 220px;
        margin: 0 auto;
    }
    
    /* Founders section for mobile */
    .founders-container {
        gap: 1rem;
        max-width: 300px;
    }
    
    .founder-card {
        padding: 1.25rem 1rem;
    }
    
    .founder-avatar {
        width: 70px;
        height: 70px;
    }
    
    .founder-name {
        font-size: 1.1rem;
    }
    
    .founder-role {
        font-size: 0.85rem;
    }
    
    /* Donations section for mobile */
    .donations-grid {
        gap: 1rem;
    }
    
    .donation-tier {
        padding: 1.25rem 1rem;
    }
    
    .tier-price {
        font-size: 1.6rem;
    }
    
    .tier-features {
        font-size: 0.85rem;
    }
    
    /* Statistics for mobile */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Waitlist section for mobile */
    .waitlist-benefits {
        gap: 1rem;
    }

    .benefit-item {
        padding: 1rem;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.75rem;
    }
    
    .benefit-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-description {
        font-size: 0.85rem;
    }
    
    /* Avatar grid for mobile */
    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .avatar-grid .avatar {
        width: 45px;
        height: 45px;
    }
    
    /* Roadmap CTA for mobile */
    .roadmap-cta {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .roadmap-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .roadmap-cta p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Footer for mobile */
    .footer-top {
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .footer-section ul {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        gap: 0.75rem;
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
         width: 35px;
         height: 35px;
     }
 }

/* Extra Small Devices (small phones, 480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero adjustments for very small screens */
    .hero {
        padding: 3rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-visual {
        height: 180px;
        margin-top: 1rem;
    }
    
    .globe-container {
        width: 120px;
        height: 120px;
    }
    
    .floating-avatars .avatar {
        width: 24px;
        height: 24px;
    }
    
    /* Sections spacing */
    .section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Features adjustments */
    .feature-content h3 {
        font-size: 1.1rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .mockup-phone {
        width: 160px;
        height: 320px;
    }
    
    .mockup-screen {
        width: 140px;
        height: 300px;
    }
    
    /* Cards and grids */
    .card {
        padding: 1.25rem 0.75rem;
    }
    
    .founder-card {
        padding: 1rem 0.75rem;
    }
    
    .founder-avatar {
        width: 60px;
        height: 60px;
    }
    
    .donation-tier {
        padding: 1rem 0.75rem;
    }
    
    .tier-price {
        font-size: 1.4rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
    
    .benefit-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Footer adjustments */
    .footer-top {
        gap: 1.25rem;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Ultra Small Devices (very small phones, 360px and down) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-visual {
        height: 160px;
    }
    
    .globe-container {
        width: 100px;
        height: 100px;
    }
    
    .floating-avatars .avatar {
        width: 20px;
        height: 20px;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .feature-content h3 {
        font-size: 1rem;
    }
    
    .mockup-phone {
        width: 140px;
        height: 280px;
    }
    
    .mockup-screen {
        width: 120px;
        height: 260px;
    }
    
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .card,
    .founder-card,
    .donation-tier,
    .stat-item,
    .benefit-item {
        padding: 1rem 0.5rem;
    }
    
    .founder-avatar {
        width: 50px;
        height: 50px;
    }
    
    .tier-price {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .benefit-icon {
        width: 30px;
        height: 30px;
    }
    
    .avatar-grid .avatar {
        width: 40px;
        height: 40px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
    }
}