:root {
    --primary: #1a2a44;
    /* Dark Navy from logo */
    --accent: #f38b20;
    /* Orange from logo */
    --accent-light: #fff5e9;
    --slate: #4a5568;
    --light: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --border: rgba(26, 42, 68, 0.1);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Default Fonts (Luxury / IBM Corporate) */
    --font-heading: 'IBM Plex Serif', serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-family: var(--font-body);
}



#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfdfd;
    z-index: 10001; /* Above splash */
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    pointer-events: none;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfdfd;
    z-index: 20000; /* Extremely high to cover everything */
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out;
}

#splash-screen video {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

body.loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

body.exiting #page-loader {
    opacity: 1;
    visibility: visible;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Luxury Header Styles with Refined Brand Split */
header {
    background: linear-gradient(115deg, var(--white) 0%, var(--white) 30%, var(--primary) 30.1%, var(--primary) 100%);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 85px;
    padding: 0;
    display: block;
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 45px;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent);
}

.header-cta .btn {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    padding: 8px 25px;
    border-radius: 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.header-cta .btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Slider Styles */


/* Luxury Hero Styles */
/* Luxury Hero Styles Consolidated */
.hero-slider {
    height: 100vh;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2.5s ease-in-out, visibility 2.5s;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide.exiting {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 17, 40, 0.8) 0%, rgba(10, 17, 40, 0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 10;
    /* Above the overlay */
    max-width: 1100px;
    text-align: left;
    margin: 0;
    color: var(--white) !important;
}

.hero-slider h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: capitalize;
    letter-spacing: -2px;
    color: var(--white) !important;
}

.hero-slider p {
    font-size: 1.4rem;
    max-width: 600px;
    font-weight: 300;
    margin-bottom: 50px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--light) !important;
}

.hero-slider .btn {
    padding: 15px 45px;
    border-radius: 0;
    background: var(--accent);
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

.animate {
    opacity: 0;
}

/* Unified Animation Logic */

/* Default State: Hidden */
.animate {
    opacity: 0;
    transform: translateY(30px);
}

/* Base Animation Keyframes */
@keyframes fadeInUpContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutContent {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Active State - Entrance Animations */
/* Delays ensure the background image (2.5s transition) appears first */

.slide.active .animate-title {
    animation: fadeInUpContent 1.0s ease both 2.0s;
}

.slide.active .animate-text {
    animation: fadeInUpContent 1.0s ease both 2.3s;
}

.slide.active .animate-btn {
    animation: fadeInUpContent 1.0s ease both 2.6s;
}

/* Exiting State - Immediate Exit */
.slide.exiting .animate-title,
.slide.exiting .animate-text,
.slide.exiting .animate-btn {
    animation: fadeOutContent 0.5s ease forwards 0s;
}




.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: #e67a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 139, 32, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.96);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-title .underline {
    width: 80px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto;
}

/* High-End Bento Services Section */
.services {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-gap: 15px !important;
        margin-bottom: 30px !important;
    }
}

.bento-item {
    position: relative;
    background: var(--white);
    border-radius: 0;
    /* Sharp corners for luxury */
    padding: 40px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: none;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    text-decoration: none !important;
}

.bento-item:nth-child(1) {
    grid-column: span 12;
    min-height: 320px;
    background: var(--primary);
    color: var(--light);
}

.bento-item:nth-child(1) h3 {
    color: var(--white);
    opacity: 0.95;
}

.bento-item:nth-child(1) p {
    color: var(--light);
    opacity: 0.8;
}

.bento-item:nth-child(2) {
    grid-column: span 6;
}

.bento-item:nth-child(3) {
    grid-column: span 6;
}

@media (max-width: 992px) {
    .bento-item {
        grid-column: span 12 !important;
        min-height: auto;
        padding: 20px 15px !important;
    }

    .bento-number {
        font-size: 2.5rem !important;
        top: 5px !important;
        right: 5px !important;
        opacity: 0.05 !important;
    }

    .bento-item:nth-child(1) {
        min-height: auto;
    }

    .bento-item h3 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
        line-height: 1.3;
    }

    .bento-item p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        max-width: 100%;
    }

    .bento-item i {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
}

