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

:root {
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --slate-950: #080f1a;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--slate-950);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.nav-header {
    background: rgba(8, 15, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(8, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link, .mobile-nav-link {
    position: relative;
}

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

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

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(45, 212, 191, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--teal-400);
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #0f766e;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* ===== INPUTS ===== */
.input-field {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: #64748b;
}

.input-field:focus {
    outline: none;
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.input-field option {
    background: var(--slate-900);
    color: #fff;
}

textarea.input-field {
    resize: none;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all 0.4s ease;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

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

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

/* ===== HERO GRID PATTERN ===== */
.hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(45, 212, 191, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.cta-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(45, 212, 191, 0.15);
    border-radius: 50%;
    top: 15%;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.08);
    top: 40%;
    left: 10%;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.15);
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 60px;
    border: 2px solid rgba(45, 212, 191, 0.1);
    border-radius: 8px;
    top: 75%;
    left: 20%;
    transform: rotate(-10deg);
    animation: spin 15s linear infinite reverse;
}

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

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

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, #2dd4bf, #5eead4, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem !important;
    }
    
    .hero-grid-pattern {
        background-size: 40px 40px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
