/* ============================================
   The Pierre 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 Decorative Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #2DD4BF;
    border-radius: 50%;
    top: 15%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: #0B1D3A;
    border-radius: 50%;
    top: 45%;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #2DD4BF;
    top: 70%;
    right: 5%;
    animation: rotate 20s linear infinite;
}

.square {
    width: 150px;
    height: 150px;
    background: #0B1D3A;
    bottom: 20%;
    left: 8%;
    animation: rotate 15s linear infinite;
}

.circle-3 {
    width: 180px;
    height: 180px;
    background: #2DD4BF;
    border-radius: 50%;
    top: 30%;
    left: 40%;
    animation: float 12s ease-in-out infinite;
}

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

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

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

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 30px rgba(11, 29, 58, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

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

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
}

/* ============================================
   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, #0B1D3A, #2DD4BF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Area Cards
   ============================================ */
.area-card {
    position: relative;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.area-card:hover::after {
    border-color: rgba(45, 212, 191, 0.5);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 29, 58, 0.1);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-left.hidden-reveal {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-scale {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-scale.hidden-reveal {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Reduced motion — ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal, .reveal-left, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Form Styles
   ============================================ */
select option:first-child {
    color: #94a3b8;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .geo-shape.circle-3 {
        display: none;
    }
}
