html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #4a148c; /* Deep Purple */
    --secondary-color: #7c43bd; /* Lighter Purple */
    --accent-color: #00e5ff; /* Cyan/Blue accent for "tech" feel */
    --text-color: #ffffff;
    --bg-color: #0a0a1a; /* Very dark blue/purple background */
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
    transition: transform 0.5s ease;
    display: inline-block;
}

.logo-text:hover {
    animation: shake 0.5s infinite;
    cursor: help;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.cta-button {
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.lang-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.lang-link:hover, .lang-link.active {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.yt-link-header {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.yt-link-header:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.yt-link-footer {
    text-decoration: none;
    color: #666; /* Match footer text color mostly */
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.yt-link-footer:hover {
    color: #ff0000;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a0e5e 0%, #0a0a1a 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: 30px;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.main-logo {
    width: 150px;
    height: auto;
    border-radius: 20px; /* Optional: if logo is square */
    box-shadow: 0 0 30px rgba(124, 67, 189, 0.5);
    transition: transform 0.1s ease;
}

.main-logo:active {
    transform: scale(0.9);
}

#logo-counter {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    width: min-content;
    margin: auto;
}

#hero-logo {
    cursor: pointer;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #b39ddb);
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 67, 189, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 67, 189, 0.6);
}

.btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: #0a0a1a;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: #bdbdbd;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #0a0a1a, #1a0530);
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.testimonials-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
}

.testimonials-container::-webkit-scrollbar {
    height: 8px;
}

.testimonials-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.testimonials-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.testimonial-card {
    min-width: 300px;
    max-width: 350px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.author-info h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

/* Pricing Section */
.pricing {
    padding: 150px 20px;
    background: #0a0a1a;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(124, 67, 189, 0.2);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.pricing-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to top, #1a0530, #0a0a1a);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.email-link {
    display: inline-block;
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-color);
}

.consultant-profile {
    margin: 30px 0;
}

.consultant-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.consultant-img:hover {
    transform: scale(1.1) rotate(3600deg);
}

.consultant-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.consultant-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 67, 189, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(124, 67, 189, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 67, 189, 0); }
}

.cta-button {
    text-decoration: none;
    color: var(--text-color);
    background: var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90vh;
    max-width: 1200px;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px; /* Increased padding for stacked nav */
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .modal-content {
        width: 95%;
        height: 80vh;
    }
}

/* Snow Effect */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    user-select: none;
    pointer-events: none;
    z-index: 1500; /* Below modal (2000) but above header (1000) */
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes fall {
    0% {
        top: -10%;
    }
    100% {
        top: 100%;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(50px);
    }
    100% {
        transform: translateX(0px);
    }
}

/* Santa Hat */
.santa-hat-container {
    position: relative;
    display: inline-block;
}

.santa-hat {
    position: absolute;
    top: -45px;
    left: -25px;
    width: 100px;
    height: auto;
    z-index: 10;
    transform: rotate(-15deg);
    pointer-events: none;
}
