/* ============================================
   Automation & Integration Specialist
   Custom Styles — Emerald Green + Cream
   ============================================ */

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

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

body {
    background-color: #fefdf8;
    color: #064e3b;
}

::selection {
    background: #34d399;
    color: #064e3b;
}

/* ---------- Geometric Background Shapes ---------- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 243, 224, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: -100px;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(5, 150, 105, 0.06);
    border-radius: 24px;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(52, 211, 153, 0.06);
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(5, 150, 105, 0.08);
    border-radius: 50%;
    top: 75%;
    right: 10%;
}

/* ---------- Navbar ---------- */
.nav-glass {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.nav-glass.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #059669;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 24px;
    border-radius: 14px;
    border: 2px solid #059669;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fefdf8 0%, #ecfdf5 50%, #d1fae5 100%);
    z-index: 0;
}

/* ---------- Floating Cards ---------- */
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.12);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.card-float-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.card-float-2 {
    bottom: 15%;
    right: -16px;
    animation-delay: 2s;
}

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

.card-main-photo {
    position: relative;
}

.card-secondary-photo {
    border-radius: 20px;
    overflow: hidden;
}

/* ---------- Service Cards ---------- */
.service-card {
    opacity: 1;
}

.service-card.animated {
    animation: fadeUp 0.6s ease forwards;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
    color: #064e3b;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #ecfdf5;
    color: #059669;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ---------- Form Styles ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a7f3d0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    .shape-circle-1,
    .shape-circle-2,
    .shape-square-1,
    .shape-triangle-1,
    .shape-ring-1 {
        display: none;
    }
}

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