:root {
    --bg-dark: #020617;
    --bg-accent: #0f172a;
    --cyan-neon: #00d2ff;
    --purple-neon: #a855f7;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-accent) 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Subtle Noise Effect Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--cyan-neon) 0%, transparent 70%);
    border: 2px solid var(--cyan-neon);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan-neon);
}

.logo-text span {
    display: block;
    line-height: 1;
}

.logo-text .purple {
    color: var(--purple-neon);
    text-shadow: 0 0 10px var(--purple-neon);
}

nav {
    display: flex;
    gap: 40px;
    font-size: 0.95rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

nav a:hover { opacity: 1; color: var(--cyan-neon); }

.btn-header-cta {
    padding: 10px 24px;
    border: 2px solid var(--cyan-neon);
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    transition: 0.3s;
}

.btn-header-cta:hover {
    background: var(--cyan-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--cyan-neon);
}

main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 5%;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--cyan-neon);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

/* .btn-primary {
    padding: 15px 35px;
    background: var(--cyan-neon);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    color: black;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transition: 0.3s;
} */
 .btn-primary {
    position: relative; /* Required for absolute positioning of the loader */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: var(--cyan-neon);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    color: black;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transition: 0.3s;
    min-height: 54px; /* Ensures the button doesn't shrink when text is hidden */
}

.btn-text {
    transition: opacity 0.3s;
}

.btn-secondary {
    padding: 15px 35px;
    background: transparent;
    border: 1px solid var(--text-main);
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--cyan-neon); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 3rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.check-item i { color: var(--cyan-neon); font-style: normal; font-weight: bold; }

.pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Glassmorphism Card */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Glowing Gradient Border Effect */
.card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(to bottom, var(--purple-neon), var(--cyan-neon));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.card h3 {
    color: var(--purple-neon);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

/* @media (max-width: 968px) {
    main { grid-template-columns: 1fr; text-align: center; }
    header { flex-direction: column; gap: 20px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-btns, .checklist, .pills { justify-content: center; }
    nav { display: none; }
} */

@media (max-width: 968px) {
    main { 
        grid-template-columns: 1fr; 
        text-align: center; 
        margin-top: 20px;
        padding-bottom: 100px; /* Space for the bottom nav */
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 5%;
    }

    /* Move the CTA button to the top right or keep it centered */
    .btn-header-cta {
        width: 100%;
        max-width: 300px;
    }

    /* --- THE FLOATING DOCK NAVIGATION --- */
    nav.main-nav {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 99%;
        max-width: 420px;
        /* background: rgba(15, 23, 42, 0.7); Darker semi-transparent blue */
        background: rgba(15, 23, 42, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        /* padding: 12px 25px; */
        padding: 12px 10px; 
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                    0 0 15px rgba(0, 210, 255, 0.1);
    }

    nav.main-nav a {
        font-size: 0.75rem;      /* Reduced from 0.85rem */
        white-space: nowrap;
        font-weight: 600;
        text-transform: uppercase;
        /* letter-spacing: 1px; */
        letter-spacing: 0.5px;
        opacity: 0.7;
    }

    /* Active/Hover state for the dock items */
    nav.main-nav a:active,
    nav.main-nav a:hover {
        color: var(--cyan-neon);
        opacity: 1;
        text-shadow: 0 0 8px var(--cyan-neon);
    }

    /* Add a small indicator for the 'active' page */
    nav.main-nav a::after {
        content: '';
        display: block;
        width: 4px;
        height: 4px;
        background: var(--cyan-neon);
        border-radius: 50%;
        margin: 4px auto 0;
        opacity: 0;
    }
    
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-btns, .checklist, .pills { justify-content: center; }

    .contact-info-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack vertically */
        /* gap: 32px;                  Space between Location and Phone */
        gap: 24px;
        text-align: left;           /* Force left alignment */
        margin-top: 40px;
        width: 100%;
        max-width: 500px;           /* Prevents it from being too wide on tablets */
        margin-left: 0;             /* Ensures it sticks to the left */
    }

    .info-item {
        display: flex;
        flex-direction: column;     /* Stack label over text */
        /* gap: 8px;                   Space between "Location" and the address */
        gap: 2px;
    }

    .info-item span {
        font-size: 0.85rem;
        letter-spacing: 1px;
        /* Ensure the label is clearly separated */
        margin-bottom: 0; /* Remove the bottom margin on mobile */
    }

    .info-item p {
        font-size: 0.85rem;
        white-space: pre-line;      /* This is key for the address formatting */
        margin: 0;
        /* line-height: 1.6; */
        line-height: 1.4;
        color: var(--text-main);
    }
}

/* ==== contact us */
/* Contact Page Specific Styles */
.contact-main {
    align-items: flex-start;
    padding-top: 60px;
}

.contact-hero {
    padding-right: 20px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.info-item span {
    color: var(--cyan-neon);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Form Styles */
.contact-card {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-neon);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.form-group select option {
    background: var(--bg-accent);
    color: white;
}

/* Feedback States */
.form-feedback {
    margin-top: 1.5rem;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #f87171;
}

/* Loading Spinner */
/* .loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
} */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
    
    /* Absolute centering */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* This is the secret to perfect centering */
}

/* @keyframes spin {
    to { transform: rotate(360deg); }
} */

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* nav a.active {
    color: var(--cyan-neon);
    opacity: 1;
} */

nav a.active {
    color: var(--cyan-neon) !important;
    opacity: 1 !important;
    text-shadow: 0 0 10px var(--cyan-neon);
}

/* ==== Footer | migration ======== */

.footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
    /* background-color: #fafafa; */
    border-top: 1px solid #eee;
}

.footer a {
    /* color: #a62525; */
    text-decoration: none;
}

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

/* Telegram Link Styling */
.contact-link {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--cyan-neon);
}

.contact-link:hover {
    color: var(--cyan-neon);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* Adjust grid for 3 items on desktop */
@media (min-width: 969px) {
    .contact-info-grid {
        grid-template-columns: 1fr 1fr 1fr; /* Changes from 2 to 3 columns */
    }
}