/* ========================================
   Cargo Services — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

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

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

.shape-circle-2 {
    bottom: 20%;
    left: 3%;
    width: 250px;
    height: 250px;
    background: #f59e0b;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 40%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: #059669;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    top: 60%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f59e0b;
    animation: float 7s ease-in-out infinite;
}

.shape-ring {
    top: 25%;
    left: 15%;
    width: 180px;
    height: 180px;
    border: 4px solid #059669;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ========================================
   Hero Grid Pattern
   ======================================== */
.hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========================================
   Floating Cards (Hero)
   ======================================== */
.floating-card {
    animation: card-float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: 1.5s; }
.floating-card:nth-child(3) { animation-delay: 3s; }
.floating-card:nth-child(4) { animation-delay: 4.5s; }

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

/* ========================================
   Navigation
   ======================================== */
.nav-glass {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    transition: all 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px 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: #059669;
    transition: width 0.3s ease;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #059669;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #059669;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

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

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

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

.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f59e0b;
    color: #78350f;
    padding: 1.125rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f59e0b;
}

.btn-cta:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* ========================================
   Input Fields
   ======================================== */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:hover {
    border-color: #a7f3d0;
}

.input-field:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

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

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

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

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

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.mobile-menu-link {
    display: block;
    padding: 1rem 0;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #059669;
}

.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) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-grid-pattern {
        display: none;
    }
}
