/* ========================= */
/* General Styles */
/* ========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0D1B2A;
    color: #A9BCD0;
    line-height: 1.6;
}

:root {
    --primary-color: #002E5D;
    --secondary-color: #00CFFD;
    --accent-color: #D20000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

/* ========================= */
/* Header Section */
/* ========================= */

.main-header {
    background-color: white;
    padding: 8px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    width: 220px;
    transition: var(--transition);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul li {
    display: inline-block;
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.main-nav ul li a i {
    margin-right: 6px;
    font-size: 0.9em;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 207, 253, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    padding: 10px 0;
    list-style: none;
    min-width: 300px;
    max-height: 400px; /* Add max height to prevent overflow */
    overflow-y: auto; /* Add scrolling when content exceeds max height */
    z-index: 1000;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dropdown-menu li {
    padding: 5px 15px;
}

.dropdown-menu li a {
    color: var(--primary-color);
    font-size: 1rem;
    display: block;
    padding: 8px 15px;
}

.dropdown-menu li a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 207, 253, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* CTA Button */
.cta {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta:hover {
    background-color: white;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================= */
/* Hero Section */
/* ========================= */

.hero {
    background: url("../images/spacs-doc1.jpg") no-repeat center center/cover;
    height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 50px 20px;
    color: #ffffff;
    overflow: hidden;
}

/* Dark overlay for better text visibility */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 47, 93, 0.411);
    z-index: 1;
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: #00CFFD;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 1.1;
}

.hero-line {
    display: block;
    margin-bottom: 0.2em;
    white-space: nowrap;
}

/* Wave animation for hero heading */
.hero h1 {
    display: block;
}

.hero h1 span {
    display: inline-block;
    animation-name: wave-text;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Improved timing for more natural wave motion */
.hero h1 span:nth-child(1) { animation-delay: 0.0s; }
.hero h1 span:nth-child(2) { animation-delay: 0.05s; }
.hero h1 span:nth-child(3) { animation-delay: 0.1s; }
.hero h1 span:nth-child(4) { animation-delay: 0.15s; }
.hero h1 span:nth-child(5) { animation-delay: 0.2s; }
.hero h1 span:nth-child(6) { animation-delay: 0.25s; }
.hero h1 span:nth-child(7) { animation-delay: 0.3s; }
.hero h1 span:nth-child(8) { animation-delay: 0.35s; }
.hero h1 span:nth-child(9) { animation-delay: 0.4s; }
.hero h1 span:nth-child(10) { animation-delay: 0.45s; }
.hero h1 span:nth-child(11) { animation-delay: 0.5s; }
.hero h1 span:nth-child(12) { animation-delay: 0.55s; }
.hero h1 span:nth-child(13) { animation-delay: 0.6s; }
.hero h1 span:nth-child(14) { animation-delay: 0.65s; }
.hero h1 span:nth-child(15) { animation-delay: 0.7s; }
.hero h1 span:nth-child(16) { animation-delay: 0.75s; }
.hero h1 span:nth-child(17) { animation-delay: 0.8s; }
.hero h1 span:nth-child(18) { animation-delay: 0.85s; }
.hero h1 span:nth-child(19) { animation-delay: 0.9s; }
.hero h1 span:nth-child(20) { animation-delay: 0.95s; }
.hero h1 span:nth-child(21) { animation-delay: 1.0s; }
.hero h1 span:nth-child(22) { animation-delay: 1.05s; }
.hero h1 span:nth-child(23) { animation-delay: 1.1s; }
.hero h1 span:nth-child(24) { animation-delay: 1.15s; }
.hero h1 span:nth-child(25) { animation-delay: 1.2s; }
.hero h1 span:nth-child(26) { animation-delay: 1.25s; }
.hero h1 span:nth-child(27) { animation-delay: 1.3s; }
.hero h1 span:nth-child(28) { animation-delay: 1.35s; }
.hero h1 span:nth-child(29) { animation-delay: 1.4s; }
.hero h1 span:nth-child(30) { animation-delay: 1.45s; }
.hero h1 span:nth-child(31) { animation-delay: 1.5s; }
.hero h1 span:nth-child(32) { animation-delay: 1.55s; }
.hero h1 span:nth-child(33) { animation-delay: 1.6s; }
.hero h1 span:nth-child(34) { animation-delay: 1.65s; }
.hero h1 span:nth-child(35) { animation-delay: 1.7s; }
.hero h1 span:nth-child(36) { animation-delay: 1.75s; }
.hero h1 span:nth-child(37) { animation-delay: 1.8s; }
.hero h1 span:nth-child(38) { animation-delay: 1.85s; }
.hero h1 span:nth-child(39) { animation-delay: 1.9s; }
.hero h1 span:nth-child(40) { animation-delay: 1.95s; }

/* Improved wave animation with subtle glow */
@keyframes wave-text {
    0% {
        transform: translateY(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    20% {
        transform: translateY(-8px);
        text-shadow: 0 15px 10px rgba(0, 0, 0, 0.2), 
                     0 0 15px rgba(0, 207, 253, 0.5);
        color: #00e5ff;
    }
    40% {
        transform: translateY(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        color: #00CFFD;
    }
    100% {
        transform: translateY(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Primary CTA */
.primary-btn {
    background-color: #00CFFD;
    color: #0D1B2A;
    box-shadow: 0 4px 15px rgba(0, 207, 253, 0.5);
}

.primary-btn:hover {
    background-color: #D20000;
    box-shadow: 0 6px 20px rgba(210, 0, 0, 0.5);
    transform: translateY(-3px);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

/* Secondary CTA */
.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #00CFFD;
    box-shadow: 0 4px 15px rgba(0, 207, 253, 0.3);
}

.secondary-btn:hover {
    background-color: #D20000;
    color: #ffffff;
    border-color: #D20000;
    box-shadow: 0 6px 20px rgba(210, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* ========================= */
/* Hero Section Animations */
/* ========================= */

/* Fade In Effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* Responsive Design */
/* ========================= */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-line {
        margin-bottom: 0.1em;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .logo img {
        width: 180px;
    }
}

/* ========================= */
/* Role Selection Modal */
/* ========================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.role-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.role-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cancel-btn {
    background-color: #f1f3f5;
    color: #495057;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-btn:hover {
    background-color: #e9ecef;
}

/* ========================= */
/* Features Section */
/* ========================= */

.features {
    padding: 80px 0;
    background-color: #0D1B2A;
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* Add 3D perspective to container */
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 207, 253, 0.1), transparent 70%);
    pointer-events: none;
    animation: pulse-glow 8s infinite alternate;
}

/* Add floating particles in the background */
.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 207, 253, 0.3) 0%, transparent 10px),
        radial-gradient(circle at 80% 40%, rgba(210, 0, 0, 0.2) 0%, transparent 15px),
        radial-gradient(circle at 40% 70%, rgba(0, 207, 253, 0.3) 0%, transparent 12px),
        radial-gradient(circle at 10% 60%, rgba(210, 0, 0, 0.2) 0%, transparent 8px),
        radial-gradient(circle at 60% 20%, rgba(0, 207, 253, 0.3) 0%, transparent 14px),
        radial-gradient(circle at 90% 80%, rgba(210, 0, 0, 0.2) 0%, transparent 10px);
    opacity: 0.5;
    pointer-events: none;
    animation: float-particles 15s infinite linear;
}

@keyframes float-particles {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 20px 20px, -30px 10px, 15px -20px, -10px 15px, 25px 5px, -20px -15px;
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 207, 253, 0.3);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 10px rgba(0, 207, 253, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 207, 253, 0.6), 0 0 30px rgba(0, 207, 253, 0.3);
    }
}

.section-subtitle {
    color: #A9BCD0;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    perspective: 1000px; /* 3D perspective for the grid */
}

.feature-card {
    background: linear-gradient(145deg, #111f2f, #0a1522);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(169, 188, 208, 0.1);
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transform-style: preserve-3d; /* Enable 3D transformations */
    backface-visibility: hidden; /* Hide backface during animations */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    animation: shimmer 3s infinite linear;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 207, 253, 0.1) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    transform: scale(0.5);
    z-index: -1;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 207, 253, 0.2);
    border-color: rgba(0, 207, 253, 0.3);
}

.feature-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 207, 253, 0.2));
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) translateY(-5px);
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(210, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: scale(1.2) translateY(-5px);
    }
    50% {
        transform: scale(1.2) translateY(5px);
    }
    100% {
        transform: scale(1.2) translateY(-5px);
    }
}

