/* ===== Custom Styles for Trust the Ability Family Counseling ===== */

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

/* ===== Geometric Animations ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 320px;
    height: 320px;
    background: white;
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation-delay: -5s;
}

.geo-circle-3 {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation-delay: -10s;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: white;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: white;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation-delay: -8s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid white;
    top: 40%;
    left: 8%;
    animation-delay: -7s;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border: 20px solid white;
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
    animation-delay: -12s;
    opacity: 0.08;
}

.geo-circle-4 {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-rect-3 {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.03);
    bottom: 50px;
    left: 50px;
    transform: rotate(30deg);
    animation-delay: -6s;
}

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

/* Dots pattern */
.dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

.nav-logo-text {
    transition: color 0.3s ease;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

nav.scrolled .nav-logo-text {
    color: #2C2014;
}

nav.scrolled .nav-link {
    color: #56402C;
}

nav.scrolled .nav-link:hover {
    color: #C1694F;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C1694F, #E0BA78);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ===== Approach Cards ===== */
.approach-card {
    position: relative;
}

.approach-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.approach-card:hover::after {
    border-color: rgba(255,255,255,0.2);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 80px;
    line-height: 1;
    color: #F5E0D4;
    z-index: 0;
}

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

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

.reveal.visible {
    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; }

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

/* ===== Selection ===== */
::selection {
    background: #C1694F;
    color: white;
}

/* ===== Focus visible ===== */
*:focus-visible {
    outline: 2px solid #C1694F;
    outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .geo-circle-1 { width: 200px; height: 200px; }
    .geo-circle-2 { width: 120px; height: 120px; }
    .geo-circle-3 { width: 70px; height: 70px; }
    .geo-rect-1 { width: 80px; height: 80px; }
    .geo-triangle-1 { border-left-width: 50px; border-right-width: 50px; border-bottom-width: 80px; }
    .geo-ring-1 { width: 120px; height: 120px; border-width: 12px; }
}
