/* ==========================================================================
   Rockwell Company: Efsanevi Sinematik Açılış & Geçiş Motoru (Intro CSS)
   Lüks, Prestijli, Altın & Kozmik Lacivert Başyapıt
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&display=swap');

#rockwell-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at center, #0a142c 0%, #040814 55%, #010307 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    perspective: 1200px;
}

#rockwell-intro-overlay.intro-hidden {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(8px);
    pointer-events: none;
}

/* ==========================================================================
   1. ARKA PLAN EFEKTLERİ (PARTICLES & GOD RAYS)
   ========================================================================== */

/* Altın Parçacık Tuvali (Canvas) */
.intro-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Prestij Izgarası */
.intro-ambient-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.85) 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,0.85) 10%, transparent 75%);
    pointer-events: none;
    z-index: 2;
}

/* İlahi Işık Hüzmeleri (Rotating God Rays) */
.intro-god-rays {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg, 
        rgba(212, 175, 55, 0.12) 0deg 8deg, 
        transparent 8deg 24deg
    );
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 15%, transparent 68%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 15%, transparent 68%);
    animation: introRaysSpin 65s linear infinite;
    pointer-events: none;
    z-index: 2;
    filter: blur(1px);
}

/* Merkez Enerji Aurası */
.intro-glow-pulse {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(184, 134, 11, 0.12) 42%, transparent 70%);
    filter: blur(45px);
    animation: introAuraPulse 3.5s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   2. MÜHÜR KAPSAYICI & ASTRONOMİK ÇEMBERLER
   ========================================================================== */

.intro-seal-wrapper {
    position: relative;
    width: 175px;
    height: 175px;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: introSealEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Enerji Şok Dalgaları */
.intro-shockwave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    pointer-events: none;
    opacity: 0;
}

.intro-shockwave-1 {
    animation: shockwavePulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.intro-shockwave-2 {
    animation: shockwavePulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s infinite;
}

/* Astronomik Yörünge Halkaları */
.intro-orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Dış Yörünge (Saat Yönünde Yavaş Dönüş) */
.intro-orbit-outer {
    inset: -28px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    animation: introSpinClockwise 32s linear infinite;
}

/* Pusula Elmasları (4 Cardinal Points) */
.orbit-diamond {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fef08a;
    box-shadow: 0 0 8px #d4af37, 0 0 14px rgba(212, 175, 55, 0.8);
    transform: rotate(45deg);
}

.diamond-top {
    top: -3.5px;
    left: calc(50% - 3px);
}

.diamond-right {
    top: calc(50% - 3px);
    right: -3.5px;
}

.diamond-bottom {
    bottom: -3.5px;
    left: calc(50% - 3px);
}

.diamond-left {
    top: calc(50% - 3px);
    left: -3.5px;
}

/* İç Karşıt Yörünge (Ters Yön Dönüş) */
.intro-orbit-inner {
    inset: -14px;
    border: 1px dashed rgba(212, 175, 55, 0.5);
    animation: introSpinCounter 22s linear infinite;
}

/* Yörüngede Dönen Altın Işık Küresi */
.orbit-bead {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px #fef08a, 0 0 22px #d4af37;
}

/* ==========================================================================
   3. KUSURSUZ MÜHÜR ÇERÇEVESİ (SIFIR TAŞMA, PRESTİJ MİMARİSİ)
   ========================================================================== */

.intro-seal-frame {
    position: relative;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    overflow: hidden; /* Kesinlikle dışarı taşma yapamaz! */
    border: 3.5px solid #d4af37;
    box-shadow: 
        0 0 35px rgba(212, 175, 55, 0.6),
        0 0 70px rgba(212, 175, 55, 0.25),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    background: #060e22;
    z-index: 6;
}

.intro-seal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    filter: contrast(1.08) brightness(1.02);
}

/* Kusursuz Lazer Keskinliğinde Metalik Altın Işık Hüzmesi (Yalnızca Daire İçinde) */
.intro-gold-sheen {
    position: absolute;
    top: -50%;
    left: -180%;
    width: 350%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 46%,
        rgba(254, 240, 138, 0.55) 49%,
        rgba(255, 255, 255, 0.85) 51%,
        rgba(212, 175, 55, 0.6) 53%,
        transparent 60%
    );
    transform: rotate(0deg);
    animation: laserGoldSheen 3.2s cubic-bezier(0.3, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 7;
}

