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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* === GEOMETRIC SHAPES === */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #34d399;
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #6ee7b7;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #a7f3d0;
    top: 20%;
    left: 8%;
    animation: spin 20s linear infinite;
    opacity: 0.08;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: #34d399;
    top: 60%;
    right: 10%;
    animation: spin 15s linear infinite;
    opacity: 0.06;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: #6ee7b7;
    top: 35%;
    right: 25%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
    opacity: 0.1;
}

.shape-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #a7f3d0;
    bottom: 20%;
    right: 5%;
    animation: float 9s ease-in-out infinite reverse;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === HEADER === */
#header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background: rgba(254, 252, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* === MOBILE MENU === */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-link:hover {
    padding-left: 12px;
    color: #059669;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 6px;
}

/* === 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, #065f46, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .shape-circle-1 { width: 200px; height: 200px; }
    .shape-circle-2 { width: 100px; height: 100px; }
    .shape-triangle { display: none; }
    .shape-square { width: 60px; height: 60px; }
    .shape-diamond { width: 40px; height: 40px; }
    .shape-ring { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .shape-circle-1 { width: 280px; height: 280px; }
}
