/* ===== CUSTOM STYLES ===== */

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

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

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

/* ===== HERO SHAPES ===== */
.shape-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-square {
    position: absolute;
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(45deg);
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.08;
    border-style: solid;
}

.shape-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.shape-dots {
    position: absolute;
    opacity: 0.06;
    background-image: radial-gradient(circle, white 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #5eead4;
    top: -150px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #99f6e4;
    bottom: 10%;
    left: -80px;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: #2dd4bf;
    top: 30%;
    right: 10%;
    animation: float3 7s ease-in-out infinite;
}

.shape-4 {
    border-width: 0 50px 80px 50px;
    border-color: transparent transparent rgba(255,255,255,0.6) transparent;
    top: 20%;
    left: 8%;
    animation: float1 9s ease-in-out infinite reverse;
}

.shape-5 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 5%;
    animation: float2 11s ease-in-out infinite;
}

.shape-6 {
    width: 160px;
    height: 160px;
    bottom: 30%;
    left: 5%;
    animation: float3 6s ease-in-out infinite;
}

.shape-7 {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    top: -100px;
    left: -100px;
    animation: float1 12s ease-in-out infinite;
}

.shape-8 {
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    bottom: -60px;
    right: 5%;
    animation: float2 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.03); }
}

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

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(50deg); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #5eead4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* ===== PROJECT CARDS ===== */
.project-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: #ccfbf1;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-1 { width: 250px; height: 250px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 60px; height: 60px; }
    .shape-5 { width: 100px; height: 100px; }
    .shape-6 { width: 80px; height: 80px; }
}
