/* ===== CUSTOM PROPERTIES ===== */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --font-sg: 'Space Grotesk', sans-serif;
    --font-dm: 'DM Sans', sans-serif;
}

/* ===== BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-dm);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-sg { font-family: var(--font-sg); }
.font-dm { font-family: var(--font-dm); }

.no-underline { text-decoration: none; }

/* ===== NAV ===== */
.nav-fixed {
    transition: box-shadow 0.3s ease;
}

.nav-scrolled {
    box-shadow: 0 1px 20px rgba(15, 118, 110, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-600);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-link {
    border-radius: 8px;
}

.mobile-link:hover {
    background: var(--teal-50);
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: 40%;
    right: 15%;
}

.geo-diamond {
    position: absolute;
    pointer-events: none;
    transform: rotate(45deg);
}

.geo-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(250, 204, 21, 0.2);
    top: 20%;
    left: 8%;
}

.geo-diamond-2 {
    width: 40px;
    height: 40px;
    background: rgba(45, 212, 191, 0.25);
    bottom: 25%;
    right: 10%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle-1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(250, 204, 21, 0.15);
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
}

.geo-stripe {
    position: absolute;
    pointer-events: none;
}

.geo-stripe-1 {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.3), transparent);
    top: 30%;
    right: 0;
    transform: rotate(-5deg);
}

.geo-stripe-2 {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
    bottom: 35%;
    left: 0;
    transform: rotate(3deg);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== GALLERY ===== */
.gallery-item {
    cursor: pointer;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.35);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3rem;
    }
}
