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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d44a1e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83914;
}

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

.geo-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 74, 30, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: -5%;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(232, 196, 138, 0.2);
    border-radius: 20px;
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 74, 30, 0.1);
    top: 60%;
    right: 10%;
    transform: rotate(-20deg);
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 196, 138, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
}

.geo-rect-1 {
    width: 80px;
    height: 160px;
    background: rgba(212, 74, 30, 0.08);
    border-radius: 16px;
    bottom: 10%;
    right: 20%;
    transform: rotate(30deg);
}

/* ===== Hero Geometric Decorations ===== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.hero-geo-2 {
    width: 200px;
    height: 200px;
    background: rgba(253, 224, 71, 0.15);
    border-radius: 30px;
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
}

.hero-geo-3 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid rgba(255, 255, 255, 0.06);
    bottom: 30%;
    left: 8%;
    transform: rotate(-15deg);
}

.hero-geo-4 {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: 15%;
    right: 15%;
}

.hero-geo-5 {
    width: 100px;
    height: 100px;
    background: rgba(253, 224, 71, 0.1);
    border-radius: 20px;
    top: 40%;
    left: 15%;
    transform: rotate(25deg);
}

/* ===== Button Styles ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d44a1e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #b83914;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 74, 30, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #d44a1e;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #d44a1e;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #d44a1e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 74, 30, 0.25);
}

/* Hero Buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: white;
    color: #d44a1e;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: #fefce8;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== Navbar ===== */
.nav-header {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d44a1e;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    position: relative;
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f0e8;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ===== Hero Animations ===== */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subheadline {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Cards ===== */
.service-card {
    perspective: 1000px;
}

.service-card:hover .service-card-inner {
    transform: translateY(-8px);
}

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

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

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

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

.hero-geo-2 {
    animation: float 6s ease-in-out infinite;
}

.hero-geo-4 {
    animation: floatReverse 8s ease-in-out infinite;
}

.hero-geo-5 {
    animation: float 7s ease-in-out infinite;
}

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

/* ===== Utility ===== */
.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;
}
