/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    /* Black */
    --secondary: #00FFFF;
    /* Neon blue/cyan */
    --light: #FFFFFF;
    /* White */
    --dark: #121212;
    /* Nearly black for text */
    --accent: #00C3FF;
    /* Slightly deeper neon blue */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
    top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 10001;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 0.5px;
}

.logo-custom {
    color: var(--secondary);
    /* Blue */
    font-size: inherit;
    font-weight: inherit;
    margin-right: 0;
}

.logo-coded {
    color: var(--light);
    /* White */
    font-size: inherit;
    font-weight: inherit;
    margin-right: 0;
}

/* --- Refined High-Tech Logo --- */
.hi-tech-logo {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--light);
    display: inline-block;
    /* Subtle shadow for depth */
    text-shadow: 0 2px 8px rgba(0, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.08);
}

.hi-tech-logo .logo-custom {
    color: var(--secondary);
    /* Neon blue/cyan */
    font-weight: 700;
    background: none;
    text-shadow: none;
}

.hi-tech-logo .logo-coded {
    color: var(--light);
    /* White */
    font-weight: 700;
    background: none;
    text-shadow: none;
}

/* Optional: subtle shadow for depth */
.hi-tech-logo {
    text-shadow: 0 2px 8px rgba(0, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* Desktop Navigation Styles */
.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 2rem;
}

.desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.desktop-nav ul li a:hover {
    color: var(--secondary);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 10001;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-line {
    width: 30px;
    height: 3.5px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.mobile-nav-list li:last-child .mobile-nav-link {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Added for better visual separation */
}

.mobile-nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--secondary);
    padding-left: 2rem;
    outline: none;
}

.mobile-nav-link:hover i,
.mobile-nav-link:focus i {
    transform: scale(1.1);
    color: var(--secondary);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus::before {
    width: 4px;
}

/* Active/current page indicator for mobile nav */
.mobile-nav-link.current {
    background-color: rgba(0, 255, 255, 0.15);
    color: var(--secondary);
}

.mobile-nav-link.current::before {
    width: 4px;
}

/* Touch-friendly sizing */
@media (max-width: 768px) {
    .mobile-nav-link {
        min-height: 48px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
}

/* Media Queries for Mobile Menu */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .header-container {
        padding: 0.75rem 0;
    }
}

/* Force mobile view for testing (remove in production) */
/* 
@media (max-width: 1200px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
}
*/

@media (max-width: 480px) {
    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-nav-link:hover {
        padding-left: 1.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1a1a 100%);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    /* Added to account for fixed header */
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

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

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Improve legibility on light cyan buttons */
.btn:not(.btn-outline) {
    color: #00242a;
    /* darker teal for contrast */
    text-shadow: none;
    /* remove glow that can reduce clarity */
    font-weight: 600;
}

/* Hover keeps dark text */
.btn:not(.btn-outline):hover {
    color: #00161a;
}

/* If any link styled only with glow-effect but no .btn background */
a.glow-effect.btn {
    color: #00242a;
}

a.glow-effect.btn:hover {
    color: #00161a;
}

/* Ensure outline variant stays readable */
.btn-outline {
    color: var(--secondary);
}

/* Keep white text on specific highlighted buttons */
.btn.keep-white,
.btn-outline.keep-white {
    color: #ffffff !important;
    text-shadow: none;
}

.btn.keep-white:hover,
.btn-outline.keep-white:hover {
    color: #ffffff !important;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.section-title .underline {
    height: 4px;
    width: 100px;
    background-color: var(--secondary);
    margin: 1rem auto;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--light);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    margin-top: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: block;
    text-align: center;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--light);
}

/* Portfolio Section */
.portfolio {
    background-color: #1e1e1e;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 250px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.5s;
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Testimonials Section */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: var(--primary);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.testimonial-slide.active {
    display: block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--secondary);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    border: 1px solid var(--secondary);
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* Contact Section */
.contact {
    background-color: var(--dark);
}

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

.contact-info h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--light);
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 1rem 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {

    /* Force all .btn text to white, including hero and home page buttons */
    .btn,
    .hero-buttons .btn,
    a.btn {
        color: #fff !important;
    }

    color: var(--secondary);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.5rem 0.5rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Message styles */
.message-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    background-color: var(--primary);
    color: var(--light);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.message.success {
    border-color: #00ff00;
}

.message.error {
    border-color: #ff0000;
}

.message .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('/static/website/img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* About Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--primary);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-img-container {
    height: 250px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.team-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    color: var(--light);
    transition: color 0.3s;
}

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

/* FAQ Page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--primary);
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.2rem;
    max-height: 500px;
}

/* Terms & Privacy Page */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 3rem;
}

.terms-section h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.terms-section h3 {
    color: var(--light);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.terms-section p,
.terms-section ul {
    margin-bottom: 1rem;
}

.terms-section ul {
    padding-left: 2rem;
}

/* Custom cursor styles */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s, height 0.2s, border-color 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.cursor-outline {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cursor-hover.cursor-dot {
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

.cursor-hover.cursor-outline {
    width: 40px;
    height: 40px;
    border-color: rgba(0, 255, 255, 0.5);
}

/* Glow effect for buttons */
.btn.glow-effect {
    transition: all 0.3s, box-shadow 0.5s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn.glow-effect:hover {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.3);
}

/* Hide custom cursor on mobile and other mobile optimizations */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    /* Ensure the mobile menu appears above everything */
    .mobile-nav {
        z-index: 9999;
    }
    
    /* Adjust header padding for mobile */
    .header-container {
        padding: 0.875rem 0;
    }
    
    /* Better mobile logo sizing */
    .logo-img {
        max-height: 50px;
    }
    
    /* Prevent text selection on mobile menu button */
    .mobile-menu-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Smooth mobile navigation animation */
    .mobile-nav {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
    
    .mobile-nav.active {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* 3D tilt effects */
.js-tilt {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.js-tilt:hover {
    z-index: 10;
}

.service-card.js-tilt:hover i {
    transform: translateZ(30px);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.service-card.js-tilt:hover h3 {
    transform: translateZ(20px);
}

.service-card i,
.service-card h3,
.service-card p {
    transition: transform 0.3s;
}

.portfolio-item.js-tilt:hover .portfolio-overlay {
    transform: translateZ(20px);
}

/* Glowing text animation */
.glowing-text {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    }

    to {
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.9), 0 0 25px rgba(0, 255, 255, 0.7), 0 0 35px rgba(0, 255, 255, 0.5);
    }
}

/* === About / Core Team Revamp === */
.about-us--revamped {
    background: linear-gradient(135deg, rgba(0, 0, 0, .45), rgba(0, 30, 36, .55));
    border: 1px solid rgba(0, 255, 255, .20);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-us--revamped:before {
    content: "";
    position: absolute;
    top: -25%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 30% 40%, rgba(0, 255, 255, .25), transparent 70%);
    filter: blur(8px);
    opacity: .55;
    pointer-events: none;
}

.about-heading {
    color: var(--secondary);
    font-size: 2rem;
    margin: 0 0 1rem;
    font-weight: 700;
}

.about-underline {
    width: 90px;
    height: 3px;
    background: var(--secondary);
    margin: 0 0 2rem;
}

.about-flex {
    display: flex;
    gap: 2.8rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.about-media {
    flex: 0 0 360px;
    max-width: 360px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.team-device {
    width: 100%;
    margin: 0;
    position: relative;
}

.team-device__bezel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(150deg, #031d20, #001012);
    border: 1px solid rgba(0, 255, 255, .35);
    box-shadow: 0 14px 42px -14px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 255, 255, .25), 0 0 22px -4px rgba(0, 255, 255, .35);
    isolation: isolate;
}

.team-device__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.04) contrast(1.05) saturate(1.05);
    transform: translateZ(0);
    transition: transform .9s cubic-bezier(.16, .8, .3, 1);
}

.team-device__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 255, 255, .20), rgba(0, 30, 40, .15) 30%, rgba(0, 0, 0, .55) 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.team-device__shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .35), transparent 55%);
    mix-blend-mode: screen;
    opacity: .35;
    pointer-events: none;
    transition: opacity .4s;
}

.team-device__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: .62rem;
    letter-spacing: .7px;
    font-weight: 700;
    background: rgba(0, 255, 255, .14);
    color: var(--secondary);
    padding: .45rem .85rem .42rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 255, 255, .45);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(0, 255, 255, .35);
}

