/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --dark-blue: #0f2027;
    --mid-blue: #203a43;
    --light-blue: #2c5364;
    --text-light: #f0f4f8;
    --text-dark: #333;
    --card-bg: rgba(255, 255, 255, 0.08);
    --hover-glow: 0 0 40px rgba(0, 210, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-blue);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======== HEADER / NAVIGATION ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation States */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ======== SECTIONS ======== */
section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-content {
    max-width: 960px;
}

section#systems {
    min-height: 0px !important;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0c4de;
    margin-bottom: 3rem;
}

/* ======== HERO SECTION ======== */
#home {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    position: relative;
    padding-top: 0;
    overflow: hidden;
    min-height: 90vh;
}

.hero-layout {
    position: relative;
    min-height: 90vh;
    width: 100%;
}

.hero-image {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 60%;
    height: 100%;
    z-index: 1;
    opacity: 78%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    padding: 2rem 3rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.hero-content h1 {
    position: relative;
    z-index: 4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* ======== SPOTLIGHT EFFECT ======== */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 800px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 220, 150, 0.12) 0%,
        rgba(255, 200, 120, 0.08) 20%,
        rgba(255, 180, 100, 0.05) 40%,
        rgba(255, 160, 80, 0.02) 60%,
        transparent 80%
    );
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#home.spotlight-active::before {
    opacity: 1;
}

.hero-content {
    z-index: 1;
    padding: 0 1rem; /* Add horizontal padding for mobile */
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem); /* Responsive font size using clamp */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2; /* Improved line height for readability */
    word-wrap: break-word; /* Prevent text overflow */
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive paragraph text */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6; /* Better line spacing for readability */
    padding: 0 0.5rem; /* Additional padding for mobile */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-glow);
}

/* Animated Wave */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
}
.waves {
    
    width: 100%;
    height:15vh;
    min-height:100px;
    max-height:150px;
    bottom: 0;
}
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* ======== SYSTEMS SECTION ======== */
#systems {
    background: #ffffff;
}

#systems h2 {
    background: linear-gradient(to top left, #2c5364, #203a43, #0f2027);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

#systems .section-subtitle {
    background: linear-gradient(to top left, #2c5364, #203a43, #0f2027);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* Horizontal Scrollable Systems */
.systems-row-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    position: relative;
}

.systems-row-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.innovation-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.innovation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary-blue);
}

.systems-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.systems-row .system-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards per row with gap consideration */
    min-width: 200px;
}

/* Responsive flexbox for smaller screens */
@media (max-width: 1000px) {
    .systems-row .system-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    }
}

@media (max-width: 700px) {
    .systems-row .system-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards per row */
    }
}

@media (max-width: 400px) {
    .systems-row .system-card {
        flex: 0 0 100%; /* 1 card per row */
    }
}

.system-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Slide up animation for system cards */
.slide-up-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 0.6s ease-out forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(58, 123, 213, 0.2);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.system-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    line-height: 1.2;
}

.system-card p {
    color: #666666;
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.system-card ul {
    list-style: none;
    margin-top: 1rem;
}

.system-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #555555;
}

.system-card ul li .fa-check-circle {
    color: var(--secondary-color);
}

/* Animated Container Styles */
.animated-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.animated-container .systems-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.animated-container .systems-row .system-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards per row with gap consideration */
    min-width: 200px;
}

/* Responsive flexbox for animated container */
@media (max-width: 1000px) {
    .animated-container .systems-row .system-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    }
}

@media (max-width: 700px) {
    .animated-container .systems-row .system-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards per row */
    }
}

@media (max-width: 400px) {
    .animated-container .systems-row .system-card {
        flex: 0 0 100%; /* 1 card per row */
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.animated-container .systems-row::-webkit-scrollbar {
    display: none;
}

.animated-container .system-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    visibility: visible;
    opacity: 1;
    width: 100%;
    max-width: 220px;
    height: 220px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.animated-container .system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 123, 213, 0.2);
    border-color: var(--primary-color);
}

.animated-container .system-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 123, 213, 0.2);
    border-color: var(--primary-color);
    outline: 2px solid var(--secondary-color);
}

.animated-container .system-card .card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.animated-container .system-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    line-height: 1.2;
}

.animated-container .system-card p {
    color: #666666;
    margin-bottom: 0;
    line-height: 1.3;
    font-size: 0.85rem;
}

.animated-container .system-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.animated-container .system-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #555555;
    font-size: 0.9rem;
}

.animated-container .system-card ul li .fa-check-circle {
    color: var(--secondary-color);
    flex-shrink: 0;
}


/* ======== TEAM SECTION ======== */
#team {
    background: linear-gradient(to top left, #2c5364, #203a43, #0f2027);
}

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

.team-member {
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.team-member p {
    color: #b0c4de;
}

/* ======== CONTACT SECTION ======== */
#contact {
    background: linear-gradient(to bottom, #0f2027, #1a323c);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.contact-form input.success,
.contact-form textarea.success {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(81, 207, 102, 0.2);
    border: 1px solid #51cf66;
    color: #51cf66;
}

.form-message.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0c4de;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    position: relative;
    min-width: 140px;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.contact-form .btn.loading .btn-text {
    display: none;
}

.contact-form .btn.loading .btn-loading {
    display: inline;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ======== FOOTER ======== */
footer {
    background: var(--dark-blue);
    padding: 2rem 0;
    text-align: center;
    color: #b0c4de;
}

/* ======== ANIMATIONS ======== */
/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--secondary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0;
    width: 0;
    display: inline-block;
    animation: 
        typing 4s steps(40, end) 0.5s forwards,
        blink-caret 0.75s step-end infinite;
}

.typewriter.anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: 
        slideUp 0.8s ease-out forwards,
        typing 4s steps(40, end) 0.8s forwards,
        blink-caret 0.75s step-end infinite 0.8s;
}

@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 13ch;
    }
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent;
    }
    50% { 
        border-color: var(--secondary-color);
    }
}

