/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c59;
    --accent-green: #6b8e23;
    --dark-grey: #1a1a1a;
    --medium-grey: #2d2d2d;
    --light-grey: #404040;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --danger-red: #8b0000;
    --warning-orange: #ff8c00;
    --success-green: #228b22;
    --border-color: #404040;
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --shadow-light: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-grey);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    /* max-width: 1460px; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--secondary-green));
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-green);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-green);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-green);
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 10px;
    filter: brightness(1.1) contrast(1.1);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--medium-grey) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23404" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    background: linear-gradient(45deg, var(--accent-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: 2px solid var(--accent-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

/* Network Grid Animation */
.network-grid {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--medium-grey);
    border: 3px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    animation: pulse 2s infinite;
}

.node i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.node-central {
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-green);
    border-color: var(--accent-green);
}

.node-router {
    top: 20%;
    left: 20%;
    animation-delay: 0.5s;
}

.node-alert {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.node-comm {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.connection-line {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-green), var(--secondary-green));
    height: 2px;
    width: 100px;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: connect 3s infinite;
}

.connection-line:nth-child(5) {
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 120px;
}

.connection-line:nth-child(6) {
    transform: translate(-50%, -50%) rotate(45deg);
    width: 120px;
    animation-delay: 1s;
}

.connection-line:nth-child(7) {
    transform: translate(-50%, -50%) rotate(90deg);
    width: 80px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 142, 35, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(107, 142, 35, 0); }
}

@keyframes connect {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-green);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.hero-scroll-link {
    color: var(--accent-green);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}
.hero-scroll-link i {
    color: var(--accent-green);
    font-size: 2rem;
}
.hero-scroll-link:hover i,
.hero-scroll-link:focus i {
    color: #a6d608;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: var(--medium-grey);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.objective-card {
    background: var(--dark-grey);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 142, 35, 0.1), transparent);
    transition: left 0.5s ease;
}

.objective-card:hover::before {
    left: 100%;
}

.objective-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.objective-card i {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.objective-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Components Section */
.components {
    padding: 100px 0;
    background: var(--dark-grey);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.component-card {
    background: var(--medium-grey);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.component-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.component-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-green);
}

.component-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.component-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.component-card p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.component-card ul {
    list-style: none;
}

.component-card li {
    padding: 0.5rem 0;
    color: #ccc;
    position: relative;
    padding-left: 1.5rem;
}

.component-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 0.8rem;
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: var(--medium-grey);
}

.use-cases-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(4, minmax(330px, 1fr)); 
    gap: 2rem;
}

/* story card in center */
.use-cases-grid .use-case-card:nth-last-child(2),
.use-cases-grid .use-case-card:last-child {
    grid-column: span 2; /* make them take more space */
    justify-self: center; /* center them horizontally */
}


@media (max-width: 1418px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .use-cases-grid .use-case-card:nth-last-child(2),
    .use-cases-grid .use-case-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 1400px) {
  .popup-top {
    min-height: 30% !important;
  }
  .popup-bottom{
    padding:0px 20px 20px 20px !important;
  }
  .popup-image img{
    height: 98% !important;
  }
  .hero-content{ 
    margin: 72px auto;  
   }

   .popup-content{
    max-width: 70% !important;
   }
}

@media (max-width: 1415px) {
    .use-case-card:nth-child(5), .use-case-card:nth-child(6){
        height: 450px !important;
    }
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .use-cases-grid .use-case-card:nth-last-child(2),
    .use-cases-grid .use-case-card:last-child {
        grid-column: auto;
    }
    .hardware-grid{
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

@media (max-width: 750px) {
    .use-cases-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .hardware-grid{
        grid-template-columns: repeat(1, 1fr) !important; 
    }
}


@media (max-width: 600px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .popup-content{
        max-width: 90% !important;
        height: 70% !important;
    }
    .prev-btn{
        left: -37px !important;
    }
    .next-btn{
        right: -37px !important;
    }
    .nav-btn{
        font-size: 18px !important;
    }
}
/* end */


.use-case-card {
    background: var(--dark-grey);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
}

.use-case-card:nth-child(5), .use-case-card:nth-child(6){
    height: 350px;
    cursor: pointer;
} 
.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid var(--accent-green);
}

.use-case-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.use-case-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.use-case-card p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.use-case-flow {
    background: var(--medium-grey);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--accent-green);

    position: absolute;
    bottom: 25px;
    width: 80%;
}

.use-case-flow span {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 700;
}

/* Hardware Section */
.hardware {
    padding: 100px 0;
    background: var(--dark-grey);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
}

.hardware-category {
    background: var(--medium-grey);
    /* padding: 2rem; */
    padding:34px 20px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.hardware-category h3 {
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
}

.hardware-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.hardware-item:last-child {
    border-bottom: none;
}

.part-number {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--accent-green);
}

.part-name {
    font-weight: 700;
    color: var(--text-light);
}

.part-desc {
    color: #ccc;
    font-size: 0.9rem;
    text-align: right;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--medium-grey);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #ccc;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-grey);
    border-radius: 5px;
    border-left: 4px solid var(--accent-green);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-green);
    width: 30px;
}

