/* ============================================
   Rezaian MD — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.geo-triangle-1 {
    top: 40%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(91, 44, 111, 0.05);
    transform: rotate(15deg);
}

.geo-square-1 {
    top: 60%;
    left: 3%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(245, 158, 11, 0.1);
    transform: rotate(45deg);
}

.geo-dots {
    top: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(91, 44, 111, 0.1) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
}

/* --- Floating Cards --- */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

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

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

/* --- Scroll Reveal (progressive enhancement) --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(91, 44, 111, 0.08);
}

/* --- Mobile Menu --- */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
}

/* --- Form Focus Styles --- */
input:focus,
textarea:focus {
    outline: none;
}

/* --- Selection --- */
::selection {
    background: rgba(91, 44, 111, 0.15);
    color: #1C0D24;
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
    .floating-card-3 {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .floating-card-3 {
        display: block;
    }
}