/* On-load animations */
.anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.hero-content p.anim-slide-up {
    animation-delay: 0.2s;
}

.anim-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-content .anim-fade-in {
    animation-delay: 0.4s;
}

/* Scroll-triggered animations */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ======== RESPONSIVENESS ======== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Enhanced hero content for tablets */
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        margin-bottom: 1.2rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 1.8rem;
        padding: 0 1rem;
        max-width: 500px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide navigation links by default on mobile */
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 32, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }
    
    /* Show navigation when active */
    .nav-links.active {
        transform: translateX(0);
    }
    
    /* Style navigation links for mobile */
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .nav-links .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }
    
    /* Remove the underline effect on mobile */
    .nav-links .nav-link::after {
        display: none;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile typography */
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        margin-bottom: 1rem;
        line-height: 1.1;
        letter-spacing: -0.02em; /* Tighter letter spacing for mobile */
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        min-width: 160px; /* Ensure button is touch-friendly */
    }
    
    /* Improve overall mobile spacing */
    section {
        padding: 3rem 1rem;
    }
    
    .systems-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Add extra small mobile devices support */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: clamp(1.6rem, 9vw, 1.9rem);
        margin-bottom: 0.8rem;
        line-height: 1.05;
    }
    
    .hero-content p {
        font-size: clamp(0.85rem, 4.5vw, 0.95rem);
        margin-bottom: 1.2rem;
        padding: 0 0.25rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 140px;
    }
    
    section {
        padding: 2.5rem 0.75rem;
    }
}

/* ======== DOWNLOADABLES SECTION ======== */
#downloadables {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--mid-blue) 100%);
    padding: 5rem 0;
}


section#downloadables{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-direction: column !important;
}

/* Section Header with Toggle */
.section-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.section-header-text h2 {
    margin-bottom: 0.5rem;
}

.section-header-text .section-subtitle {
    margin: 0;
}

/* View Toggle Styles */
.view-toggle-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.toggle-button {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-slider.active .toggle-button {
    transform: translateX(26px);
}

.view-toggle .toggle-label.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.downloadables-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Removed max-height and overflow-y to allow automatic height adjustment */
}

/* Custom Scrollbar - Removed as scrolling is now disabled */

.category-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-glow);
}

.category-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(58, 123, 213, 0.3);
}

.category-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.category-header p {
    color: rgba(240, 244, 248, 0.8);
    font-size: 1rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transition: all 0.4s ease;
    align-items: start;
}

/* List View Styles - Two Column Layout */
.downloads-grid.list-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

.downloads-grid.list-view .download-item {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.downloads-grid.list-view .download-info {
    flex: 1;
    text-align: left;
    min-width: 0; /* Prevents flex item from overflowing */
}

.downloads-grid.list-view .download-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    word-wrap: break-word;
}

.downloads-grid.list-view .download-info p {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.downloads-grid.list-view .file-size {
    font-size: 0.75rem;
}

.downloads-grid.list-view .download-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-width: 120px;
}

.downloads-grid.list-view .external-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-width: 120px;
}

.download-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.download-icon .fa-file-pdf {
    color: #ff4757;
}

.download-icon .fa-file-word {
    color: #2e86de;
}

.download-icon .fa-file-excel {
    color: #10ac84;
}

.download-icon .fa-file-powerpoint {
    color: #ff6348;
}

.download-icon .fa-file-video {
    color: #a55eea;
}

.download-info {
    flex: 1;
    text-align: center;
}

.download-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.download-info p {
    font-size: 0.9rem;
    color: rgba(240, 244, 248, 0.7);
    margin-bottom: 0.5rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.download-btn i {
    font-size: 0.9rem;
}

.external-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    justify-content: center;
}

.external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.external-link i {
    font-size: 0.9rem;
}

/* Responsive Design for Downloadables */
@media (max-width: 768px) {
    .section-header-with-toggle {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .view-toggle-container {
        justify-content: center;
    }
    
    .downloadables-categories {
        gap: 2rem;
        /* Removed max-height to maintain consistency with desktop version */
    }
    
    .category-section {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .downloads-grid.list-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .downloads-grid.list-view .download-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .downloads-grid.list-view .download-info {
        text-align: center;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .download-info {
        text-align: center;
    }
    
    .download-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .external-link {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #downloadables {
        padding: 3rem 0;
    }
    
    .category-section {
        padding: 1rem;
    }
    
    .download-item {
        padding: 1rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .downloads-grid.list-view {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ===============================
   Back to Top Button
   =============================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ===============================
   Hero Section Responsive Design
   =============================== */

/* Tablet Devices */
@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }
    
    .hero-content {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        padding: 3rem 2rem;
        min-height: 100vh;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .hero-layout {
        position: relative;
        min-height: 100vh;
        width: 100%;
    }
    
    #home {
        min-height: 100vh;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        position: relative;
        min-height: auto;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        padding: 2rem 1.5rem;
        min-height: auto;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    #home {
        min-height: 100vh;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero-image {
        display: none;
    }
    
    #home {
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .hero-layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-content .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
    .hero-image {
        display: none;
    }
    
    #home {
        min-height: 100vh;
        padding: 0.25rem 0;
    }
    
    .hero-layout {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 1rem 0.75rem;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .hero-content .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 320px) {
    .hero-image {
        display: none;
    }
    
    #home {
        min-height: 100vh;
        padding: 0.25rem 0;
    }
    
    .hero-content {
        padding: 0.8rem 0.5rem;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}