/* === Tancy Tech — Deep Sea Enterprise Theme === */

:root {
    --bg-primary: #050b16;
    --bg-secondary: #091424;
    --bg-tertiary: #0b1a2e;
    --bg-card: rgba(10, 23, 42, 0.84);
    --bg-card-hover: rgba(12, 29, 52, 0.96);
    --border-subtle: rgba(96, 165, 250, 0.12);
    --border-glow: rgba(96, 165, 250, 0.28);
    --text-primary: #f8fbff;
    --text-secondary: #c5d3e6;
    --text-muted: #8ea3bd;
    --accent-blue: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-violet: #8b5cf6;
    --accent-blue-glow: rgba(37, 99, 235, 0.3);
    --accent-cyan-glow: rgba(34, 211, 238, 0.18);
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
    --gradient-text: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 45%, #22d3ee 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 24%),
        linear-gradient(180deg, #040915 0%, #07111f 26%, #08111d 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

.glass-nav {
    background: rgba(5, 12, 23, 0.62);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}
.glass-nav.scrolled {
    background: rgba(5, 12, 23, 0.9);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.38);
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(59, 130, 246, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.72) 0%, rgba(5, 11, 22, 0.4) 18%, rgba(5, 11, 22, 0) 34%);
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: auto auto -18% -14%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 72%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: -18% -10% auto auto;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, black 32%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 36%, black 32%, transparent 100%);
}

.text-gradient,
.text-gradient-blue {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent-cyan);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink {
    50% { opacity: 0; }
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.34);
}
.btn-secondary {
    background: rgba(8, 18, 33, 0.78);
    color: #e5eefb;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}
.btn-secondary:hover {
    background: rgba(10, 23, 42, 0.96);
    border-color: rgba(96, 165, 250, 0.3);
    color: white;
    transform: translateY(-2px);
}

.service-card {
    background: linear-gradient(180deg, rgba(9, 20, 36, 0.92) 0%, rgba(8, 18, 33, 0.82) 100%);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 26px;
    padding: 36px 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 58px rgba(2, 6, 23, 0.34);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 30px 66px rgba(2, 6, 23, 0.46), 0 12px 30px rgba(37, 99, 235, 0.12);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-card {
    background: linear-gradient(180deg, rgba(9, 20, 36, 0.92) 0%, rgba(8, 18, 33, 0.84) 100%);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.28);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.22) 50%, transparent 100%);
    border: none;
    margin: 0;
}

.about-section,
#services,
#contact,
section.py-24.relative {
    position: relative;
}

.about-section::before,
#services::before,
#contact::before,
section.py-24.relative::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(96, 165, 250, 0.038) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 100%);
}

.contact-card {
    background: linear-gradient(180deg, rgba(8, 18, 33, 0.96) 0%, rgba(7, 16, 30, 0.94) 100%);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
}
.contact-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(11, 24, 44, 0.94) 0%, rgba(8, 18, 33, 0.94) 100%);
}
.contact-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(4, 11, 22, 0.9);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.contact-input::placeholder { color: #64748b; }
.contact-input:focus {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.contact-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(7, 16, 30, 0.88);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.contact-reveal-btn:hover {
    background: rgba(9, 20, 36, 0.98);
    transform: translateY(-1px);
}
.phone-reveal-box {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.phone-reveal-box.visible {
    display: flex;
}
.phone-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #eff6ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.copy-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(4, 11, 22, 0.9);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.copy-phone-btn:hover {
    color: white;
    border-color: rgba(96, 165, 250, 0.4);
}

.footer-section {
    background: transparent;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.15);
    animation: glowExpand 4s ease-out infinite;
}
@keyframes glowExpand {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.mobile-menu-dark {
    background: rgba(5, 12, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.36);
}
.mobile-menu-dark a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
}
.mobile-menu-dark a:hover {
    color: white;
    background: rgba(9, 20, 36, 0.84);
}

.dropdown-menu {
    background: rgba(8, 18, 33, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.48);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: rgba(10, 23, 42, 0.94);
    color: white;
}
.dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.14);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .glow-ring, .float-anim, .cursor-blink { animation: none; }
    .hero-section::before, .hero-section::after { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050b16; }
::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.34); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, 0.52); }

::selection {
    background: rgba(59, 130, 246, 0.34);
    color: white;
}
