/* General body and font styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f3f4f6; /* Light gray background */
    color: #1f2937; /* Dark gray text */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark-mode .navbar {
    background-color: rgba(31, 41, 55, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .nav-links a {
    color: #f9fafb;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #60a5fa; /* Light blue */
}

body.dark-mode .nav-toggle-btn {
    color: #f9fafb;
}

body.dark-mode .mobile-menu {
    background-color: #1f2937;
}

/* Dark mode styles for feature sections */
body.dark-mode .feature-title {
    color: #f9fafb;
}

body.dark-mode .feature-description {
    color: #d1d5db; /* Lighter gray */
}

body.dark-mode .feature-section {
    background-color: #2d3748; /* Slightly lighter than body background */
}

/* ✨ NEW: Dark mode styles for cards */
body.dark-mode .cards-title {
    color: #f9fafb;
}
body.dark-mode .card {
    background-color: #2d3748;
}
.nav-links .dropdown {
    position: relative;
}
.nav-links .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 220px;
    background: rgba(255,255,255,0.96);
    border-radius: 0.75rem;
    box-shadow: 0 6px 24px 0px rgba(37,99,235,0.14), 0 2px 4px 0px rgba(0,0,0,0.07);
    padding: 0.7rem 0;
    z-index: 3000;
    animation: dropdownIn 0.35s cubic-bezier(.57,1.38,.66,.99);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.98);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}