.bento-number {
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    position: absolute;
    top: -10px;
    right: -10px;
    color: var(--accent-light);
    opacity: 1;
    transition: all 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.bento-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.bento-item p {
    color: var(--slate);
    font-size: 1rem;
    max-width: 500px;
    transition: all 0.4s ease;
}

.bento-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s ease;
    z-index: 0;
    transform: scale(1.1);
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(26, 42, 68, 0.15);
}

.bento-item:hover .bento-bg-img {
    opacity: 0.15;
    transform: scale(1);
}

.bento-item:hover .bento-number {
    transform: scale(1.1) translate(-20px, 20px);
    color: var(--accent);
    opacity: 0.1;
}

.bento-item:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.bento-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 6px;
    background: var(--accent);
    transition: width 0.6s ease;
}

.bento-item:hover::after {
    width: 100%;
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    position: relative;
    padding: 12px 35px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    overflow: hidden;
}


/* Luxury Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.6;
    margin-top: 20px;
    font-weight: 300;
}

.footer-links h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 0.8rem;
}

.copyright {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.4;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Stats Section Luxury Update */
.stats {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Why Akmak - Luxury Redesign */
.why-akmak {
    padding: 120px 0;
    background-color: #fdfdfd;
    text-align: center;
}

.why-akmak-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-akmak .sub-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.why-akmak .main-title {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.1;
}

.why-akmak .luxury-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 40px;
}

.why-akmak .description {
    font-size: 1.3rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 300;
}

.philosophy-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.philosophy-tags .dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .why-akmak .main-title {
        font-size: 2.5rem;
    }

    .why-akmak .description {
        font-size: 1.1rem;
    }
}