.team-device__shadow {
    width: 78%;
    height: 40px;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .65), transparent 70%);
    margin: 18px auto 0;
    filter: blur(4px);
    transform: translateY(0);
    transition: transform .9s cubic-bezier(.16, .8, .3, 1), opacity .9s;
    opacity: .9;
}

.team-device:hover .team-device__img {
    transform: scale(1.08) translateY(-4px);
}

.team-device:hover .team-device__shine {
    opacity: .55;
}

.team-device:hover+.team-device__shadow,
.team-device:hover .team-device__shadow {
    transform: translateY(4px) scale(.95);
    opacity: .65;
}

/* Copy side */
.about-copy {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.about-copy p {
    margin: 0;
    line-height: 1.62;
    font-size: 1.04rem;
    color: rgba(255, 255, 255, .84);
}

/* Impact */
.impact-heading {
    margin: 1rem 0 1.1rem;
    font-size: 1rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
}

.impact-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    display: inline-block;
}

.impact-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.impact-card {
    background: linear-gradient(145deg, rgba(0, 255, 255, .08), rgba(0, 40, 50, .13));
    border: 1px solid rgba(0, 255, 255, .20);
    padding: 1rem .95rem .9rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.impact-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 20%, rgba(0, 255, 255, .18), transparent 60%);
    opacity: .55;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.impact-label {
    display: block;
    font-size: .58rem;
    letter-spacing: .9px;
    font-weight: 600;
    color: rgba(255, 255, 255, .52);
    text-transform: uppercase;
    margin-bottom: .28rem;
}

