/*
Theme Name: Redstone Dynamics Özel Teması
Author: Nuri BAL
Description: .NET Sitemizden Dönüştürülen WordPress Teması
Version: 3.0
*/

/* 
    RedStone Dynamics Professional Web UI 
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Inter:wght@400;600;700&display=swap');

:root {
    --rs-primary: #D32F2F; /* RedStone Red */
    --rs-secondary: #777e81; /* Steel Blue-Gray (Base) */
    --rs-secondary-dark: #2d3133; /* Dark Slate (for high contrast headings & dark areas) */
    --rs-secondary-light: #f1f3f4; /* Light Slate */
    --rs-accent: #606C88; /* Steel Gray */
    --rs-metallic: #F8F9FA;
    --rs-white: #FFFFFF;
    --rs-black: #121212;
    --rs-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --rs-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--rs-black);
    background-color: var(--rs-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .rs-nav-link {
    font-family: 'Montserrat', sans-serif;
}

.rs-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    transition: var(--rs-transition);
    padding: 25px 0;
    background: transparent;
}

.rs-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 0;
    box-shadow: var(--rs-shadow);
    backdrop-filter: blur(15px);
}

.rs-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-logo img {
    height: 80px;
    transition: var(--rs-transition);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.rs-header.scrolled .rs-logo img {
    height: 50px;
}

.rs-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.rs-nav-link {
    text-decoration: none;
    color: var(--rs-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    position: relative;
    transition: var(--rs-transition);
}

.rs-header:not(.scrolled) .rs-nav-link {
    color: #fff; /* Hero text color compatibility */
}

.rs-header.scrolled .rs-nav-link {
    color: var(--rs-secondary-dark);
}

.rs-header:not(.scrolled) .rs-nav-link:hover, .rs-header:not(.scrolled) .rs-nav-link.active {
    color: var(--rs-primary);
}

.rs-header.scrolled .rs-nav-link:hover, .rs-header.scrolled .rs-nav-link.active {
    color: var(--rs-primary);
}

.rs-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--rs-primary);
    transition: var(--rs-transition);
}

.rs-nav-link:hover::after, .rs-nav-link.active::after {
    width: 100%;
}

/* WP Admin Bar Compatibility */
body.admin-bar .rs-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .rs-header {
        top: 46px;
    }
}

.rs-lang-btn {
    color: #fff !important;
    transition: var(--rs-transition);
}

.rs-header.scrolled .rs-lang-btn {
    color: var(--rs-secondary-dark) !important;
}

/* --- MEGA MENU --- */
.has-mega {
    position: static;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--rs-transition);
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
}

.has-mega:hover .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- HERO & SECTIONS --- */
.rs-hero {
    height: 100vh;
    background: var(--rs-secondary-dark);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(45, 49, 51, 0.9) 0%, rgba(45, 49, 51, 0.3) 100%);
    z-index: 2;
}

.rs-hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
}

.rs-hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -0.04em;
    animation: fadeInUp 1s ease-out;
}

.rs-hero p {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 45px;
    animation: fadeInUp 1.2s ease-out;
}

/* --- BUTTONS --- */
.rs-btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;
    background: var(--rs-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: var(--rs-transition);
    border: none;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%); /* Tactical look */
}

.rs-btn:hover {
    background: #fff;
    color: var(--rs-primary);
    transform: translateX(10px);
}

.rs-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    clip-path: none;
}

.rs-btn-outline:hover {
    background: #fff;
    color: var(--rs-secondary-dark);
}

/* --- GRID CARDS --- */
.rs-card {
    border: none;
    border-radius: 0;
    background: var(--rs-white);
    transition: var(--rs-transition);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.rs-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.rs-card-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: var(--rs-transition);
}

.rs-card:hover .rs-card-img {
    transform: scale(1.1);
}

/* --- FOOTER --- */
.rs-footer {
    background: var(--rs-secondary-dark);
    color: #fff;
    padding: 100px 0 40px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Footer Menu Styles */
.rs-footer ul.list-unstyled li {
    margin-bottom: 0.5rem; /* mb-2 */
}
.rs-footer ul.list-unstyled li a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.875em; /* small */
    transition: var(--rs-transition);
}
.rs-footer ul.list-unstyled li a:hover {
    opacity: 0.8;
}

/* Corporate Page Designation Style */
.rs-designation {
    display: block;
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 5px;
    margin-bottom: 0;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 991.98px) {
    /* Responsive Hero Typography */
    .rs-hero h1 {
        font-size: 2.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 20px;
    }
    
    .rs-hero p {
        font-size: 1rem !important;
        margin-bottom: 35px;
    }
    
    .rs-hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 130px;
        padding-bottom: 70px;
    }
    
    /* Stack & Center Hero Buttons on Mobile */
    .rs-hero-content .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .rs-hero-content .d-flex .rs-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }
}

