/* ===== Custom Styles for Gibbs Brothers Construction ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 4px solid #325732;
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float-shape 8s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #325732;
    top: 25%;
    right: 15%;
    transform: rotate(45deg);
    animation: float-shape 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 #325732;
    bottom: 20%;
    left: 5%;
    animation: float-shape 7s ease-in-out infinite;
}

.geo-circle-2 {
    width: 80px;
    height: 80px;
    background: #4d8a4d;
    border-radius: 50%;
    bottom: 30%;
    right: 25%;
    animation: float-shape 5s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 200px;
    height: 60px;
    background: #325732;
    top: 60%;
    left: 10%;
    transform: rotate(-15deg);
    animation: float-shape 9s ease-in-out infinite;
}

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

.geo-square-1 { --rotate: 45deg; }
.geo-rect-1 { --rotate: -15deg; }

/* ===== Floating Stat Cards ===== */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.floating-card.card-stats {
    animation-delay: 0s;
}

.floating-card.card-projects {
    animation-delay: 1s;
}

.floating-card.card-location {
    animation-delay: 2s;
}

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

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #6ea86e, #325732);
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

.service-card:hover::before {
    height: 100%;
}

/* ===== Project Cards ===== */
.project-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

#navbar.scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Input Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #325732 !important;
    box-shadow: 0 0 0 3px rgba(50, 87, 50, 0.1);
}

/* ===== Custom Selection ===== */
::selection {
    background: #325732;
    color: #fafaf7;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card.card-location {
        display: none;
    }
    
    .floating-card.card-projects {
        top: -10px;
        right: 0;
    }
    
    .floating-card.card-stats {
        bottom: -4px;
        left: -4px;
    }
}

@media (max-width: 640px) {
    .geo-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
    
    .geo-rect-1 {
        width: 100px;
        height: 30px;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar, .floating-card, .geo-shape {
        display: none;
    }
}