/* Machine Park */
.machine-park {
    background: #f8fafc;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.machine-card {
    background: white;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.machine-card i {
    width: 60px;
    height: 60px;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    header {
        background: linear-gradient(115deg, var(--white) 0%, var(--white) 40%, var(--primary) 40.1%, var(--primary) 100%);
    }

    nav {
        padding: 5px 0;
    }

    nav .btn {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        z-index: 9999;
        background: transparent;
        border: none;
        padding: 0;
        margin-left: auto;
        position: relative;
    }

    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--white) !important;
        border-radius: 10px;
        transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--white) !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--white) !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 42, 68, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.6s;
        z-index: 1080;
        margin: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.4s ease forwards;
    }

    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        display: inline-block;
        padding: 15px 30px;
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--white);
        text-transform: uppercase;
        letter-spacing: 4px;
        border: none;
        font-family: 'Playfair Display', serif;
    }

    .nav-links a.active {
        color: var(--accent);
        background: transparent;
        font-weight: 500;
    }

    .nav-links a::after {
        background: var(--accent);
        bottom: 10px;
    }

    /* Hero Check Fix */
    .hero-slider {
        height: 600px !important;
        min-height: auto !important;
    }

    .hero-slider h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-slider p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
        opacity: 0.9;
        max-width: 90%;
    }

    .hero-slider .btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        width: auto !important;
        margin-top: 10px;
    }

    /* General Typography Fixes */
    .section-title h2 {
        font-size: 1.6rem;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }

    .about-text h2,
    .why-akmak-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .logo img {
        height: 50px;
    }

    .about-text p.lead,
    .why-akmak-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    .cta h2 {
        font-size: 1.6rem !important;
    }

    .cta p {
        font-size: 0.95rem !important;
    }

    /* Layout Stacking */
    .services-grid,
    .features-grid,
    .stats-grid,
    .machine-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .page-header {
        padding: 100px 0 60px !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .page-header p {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
    }

    .luxury-card {
        padding: 40px 30px !important;
    }

    .service-detail-content h2 {
        font-size: 1.6rem !important;
    }

    .service-detail-content p {
        font-size: 1rem !important;
    }

    /* Contact Page Mobile Fixes */
    .contact-info h2 {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    .contact-form {
        padding: 40px 25px !important;
    }

    .contact-section {
        padding: 60px 0 !important;
    }

    .contact-info .sub-title {
        font-size: 0.7rem !important;
        letter-spacing: 3px !important;
    }

    .map div {
        height: 350px !important;
    }

    /* About Page Mobile Spacing */
    .why-akmak-content {
        margin-bottom: 60px !important;
    }

    .about-detailed {
        padding: 60px 0 !important;
    }

    .luxury-line {
        margin-bottom: 30px !important;
    }

    .slide-content {
        padding: 0 15px;
    }

    /* Fix for alternating layouts in hizmetlerimiz.php */
    .services-detailed [style*="order"] {
        order: 0 !important;
    }
}

/* Global Grid Classes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Page Components */
/* Page Components - Luxury Revisions */
.page-header {
    position: relative;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1;
}

/* Intro Video Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfdfc;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#intro-overlay video {
    width: 80%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
}


#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Luxury Card System */
.luxury-card {
    background: var(--white);
    padding: 50px 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.luxury-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.luxury-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

.luxury-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.luxury-card p {
    color: var(--slate);
    line-height: 1.7;
    font-size: 1rem;
}

/* Service Detail Sections */
.service-detail-item {
    padding: 100px 0;
}

.service-detail-item:nth-child(even) .grid-2 {
    direction: rtl;
}

.service-detail-item:nth-child(even) .grid-2>* {
    direction: ltr;
}

.service-detail-content h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.service-detail-content p {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 300;
}

.service-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-features-list li {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.service-detail-image img {
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }

    .service-detail-item:nth-child(even) .grid-2 {
        direction: ltr;
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-item {
    margin-bottom: 100px;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hakkimizda-uretim.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-text h2 {
    color: var(--primary);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.about-text p {
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-image {
    position: relative;
    padding: 30px;
}

.about-image img,
.about-image video {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--accent-light);
    z-index: 1;
}

.cta {
    background: linear-gradient(rgba(26, 42, 68, 0.9), rgba(26, 42, 68, 0.9)),
        url('https://images.unsplash.com/photo-1513828583688-c52646db42da?auto=format&fit=crop&q=80') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: var(--accent) !important;
    color: white !important;
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
}

/* Services Detailed Redesign */
.services-detailed {
    padding: 80px 0;
    background: var(--white);
}

.service-section {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-section:last-child {
    margin-bottom: 0;
}

.service-section.reverse {
    grid-template-columns: 0.7fr 1.3fr;
}

.service-section.reverse .service-content {
    order: 2;
}

.service-section.reverse .service-image-container {
    order: 1;
}

.service-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.service-content p {
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--slate);
    font-weight: 500;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    height: 280px;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-image-container:hover img {
    transform: scale(1.1);
}

.service-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 42, 68, 0.3), transparent);
}

@media (max-width: 992px) {

    .service-section,
    .service-section.reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }

    .service-content {
        order: 2;
        text-align: center;
    }

    .service-image-container {
        order: 1;
        height: 220px;
    }

    .service-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .service-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-features li {
        text-align: left;
        display: inline-block;
        width: 100%;
    }
}

/* Floating Rotating Disk */
.floating-disk {
    position: fixed;
    right: -50px;
    top: 100px;
    width: 100px;
    height: 100px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.8;
}

.floating-disk img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform;
}

@media (max-width: 768px) {
    .floating-disk {
        width: 60px;
        height: 60px;
        right: -35px;
        opacity: 0.6;
    }

    .view-all-btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        width: auto !important;
    }

    .view-all-btn i {
        font-size: 0.8rem !important;
    }
}

/* Font Switcher Styles */
.font-switcher-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 15px 10px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 2147483647 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.font-switcher-btn:hover {
    padding-left: 20px;
    background: #e67a00;
}

.font-panel {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2147483647 !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 30px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.font-panel.open {
    left: 0;
}

.font-panel h3 {
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-panel {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--slate);
}

.font-option {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-option:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.font-option.active {
    background: var(--accent-light);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(243, 139, 32, 0.1);
}

.font-option h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.font-option p {
    font-size: 0.85rem;
    color: var(--slate);
    margin: 0;
}

.font-preview {
    margin-top: 8px;
    font-size: 1.5rem;
    line-height: 1;
}

/* Contact Page Map Overlay Styles */
.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.map-overlay:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-color: var(--accent);
}

.map-overlay-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.map-overlay-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.map-overlay-divider {
    height: 30px;
    width: 1px;
    background: var(--border);
}

.map-overlay-info h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.map-overlay-info p {
    font-family: var(--font-body);
    color: var(--slate);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.map-overlay:hover .map-overlay-info p {
    color: var(--accent);
}

@media (max-width: 576px) {
    .map-overlay {
        top: 20px;
        left: 20px;
        right: 20px;
        padding: 12px 20px;
        gap: 10px;
    }
    .map-overlay-link {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    .map-overlay-logo {
        height: 32px;
    }
}