/* Hollywood Lens Flare Parıltı Yıldızı (Mühür Köşesinde Canlı Işıma) */
.intro-flare-star {
    position: absolute;
    top: 5px;
    right: 18px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: flarePulse 3.2s ease-in-out infinite;
}

.flare-core {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px #ffffff, 0 0 24px 6px #fef08a, 0 0 40px 10px #d4af37;
}

.flare-ray {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    border-radius: 9999px;
}

.flare-ray-h {
    width: 34px;
    height: 1.5px;
}

.flare-ray-v {
    width: 1.5px;
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

/* ==========================================================================
   4. SİNEMATİK TİPOGRAFİ VE METİN GRUBU
   ========================================================================== */

.intro-text-group {
    text-align: center;
    z-index: 6;
    animation: introTextEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0;
    transform: translateY(22px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-crest-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    width: 280px;
}

.crest-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.crest-diamond {
    color: #d4af37;
    font-size: 0.75rem;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
    animation: diamondGlow 2.5s ease-in-out infinite alternate;
}

.intro-company-title {
    font-family: 'Cinzel', 'Plus Jakarta Sans', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: 0.38em;
    text-indent: 0.38em;
    text-transform: uppercase;
    margin: 0 0 0.6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff6cc 40%, #d4af37 75%, #aa8012 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
    animation: introTitleGleam 4s ease-in-out infinite;
}

.intro-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.sub-line {
    width: 40px;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
}

.intro-company-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: #cbd5e1;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.intro-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.38rem 1.6rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), inset 0 0 10px rgba(212, 175, 55, 0.08);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fef08a;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
}

.badge-sparkle {
    color: #d4af37;
    font-size: 0.7rem;
    animation: sparkleSpin 3s linear infinite;
}

/* ==========================================================================
   5. GEÇ BUTONU
   ========================================================================== */

.intro-skip-btn {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    background: rgba(10, 20, 44, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.55rem 1.4rem;
    border-radius: 9999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.intro-skip-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #fef08a;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. GELİŞMİŞ KEYFRAME ANİMASYONLARI
   ========================================================================== */

/* God Rays Dönüşü */
@keyframes introRaysSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Aura Nabız */
@keyframes introAuraPulse {
    0% { transform: scale(0.88); opacity: 0.5; }
    100% { transform: scale(1.22); opacity: 0.95; }
}

/* Şok Dalgası */
@keyframes shockwavePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Yörünge Dönüşleri */
@keyframes introSpinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes introSpinCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Mühür Sahneye Giriş */
@keyframes introSealEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Lazer Keskinliğinde Işık Hüzmesi (Sheen) */
@keyframes laserGoldSheen {
    0% {
        left: -180%;
    }
    45%, 100% {
        left: 140%;
    }
}

/* Lens Flare Nabız */
@keyframes flarePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    40%, 60% {
        opacity: 1;
        transform: scale(1.35) rotate(15deg);
    }
}

/* Başlık ve Metin Girişi */
@keyframes introTextEnter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes diamondGlow {
    0% { opacity: 0.5; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 10px #fef08a); }
}

@keyframes introTitleGleam {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    }
    50% {
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.75));
    }
}

@keyframes sparkleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   7. MOBİL UYUMLULUK
   ========================================================================== */
@media (max-width: 768px) {
    .intro-seal-wrapper,
    .intro-seal-frame {
        width: 140px;
        height: 140px;
    }

    .intro-orbit-outer {
        inset: -20px;
    }

    .intro-orbit-inner {
        inset: -10px;
    }

    .intro-company-title {
        font-size: 1.8rem;
        letter-spacing: 0.22em;
        text-indent: 0.22em;
    }

    .intro-company-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.16em;
        text-indent: 0.16em;
    }

    .intro-skip-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.45rem 1.1rem;
        font-size: 0.75rem;
    }
}
