/* ========================================
   Ruelle Building — Custom Styles
   ======================================== */

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

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

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

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    border-radius: 50%;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.1);
    top: 30%;
    left: 5%;
    border-radius: 20px;
    transform: rotate(45deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(251, 191, 36, 0.04);
    top: 60%;
    right: 8%;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(74, 222, 128, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 45%;
    right: 3%;
    opacity: 0.5;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(6, 15, 38, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 222, 128, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

.mobile-nav-link {
    display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4ade80;
    color: #060f26;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #c5d3e8;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(160, 185, 210, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #4ade80;
    color: #4ade80;
    transform: translateY(-2px);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a1a3f;
    color: #4ade80;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-dark:hover {
    background: #0f2558;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 26, 63, 0.4);
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0a1a3f;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #0a1a3f;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-dark:hover {
    background: #0a1a3f;
    color: #4ade80;
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #060f26 0%, #0a1a3f 50%, #0f2558 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    animation: fadeInRight 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-float-card {
    animation: float 4s ease-in-out infinite;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    animation: fadeInUp 0.6s ease 0.8s forwards;
    opacity: 0;
}

/* ========================================
   Section Styles
   ======================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ade80;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #4ade80;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: #7896ca;
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.7;
}

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

/* ========================================
   About Section
   ======================================== */
.about-img-grid {
    position: relative;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Contact Form
   ======================================== */
.input-field {
    background: rgba(10, 26, 63, 0.6);
    border: 1px solid rgba(120, 150, 202, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #5277bb;
}

.input-field:focus {
    border-color: #4ade80;
    background: rgba(10, 26, 63, 0.8);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.input-field option {
    background: #0a1a3f;
    color: #ffffff;
}

.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-block;
    }
    
    .shape-circle-1,
    .shape-circle-2,
    .shape-square-1,
    .shape-triangle-1,
    .shape-dots {
        display: none;
    }
}

/* ========================================
   Utility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
