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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229, 90, 63, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
}

.geo-circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 90, 63, 0.06) 0%, transparent 70%);
    bottom: -80px;
    right: 10%;
    border-radius: 50%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(229, 90, 63, 0.06);
    top: 20%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-square {
    width: 80px;
    height: 80px;
    background: rgba(168, 85, 247, 0.06);
    top: 40%;
    right: 8%;
    transform: rotate(45deg);
    border-radius: 4px;
}

.geo-ring {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(229, 90, 63, 0.08);
    border-radius: 50%;
    top: 60%;
    left: 10%;
}

.geo-diamond-1 {
    width: 100px;
    height: 100px;
    background: rgba(229, 90, 63, 0.05);
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    border-radius: 4px;
}

/* ===== Navbar ===== */
.nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-logo-text {
    color: white;
}

.nav-logo-color {
    fill: #e55a3f;
}

body.scrolled #navbar {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

body.scrolled .nav-link {
    color: #292524;
}

body.scrolled .nav-logo-text {
    color: #1c1917;
}

body.scrolled .nav-logo-color {
    fill: #e55a3f;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    color: #1c1917;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ===== Buttons ===== */
.btn-primary {
    box-shadow: 0 4px 20px rgba(229, 90, 63, 0.3);
}

.btn-secondary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reveal elements — visible for no-JS */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transform: translateY(30px);
        opacity: 0;
    }
    .reveal.revealed {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Back to Top ===== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== Selection ===== */
::selection {
    background: rgba(229, 90, 63, 0.2);
    color: #1c1917;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid #e55a3f;
    outline-offset: 2px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8ee;
}

::-webkit-scrollbar-thumb {
    background: #e5a08e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a3f;
}
