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

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

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

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

#navbar.scrolled .nav-link {
    color: #4f111f;
}

#navbar.scrolled .font-playfair {
    color: #4f111f;
}

/* ========== HERO ========== */
.hero-photo-wrap {
    position: absolute;
    inset: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(49, 10, 17, 0.88) 0%,
        rgba(79, 17, 31, 0.82) 40%,
        rgba(106, 22, 41, 0.75) 100%
    );
}

/* ========== GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: #ff96a8;
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: #ffdce4;
    border-radius: 50%;
    bottom: -80px;
    left: 10%;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #ffc0cc;
    border-radius: 50%;
    top: 30%;
    left: 5%;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: #ff6480;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    opacity: 0.08;
}

.geo-rect-2 {
    width: 120px;
    height: 120px;
    background: #fad0d9;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    opacity: 0.1;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #ff96a8;
    top: 60%;
    left: 8%;
    opacity: 0.07;
}

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

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

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

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -10px); }
    66% { transform: translate(-10px, 15px); }
}

.geo-circle-1 { animation: float-slow 8s ease-in-out infinite; }
.geo-circle-2 { animation: float-medium 6s ease-in-out infinite; }
.geo-circle-3 { animation: float-fast 5s ease-in-out infinite; }
.geo-rect-1 { animation: float-medium 7s ease-in-out infinite; }
.geo-rect-2 { animation: float-slow 9s ease-in-out infinite; }
.geo-triangle { animation: drift 10s ease-in-out infinite; }

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

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

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

/* ========== MOBILE MENU ANIMATION ========== */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
    margin-left: 0;
    margin-right: 0;
}

/* ========== GEO PATTERN (Experience section) ========== */
.geo-pattern {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 150, 168, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 128, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 192, 204, 0.3) 0%, transparent 60%);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #b52340;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8c1a33;
}

/* ========== SELECTION ========== */
::selection {
    background: #ffdce4;
    color: #4f111f;
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
    outline: 2px solid #db3d5b;
    outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    .geo-rect-1 {
        width: 100px;
        height: 100px;
    }
    .geo-triangle {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }
}
