/* ============================================
   Kaptan Erol Geldeç — Kişisel Web Sitesi
   styles.css — Ana stil dosyası
   ============================================ */

/* ===== GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: #030f1a;
    color: #d9e2ec;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #061a2e; }
::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b8943f; }

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030f1a;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-compass {
    width: 80px;
    height: 80px;
    animation: compassSpin 2s ease-in-out infinite;
}
@keyframes compassSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.nav-glass {
    background: rgba(3, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.4s ease;
}
.nav-glass.scrolled {
    background: rgba(3, 15, 26, 0.95);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.nav-link {
    position: relative;
    color: #9fb3c8;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}
.nav-link:hover { color: #c9a84c; }
.nav-link:hover::after { width: 100%; }
.nav-link.active-link { color: #c9a84c; }

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 74, 110, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(12, 45, 72, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, #030f1a 0%, #061a2e 40%, #0c2d48 70%, #030f1a 100%);
}

/* Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--opacity); transform: scale(1); }
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle var(--duration) ease-in-out infinite;
}
@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    25% { opacity: var(--opacity); }
    50% { transform: translate(var(--tx), var(--ty)) rotate(180deg); opacity: var(--opacity); }
    75% { opacity: var(--opacity); }
}

/* Hero text animations */
.hero-title {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1.2s ease-out 0.5s forwards;
}
.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1.2s ease-out 0.8s forwards;
}
.hero-line {
    width: 0;
    animation: lineExpand 1.5s ease-out 1s forwards;
}
.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1.2s ease-out 1.2s forwards;
}
.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1.2s ease-out 1.5s forwards;
}
@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes lineExpand {
    to { width: 120px; }
}

/* Compass rose */
.compass-rose {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.03;
    animation: compassRotateSlow 120s linear infinite;
}
@keyframes compassRotateSlow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Wave */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}
.wave svg {
    display: block;
    width: 100%;
    height: 100%;
}
.wave-1 { animation: wave 8s linear infinite; opacity: 0.3; }
.wave-2 { animation: wave 12s linear infinite reverse; opacity: 0.2; bottom: 5px; }
.wave-3 { animation: wave 16s linear infinite; opacity: 0.15; bottom: 10px; }
@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 10;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTION REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    margin: 0 auto;
}

/* ===== ANCHOR ICON ===== */
.anchor-icon {
    display: inline-block;
    animation: anchorFloat 3s ease-in-out infinite;
}
@keyframes anchorFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, #c9a84c, transparent);
    transform: translateX(-50%);
}
.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #c9a84c;
    background: #030f1a;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
.timeline-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #c9a84c;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.timeline-dot:hover::after { opacity: 1; }

/* ===== STAT COUNTER ===== */
.stat-card {
    background: rgba(12, 45, 72, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-5px);
}
.stat-card:hover::before { opacity: 1; }

/* ===== SKILL BAR ===== */
.skill-bar-bg {
    background: rgba(12, 45, 72, 0.4);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #fde047);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* ===== GLOWING TEXT ===== */
.text-glow {
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

/* ===== QUOTE ===== */
.quote-section {
    position: relative;
}
.quote-section::before {
    content: '\201C';
    position: absolute;
    top: -40px;
    left: -10px;
    font-size: 150px;
    font-family: 'Playfair Display', serif;
    color: rgba(201, 168, 76, 0.08);
    line-height: 1;
}

/* ===== LIGHTHOUSE BEAM ===== */
.lighthouse-beam {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.1), transparent);
    transform: translateX(-50%);
    animation: beamPulse 4s ease-in-out infinite;
}
@keyframes beamPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== GOLDEN BORDER CARD ===== */
.golden-card {
    position: relative;
    background: rgba(6, 26, 46, 0.6);
    border: 1px solid rgba(201, 168, 76, 0.15);
    transition: all 0.5s ease;
}
.golden-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), transparent 50%, rgba(201, 168, 76, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.golden-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.golden-card:hover::before { opacity: 1; }

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c9a84c, #b8943f);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.magnetic-btn:hover::before { opacity: 1; }
.magnetic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}
.magnetic-btn span { position: relative; z-index: 1; }

/* ===== WATER RIPPLE ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.2);
    animation: rippleExpand 4s ease-out infinite;
}
@keyframes rippleExpand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 300px; height: 300px; opacity: 0; margin: -150px; }
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ===== MOBILE NAV ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ===== FLOATING BADGE ===== */
.floating-badge {
    animation: badgeFloat 6s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== PROGRESS LINE TOP ===== */
.progress-line {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, #fde047);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ===== SECTION BG PATTERNS ===== */
.pattern-dots {
    background-image: radial-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== IMAGE PARALLAX CONTAINER ===== */
.parallax-img {
    transition: transform 0.1s linear;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .compass-rose { display: none; }
    .timeline-line { left: 20px; }
    .timeline-dot { left: 20px; }
}