.feature-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 207, 253, 0.3);
}

.feature-card p {
    color: #A9BCD0;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Create futuristic 3D card edges */
.feature-card:before, 
.feature-card:after {
    pointer-events: none;
}

/* Animation for feature cards */
.feature-card.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    animation: card-appear 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

/* Staggered animation delay for cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-header {
        margin-bottom: 30px;
    }
}

/* Hover effects only for devices that support hover */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 207, 253, 0.2);
    }
}

/* Touch device alternative */
@media (hover: none) {
    .feature-card:active {
        transform: scale(0.98) translateY(-5px);
    }
}

/* ========================= */
/* Footer Section */
/* ========================= */

.main-footer {
    background-color: #002E5D;
    padding: 60px 0 0;
    color: #ffffff;
}

.main-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 200px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column p,
.footer-column ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li {
    list-style: none;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    background: #D20000;
    color: white;
    font-size: 0.9rem;
    border-top: none;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        padding: 20px;
    }

    .main-footer .container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-line {
        margin-bottom: 0.05em;
        font-size: 0.9em;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .main-footer .container {
        grid-template-columns: 1fr;
    }

    .footer-logo img {
        width: 180px;  /* Slightly smaller on mobile but still bigger than original */
    }
}

/* Extra small screens - Better text handling */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .hero-line {
        margin-bottom: 0.1em;
        font-size: 1em;
    }

    .hero-content {
        max-width: 95%;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 15px;
        line-height: 1.6;
    }
}

/* ========================= */
/* Loading Spinner */
/* ========================= */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 207, 253, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Toggle (for responsive design) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .main-nav ul.show {
        display: flex;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        min-width: 100%;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
}

/* ========================= */
/* Animations */
/* ========================= */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 207, 253, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 207, 253, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 207, 253, 0.5);
    }
}

.primary-btn:hover {
    animation: pulse 1.5s infinite;
}

/* Shimmer effect for buttons */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.cta:hover {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================= */
/* Accessibility Improvements */
/* ========================= */

:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus, .role-btn:focus, .cancel-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 207, 253, 0.5);
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ========================= */
/* End of File */
/* ========================= */
