/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --background: 240 10% 6%;
    --foreground: 0 0% 98%;
    --primary: 261 83% 58%;
    --secondary: 271 81% 56%;
    --muted: 240 3.7% 15.9%;
    --card: 240 10% 10%;
    --border: 240 3.7% 15.9%;
    --radius: 0.5rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsl(var(--background));
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-primary {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-secondary {
    color: hsl(var(--primary));
}

.logo-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--foreground) / 0.7);
    letter-spacing: 0.1em;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 3.25rem 0 4rem;
    text-align: center;
    margin-top: 3rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    padding: 1rem 0;
    margin-top: 0.25rem;
}

.hero-subtitle {
    animation: scroll-text 25s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: hsl(var(--foreground) / 0.8);
}

/* Hero actions (Contact / Services) */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-save {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

.hero-save {
    animation: scroll-text 25s linear infinite;
}

.cta-button {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.875rem 2rem;
}

.btn-secondary:hover {
    background: hsl(var(--muted));
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.cta-button span {
    font-size: 1.5rem;
    font-weight: 400;
}

.cta-button-inline {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cta-button-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.02);
}

.service-card {
    background: hsl(var(--card));
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    pointer-events: auto;
    border-radius: 50%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    border-radius: 50%;
    z-index: 1;
    position: relative;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: hsl(var(--primary));
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.service-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--foreground));
}

.service-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.75);
    text-align: center;
    margin-top: -0.75rem;
    /* move description closer to title */
}

@media (max-width: 768px) {
    .services-row {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 150px;
        height: 150px;
    }

    .service-title {
        font-size: 0.75rem;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 5rem 0;
}

.cta-box {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-dark {
    background: #000;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-dark:hover {
    background: #1a1a1a;
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
}

/* Bottom Ad Section */
.ad-section {
    padding: 2rem 0 3rem;
}

.ad-box {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 1.25rem;
    padding: 2.25rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.35);
}

.ad-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.ad-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.ad-actions {
    display: flex;
    justify-content: center;
}

/* Ad button style: black background, white text */
.ad-box .cta-button {
    background: #000;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ad-box .cta-button:hover {
    background: #111;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.7);
}

/* ========================================
   Modal
   ======================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: hsl(var(--card));
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-top: 3rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: hsl(var(--foreground));
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: hsl(var(--muted));
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    background: hsl(var(--card));
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: hsl(var(--foreground) / 0.7);
    font-size: 0.95rem;
}

.modal-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-channel {
    background: hsl(var(--muted));
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: hsl(var(--foreground));
}

.contact-channel svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-channel span {
    font-weight: 500;
}

.contact-channel:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transform: translateX(4px) scale(1.02);
}

/* ========================================
   Scroll Button
   ======================================== */
.scroll-down-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.scroll-down-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Stagger animation delays */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .services {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .service-card {
        width: 150px;
        height: 150px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .modal {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}