.impact-value {
    font-size: 1.85rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width:980px) {
    .about-media {
        flex: 0 0 320px;
        max-width: 320px
    }
}

@media (max-width:720px) {
    .about-flex {
        flex-direction: column
    }

    .about-media {
        margin: 0 auto
    }

    .team-device__bezel {
        aspect-ratio: 16/10;
    }
}

/* Logo Image Styling */
.logo-img {
    max-height: 85px;
    /* Increased for better visibility */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-img {
        max-height: 50px;
        /* Adjusted for mobile */
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-height: 45px;
        /* Slightly smaller for very small screens */
    }
}

/* Add to the end of your existing CSS file */

/* Fallback particles styling */
.fallback-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fallback-particle {
    position: absolute;
    background-color: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, 25px);
        opacity: 0.8;
    }

    50% {
        transform: translate(25px, -25px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-50px, 25px);
        opacity: 0.3;
    }
}

/* Different animations for variety */
.fallback-particle:nth-child(3n) {
    animation-duration: 18s;
    animation-delay: 1s;
}

.fallback-particle:nth-child(3n+1) {
    animation-duration: 12s;
    animation-delay: 0.5s;
}

.fallback-particle:nth-child(5n) {
    background-color: rgba(0, 200, 255, 0.5);
}

/* Updated Footer Styling */
.new-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 3rem 0 0;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-col p {
    color: #cccccc;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0 1.5rem;
}

.footer-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ffcc00;
}

.footer-hours {
    margin-top: 1.5rem;
}

.footer-hours h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-hours p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.footer-contact-item p {
    margin-bottom: 0;
    word-break: break-word;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-left: 1rem;
}

.footer-links a:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #999999;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #999999;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--secondary);
}

.back-to-top {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.back-to-top:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

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

    .footer-legal {
        justify-content: center;
    }
}