.contact-method h4 {
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-method p {
    color: #ccc;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--dark-grey);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--medium-grey);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-grey);
    border-top: 2px solid var(--primary-green);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    height: 30px;
    width: auto;
    margin-right: 10px;
    filter: brightness(1.1) contrast(1.1);
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-grey);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-dark);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .network-grid {
        width: 300px;
        height: 300px;
    }

    .node {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    .node i {
        font-size: 1.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .footer-logo .logo-image {
        height: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .components-grid,
    .use-cases-grid,
    .hardware-grid {
        grid-template-columns: 1fr;
    }

    .hardware-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .part-desc {
        text-align: center;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1200;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px var(--shadow-dark);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-green);
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 


/* for the Pop up */

/* .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: var(--dark-grey);;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-content img {
    max-width: 100%;
    border-radius: 8px;
}

.popup-description {
    margin-top: 12px;
    font-size: 16px;
    color: #333;
}

.popup a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}

.popup a:hover {
    text-decoration: underline;
}

.popup-qr {
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: var(--medium-grey);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
}

.prev-btn { left: -50px; color: white;}
.next-btn { right: -50px; color: white; } */


.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* background: rgba(0,0,0,0.8); */
    background: rgb(122 122 122 / 80%);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.popup-content {
    background: var(--dark-grey);
    /* padding: 20px; */
    border-radius: 10px;
    max-width: 60%;
    height: 85%;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    margin-top: 20px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: -5px; right: 10px;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: var(--medium-grey);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
}
.prev-btn { left: -50px; color: white; }
.next-btn { right: -50px; color: white; }

/* Top section: description + QR */
.popup-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    min-height: 18%;
    padding: 20px;
    margin: 0px 0 0px 0;

}
.popup-description {
    flex: 1;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    /* margin-bottom: 8px; */
}
.popup-qr {
    flex-shrink: 0;
}
.popup-qr img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border: 2px solid #444;
    /* padding: 5px; */
    border-radius: 6px;
    background: #fff;
}

/* Bottom section: image + link */
.popup-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 75%;
    object-fit: inherit;
    padding: 20px;
    justify-content: center; 
}
.popup-image {
    flex: 1;
    height: 100%;
}
.popup-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.popup-link {
    flex-shrink: 0;
    /* margin-top: 20px; */
}
.popup-link a {
    /* display: inline-block; */
    background:var(--primary-green);
    color: #ccc;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    border: 2px solid var(--accent-green);
}
.popup-link a:hover {
    /* background: #0056b3; */
    /* background:var(--accent-green);
    border: 2px solid var(--primary-green);
    color: white; */
    background: var(--accent-green);
    cursor:pointer;

}

/* Mobile */
@media (max-width: 600px) {
    .popup-top, .popup-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;        
    }
    .popup-qr img {
        margin-top: 10px;
    }
}


/* Container for the image (relative so overlay works) */
.popup-image {
    flex: 1;
    height: 100%;
    position: relative; /* make child absolute positioning work */
}

/* The QR container overlay */
.popup-qr-list {
    position: absolute;
    /* top: 187px; */
    align-self: center;
    /* right: 665px; */
    background: rgba(0,0,0,0.85);
    padding: 12px;
    border-radius: 8px;
    display: none; /* hidden by default */
    flex-direction: row;
    gap: 12px;
    max-height: 80%;
    overflow-y: auto;
    z-index: 10; /* above image */
    padding: 20px 20px 15px 20px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border: 2px solid #444;
    border-radius: 6px;
    background: #fff;
}

.qr-link {
    margin-top: 6px;
    background: var(--primary-green);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}
.qr-link:hover {
    background: var(--accent-green);
}


.qr-close-btn {
    position: absolute;
    top: -5px;
    right: 7px;
    font-size: 22px;
    cursor: pointer;
    color: white;
    background: transparent;
}




 /* for the single QR */
 .resource-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
}
.resource-btn:hover {
    background: var(--accent-green);
}

.qr-creds {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
    text-align: center;
}


 /* for the QR Link  */

 .qr-link-text {
    text-align: center;
    margin-top: 8px;
    color: #ccc;
    font-size: 14px;
    word-break: break-all;
}
.qr-link-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}
.qr-link-url {
    /* color: var(--primary-green); */
    color: #98d96c;
    text-decoration: underline;
}
.qr-link-url:hover {
    /* color: var(--accent-green); */
    color: #a7eb79
}



/* new section css */
.hero-section {
    padding: 60px 20px;
    background-color: #111;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    /* color: var(--primary-green); */
}

.hero-image {
    width: 100%;
    max-width: 900px; /* control image max size */
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--accent-green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    background: #949987;
}

.copy-btn {
    cursor: pointer;
    margin-left: 6px;
    font-size: 14px;
    color: rgb(163, 163, 163);
}

.copy-btn:hover {
    color: #ffffff;
}


.copy-toast {
    position: absolute;
    top: 4px; /* above the QR code */
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 9999999;
}

.copy-toast.fade-out {
    opacity: 0;
}