.dropdown-item {
    color: #2563eb;
    font-weight: 500;
    padding: 0.75em 1.2em;
    display: flex;
    align-items: center;
    gap: 0.8em;
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.dropdown-item i {
    font-size: 1.1rem;
    opacity: 0.80;
}


/* ... (Existing navbar, mobile menu, and overlay styles) ... */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.logo { font-size: 1.5rem; font-weight: bold; color: #2563eb; text-decoration: none; }
.nav-links { display: none; list-style: none; padding: 0; margin: 0; }
.nav-links li { margin: 0 1rem; }
.nav-links a { text-decoration: none; color: #4b5563; font-weight: 500; position: relative; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: #2563eb; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: #2563eb; transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-buttons-desktop { display: none; align-items: center; }
.nav-buttons-mobile { display: flex; align-items: center; gap: 0.5rem; }
.contact-btn { background-color: #2563eb; color: #fff; padding: 0.5rem 1.5rem; border-radius: 9999px; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); margin-left: 1rem; display: inline-block; }
.contact-btn:hover { background-color: #1d4ed8; transform: translateY(-2px); }
.dark-mode-toggle, .nav-toggle-btn { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: #4b5563; transition: color 0.3s ease; }
.dark-mode-toggle:hover, .nav-toggle-btn:hover { color: #2563eb; }
.mobile-menu { position: fixed; top: 0; right: 0; height: 100%; width: 75%; max-width: 300px; background-color: #ffffff; box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1); transform: translateX(100%); transition: transform 0.3s ease-in-out; padding-top: 4rem; z-index: 999; list-style: none; margin: 0; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu li { padding: 1rem 2rem; border-bottom: 1px solid #e5e7eb; }
.mobile-menu li a { text-decoration: none; color: #1f2937; font-size: 1.1rem; font-weight: 500; display: block; }
.mobile-menu li a:hover { color: #2563eb; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.overlay.active { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* Feature Section Styles (Mobile First) */
.feature-section { display: flex; flex-direction: column; gap: 2rem; padding: 2rem; margin: 2rem auto; max-width: 1200px; background-color: #ffffff; border-radius: 1rem; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: background-color 0.3s ease; }
.feature-image img { width: 100%; height: auto; border-radius: 0.75rem; object-fit: cover; }
.feature-content { text-align: center; }
.feature-title { font-size: 2rem; font-weight: 700; margin: 0 0 1rem 0; }
.feature-description { font-size: 1.1rem; color: #4b5563; line-height: 1.6; margin: 0 0 2rem 0; }
.feature-btn { background-color: #2563eb; color: #fff; padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 600; text-decoration: none; display: inline-block; transition: background-color 0.3s ease, transform 0.2s ease; }
.feature-btn:hover { background-color: #1d4ed8; transform: translateY(-2px); }

/* ✨ NEW: Cards Section Styles 🃏 */
.cards-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.cards-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.cards-container {
    display: grid;
    /* This creates a responsive grid that makes columns automatically */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.card-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main content styles */
.main-content { padding: 2rem; text-align: center; }
.main-content h1 { font-size: 2.5rem; font-weight: bold; }
.main-content p { margin-top: 1rem; font-size: 1.2rem; }

/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .navbar { padding: 1rem 4rem; }
    .nav-links, .nav-buttons-desktop { display: flex; }
    .nav-buttons-mobile, .nav-toggle-btn, .mobile-menu { display: none; }

    /* Feature Section Styles for Desktop */
    .feature-section { flex-direction: row; align-items: center; padding: 4rem; }
    .feature-section.image-right { flex-direction: row-reverse; }
    .feature-image, .feature-content { flex: 1; }
    .feature-content { text-align: left; }
    .feature-title { font-size: 2.5rem; }

    /* Cards Section Styles for Desktop */
    .cards-section {
        padding: 4rem;
    }
}

/* Futuristic Footer Styles */
.futuristic-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    min-height: 300px;
    border-top: 2px solid #0ea5e9;
}

/* Circuit Line Patterns */
.footer-circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: 
        linear-gradient(90deg, #0ea5e9 1px, transparent 1px),
        linear-gradient(0deg, #0ea5e9 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.footer-circuit-lines::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: circuitFlow 3s ease-in-out infinite;
}

.footer-circuit-lines::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #0ea5e9, transparent, #0ea5e9);
    animation: circuitFlow 4s ease-in-out infinite reverse;
}

@keyframes circuitFlow {
    0%, 100% { transform: translateX(-100px); opacity: 0; }
    50% { transform: translateX(0); opacity: 1; }
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

/* Main Footer Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Logo Section */
.footer-logo-section {
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #0ea5e9;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.footer-logo::after {
    content: '.';
    color: #0ea5e9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Navigation Links */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav-link:hover {
    color: #0ea5e9;
    transform: translateY(-2px);
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav-link:hover::before {
    width: 100%;
}

/* Social Section */
.footer-social-section {
    margin-bottom: 1rem;
}

.stay-connected {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    color: #0ea5e9;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social-link:hover {
    background: #0ea5e9;
    color: #0f172a;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

/* Newsletter Section */
.footer-newsletter-section {
    margin-bottom: 2rem;
}

.footer-newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(14, 165, 233, 0.05);
}

.footer-email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.footer-email-input::placeholder {
    color: #64748b;
    font-style: italic;
}

.footer-email-input:focus {
    background: rgba(14, 165, 233, 0.1);
}

.footer-subscribe-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.footer-subscribe-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-copyright p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}
/* Dark Mode Compatibility */
body.dark-mode .futuristic-footer {
    background: linear-gradient(135deg, #020617 0%, #0c1629 50%, #020617 100%);
}

body.dark-mode .footer-circuit-lines {
    opacity: 0.4;
}

/* Responsive Design */
@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 2fr 1fr;
        text-align: left;
        align-items: center;
        gap: 3rem;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 3rem;
    }
    
    .footer-social-section {
        text-align: right;
    }
    
    .stay-connected {
        text-align: right;
    }
    
    .footer-social-icons {
        justify-content: flex-end;
    }
    
    .footer-newsletter-form {
        flex-direction: row;
    }
    
    .footer-decorative-circles {
        display: block;
    }
}

@media (max-width: 767px) {
    .footer-decorative-circles {
        display: none;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .footer-subscribe-btn {
        border-radius: 0 0 6px 6px;
    }
    
    .footer-email-input {
        border-radius: 6px 6px 0 0;
    }
}