/* Mobile Menu Toggle Button */
.rs-mobile-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--rs-transition);
}

.rs-header.scrolled .rs-mobile-toggle {
    color: var(--rs-secondary-dark);
}

@media (max-width: 991.98px) {
    .rs-mobile-toggle {
        display: flex;
        margin-left: auto;
    }
}

/* Mobile Menu Drawer Overlay */
.rs-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px; /* Slide-out position */
    width: 300px;
    height: 100vh;
    background: var(--rs-secondary-dark);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
}

.rs-mobile-menu.active {
    right: 0;
}

.rs-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.rs-mobile-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--rs-transition);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-mobile-close:hover {
    color: var(--rs-primary);
}

/* Mobile Nav Menu Styling */
.rs-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rs-mobile-nav-list li {
    margin: 0;
}

.rs-mobile-nav-list li a {
    text-decoration: none !important;
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--rs-transition);
    display: block;
    padding: 5px 0;
}

.rs-mobile-nav-list li a:hover,
.rs-mobile-nav-list li.current-menu-item > a {
    color: var(--rs-primary);
}

/* Nested Submenu support */
.rs-mobile-nav-list .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-mobile-nav-list .sub-menu li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: none;
}

/* Mobile Menu Backdrop */
.rs-mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rs-mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* --- INTRO SCREEN STYLES --- */
body.intro-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.rs-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1b1d22 0%, #0c0d0f 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.rs-intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.rs-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

/* Skip button */
.rs-intro-skip {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--rs-transition);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rs-intro-skip:hover {
    border-color: var(--rs-primary);
    color: #FFF;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
}

/* Eagle Container Animation */
.eagle-container {
    width: 240px;
    height: 160px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.1) translate(-200vw, -100vh) rotate(-30deg);
    animation: flyIn 3.2s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.eagle-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Wing flappings */
.left-wing {
    transform-origin: 98px 32px;
    animation: flap-left 0.16s ease-in-out infinite alternate;
}
.right-wing {
    transform-origin: 102px 32px;
    animation: flap-right 0.16s ease-in-out infinite alternate;
}

@keyframes flap-left {
    0% { transform: rotate(-35deg) scaleY(0.9); }
    100% { transform: rotate(15deg) scaleY(1.1); }
}
@keyframes flap-right {
    0% { transform: rotate(35deg) scaleY(0.9); }
    100% { transform: rotate(-15deg) scaleY(1.1); }
}

/* Landed States */
.eagle-wrapper.landed .left-wing {
    animation: none !important;
    transform: rotate(52deg) scaleY(0.68) translate(20px, -6px);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.eagle-wrapper.landed .right-wing {
    animation: none !important;
    transform: rotate(-52deg) scaleY(0.68) translate(-20px, -6px);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.eagle-container.landed {
    animation: landEagle 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Flight Animation paths */
@keyframes flyIn {
    0% {
        transform: scale(0.15) translate(-150vw, -80vh) rotate(-25deg);
    }
    30% {
        transform: scale(0.5) translate(40vw, -30vh) rotate(15deg);
    }
    60% {
        transform: scale(1.0) translate(-20vw, 10vh) rotate(-10deg);
    }
    85% {
        transform: scale(1.35) translate(0, -15px) rotate(0deg);
    }
    100% {
        transform: scale(1.2) translate(0, 0) rotate(0deg);
    }
}

@keyframes landEagle {
    0% {
        transform: scale(1.2) translate(0, 0);
    }
    100% {
        transform: scale(1.0) translate(0, 10px);
        filter: drop-shadow(0 0 15px rgba(211, 47, 47, 0.5));
    }
}

/* Quote Box */
.rs-intro-quote-box {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 160px; /* Prevent layout shift */
}

.quote-line {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFF;
    margin: 0;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    text-transform: uppercase;
}

/* Third line gets the main color style */
.quote-line.line-3 {
    color: var(--rs-primary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

/* Sequential display delays */
.rs-intro-quote-box.visible .line-1 {
    opacity: 1;
    transform: translateY(0);
}
.rs-intro-quote-box.visible .line-2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}
.rs-intro-quote-box.visible .line-3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 2.4s;
}

/* Enter button wrapper */
.rs-enter-btn-wrapper {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.rs-enter-btn-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.rs-enter-btn-wrapper .rs-btn {
    box-shadow: 0 0 25px rgba(211, 47, 47, 0.3);
}
.rs-enter-btn-wrapper .rs-btn:hover {
    box-shadow: 0 0 35px rgba(211, 47, 47, 0.6);
}

/* Responsive Quote text size */
@media (max-width: 768px) {
    .quote-line {
        font-size: 1.15rem;
        letter-spacing: 0.05em;
    }
    .eagle-container {
        width: 180px;
        height: 120px;
    }
}

