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

:root {
    /* Premium Dark Palette (Electric Green) */
    --primary-bg: #0A0A1A; /* Deeper, richer dark blue/black */
    --secondary-bg: #1A1A2A; /* Slightly lighter for cards/sections */
    --accent-blue: #00FFFF; /* Neon Cyan */
    --accent-purple: #00FF7F; /* Electric Green */
    --text-white: #E0E0FF; /* Soft white */
    --text-gray: #A0A0C0; /* Muted gray */
    --gradient-1: linear-gradient(135deg, #0A0A1A 0%, #1A0A2A 100%); /* Richer dark gradient */
    --gradient-2: linear-gradient(135deg, #1A1A2A 0%, #2A1A3A 100%);
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --border-glow: 1px solid rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px; /* For 3D effects */
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.7); /* Semi-transparent initially */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1); /* Neon border */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.98); /* Almost opaque when scrolled */
    backdrop-filter: blur(15px); /* Stronger blur when scrolled */
    padding: 15px 0; /* Slightly smaller padding */
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2); /* Add shadow when scrolled */
}

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

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-blue)); /* Logo glow */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.phone:hover {
    color: var(--accent-purple);
}

.cta-button {
    background: var(--accent-blue);
    color: #000000; /* Pure black for maximum contrast */
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.6);
    background: var(--accent-purple);
    color: #000000; /* Pure black for maximum contrast */
}

.cta-button.large {
    padding: 18px 45px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    overflow: hidden;
    padding-top: 100px;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-family: 'Unbounded', sans-serif; /* Use a bolder font for headings */
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); /* Text glow */
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 600px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-blue);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d; /* For 3D parallax */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 80px rgba(0, 0, 0, 0.8));
    transition: transform 0.5s ease-out;
}

/* Wave Divider - Keep simple for cleaner look */
.wave-divider {
    height: 50px;
    background: var(--secondary-bg);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.wave-divider.top {
    margin-top: -1px;
    background: var(--primary-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Why Section */
.why-section {
    background: var(--secondary-bg);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    background: var(--accent-purple);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-blue);
}

.advantages-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
}

.advantages-list {
    flex: 1;
    display: grid;
    gap: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--primary-bg);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    transform-style: preserve-3d;
}

.advantage-item:hover {
    background: var(--secondary-bg);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateZ(10px);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-purple);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--accent-purple);
}

.advantages-image {
    flex: 1;
    position: relative;
    transform-style: preserve-3d;
}

.advantages-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s ease-out;
}

.stat-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(10, 10, 26, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 20px;
    margin-top: 10px;
}

.stat-subtext {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Statistics Section */
.stats-section {
    background: var(--primary-bg);
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    transform-style: preserve-3d;
}

.stat-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(0, 255, 127, 0.2);
    transform: translateZ(15px);
}

.stat-value {
    font-size: 56px;
    font-weight: 900;
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue);
    margin-bottom: 15px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-gray);
}

.cta-banner {
    position: relative;
    background: var(--gradient-2);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-image {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 50%;
    height: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(150%);
    transition: transform 0.5s ease-out;
}

.cta-banner:hover .cta-banner-image {
    transform: scale(1.05);
    opacity: 0.7;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.cta-banner-content p {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Cases Section */
.cases-section {
    background: var(--secondary-bg);
    padding: 100px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.case-card {
    background: var(--primary-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.case-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 40px rgba(0, 255, 127, 0.3);
    transform: translateZ(20px);
}

.case-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 40px;
}

.case-content h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
}

.case-before,
.case-after {
    margin-bottom: 30px;
}

.case-before h4,
.case-after h4 {
    font-size: 20px;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.case-before ul,
.case-after ul {
    list-style: none;
}

.case-before li,
.case-after li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 17px;
}

.case-before li::before,
.case-after li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 900;
}

.case-after li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: 900;
}

.case-result {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.result-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue);
}

.result-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-blue);
}

.cta-center {
    text-align: center;
    padding: 80px 0;
}

.cta-center h3 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.phone-large,
.email-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.phone-large:hover,
.email-large:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 5px var(--accent-purple);
}

.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-icons-large .social-icon {
    width: auto;
    height: auto;
    padding: 15px 30px;
    border-radius: 30px;
    background: var(--accent-purple);
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.4);
}

.social-icons-large .social-icon:hover {
    background: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.6);
}

/* Video Section */
.video-section {
    background: var(--primary-bg);
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.video-preview {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 60px var(--accent-purple); /* Stronger glow */
    border: 5px solid var(--accent-purple); /* Thicker border */
    transition: transform 0.5s ease-out;
}

.video-preview:hover {
    transform: scale(1.02);
}

.video-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.video-buttons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.video-button {
    padding: 18px 35px; /* Larger button */
    border-radius: 30px;
    background: var(--accent-blue);
    color: #000000; /* Pure black for maximum contrast */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 5px 20px var(--accent-blue);
    text-transform: uppercase;
}

.video-button:hover {
    transform: translateY(-5px);
    background: var(--accent-purple);
    color: #000000; /* Pure black for maximum contrast */
    box-shadow: 0 10px 25px var(--accent-purple);
}

/* Offices Section */
.offices-section {
    background: var(--secondary-bg);
    padding: 100px 0;
}

.offices-section h2 {
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 80px;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.office-card {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.office-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateZ(10px);
}

.office-card h3 {
    font-size: 28px;
    color: var(--accent-purple);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 255, 127, 0.3);
}

.office-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--primary-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-bg);
    padding: 80px 0 40px;
    border-top: 5px solid var(--accent-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer h4 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.footer-offices p,
.footer-contacts a {
    color: var(--text-gray);
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--accent-purple);
}

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

.footer-logo {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--accent-purple));
}

.footer-logo p {
    color: var(--text-gray);
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: var(--text-gray);
    font-size: 14px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--text-white);
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background: var(--primary-bg);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-menu li {
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .hamburger {
        display: block;
    }

    .nav-right .phone,
    .nav-right .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .advantages-wrapper {
        flex-direction: column;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-banner-content {
        max-width: 100%;
    }
    
    .cta-banner-image {
        position: relative;
        max-width: 100%;
    }
}
