/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

/* ========== GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

/* Hero shapes */
.geo-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -120px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    top: 30%;
    right: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.06);
    bottom: 15%;
    left: 15%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    top: 20%;
    right: 25%;
    transform: rotate(45deg);
    animation: float-medium 5s ease-in-out infinite;
}

.geo-diamond-2 {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    bottom: 25%;
    right: 35%;
    transform: rotate(30deg);
    animation: float-medium 7s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(45, 212, 191, 0.07);
    top: 40%;
    left: 8%;
    animation: float-slow 9s ease-in-out infinite;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(45, 212, 191, 0.08);
    bottom: 10%;
    right: 10%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

/* About/CTA section shapes */
.geo-circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-diamond-3 {
    width: 100px;
    height: 100px;
    background: rgba(45, 212, 191, 0.06);
    border-radius: 16px;
    bottom: 10%;
    left: 5%;
    transform: rotate(20deg);
    animation: float-medium 8s ease-in-out infinite;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(45, 212, 191, 0.05);
    top: 15%;
    left: 30%;
    animation: float-slow 11s ease-in-out infinite reverse;
}

.geo-circle-5 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    left: -80px;
    animation: float-slow 9s ease-in-out infinite;
}

.geo-diamond-4 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    top: 10%;
    right: 15%;
    transform: rotate(45deg);
    animation: float-medium 6s ease-in-out infinite reverse;
}

/* ========== ANIMATIONS ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

/* ========== HERO PHOTO ACCENT ========== */
.hero-photo-accent {
    opacity: 0.85;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ========== MOBILE MENU ========== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #9fb7d3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #789bc2;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #1e3a5f;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}
