/* SİNBA CREATİVE - Dark Premium Performance V1 */

/* 1. Performance & Reset */
:root {
    /* Brand Colors */
    --bg-dark: #0A0A0A;
    /* Deepest Black/Anthracite */
    --bg-card: #141414;
    /* Slight lift */
    --bg-hover: #1F1F1F;
    --accent: #FF3D00;
    /* International Safety Orange / Polished Red */
    --text-main: #FAFAFA;
    /* Off-White for eye comfort */
    --text-muted: #A3A3A3;
    /* Neutral Grey */
    --border: #262626;
    /* Subtle borders */

    /* Typography */
    --font-main: 'Manrope', sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: 20px;
    --radius: 4px;
    /* Sharp, professional corners, minimal rounding */

    /* Transitions */
    --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* 1.1 Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.drone-loader {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    color: var(--accent);
}

.drone-svg {
    width: 100%;
    height: 100%;
    animation: droneHover 3s infinite ease-in-out;
}

.propeller {
    transform-origin: center;
    animation: rotateProp 0.15s infinite linear;
}

.p1 {
    transform-origin: 30px 45px;
}

.p2 {
    transform-origin: 70px 45px;
}

.p3 {
    transform-origin: 45px 30px;
}

.p4 {
    transform-origin: 45px 70px;
}

@keyframes rotateProp {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes droneHover {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.preloader-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.preloader-text span {
    color: var(--accent);
}

.preloader-bar {
    width: 0;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
    animation: loadBar 2s var(--ease) forwards;
}

@keyframes loadBar {
    0% {
        width: 0;
        opacity: 1;
    }

    80% {
        width: 100px;
        opacity: 1;
    }

    100% {
        width: 100px;
        opacity: 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Utility Classes & Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-padding {
    padding: 100px 0;
    content-visibility: auto;
    /* Browser rendering optimization */
    contain-intrinsic-size: 800px;
    /* Estimate for scrollbar jumping */
}

/* 3. Typography Hierarchy (SEO Visuals) */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

p {
    color: var(--text-muted);
    margin-bottom: 20px;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--ease);
}

/* 4. Navigation (Sticky & Minimal) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--gutter);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--accent);
}

/* Contact Button Refinement */
.contact-btn-nav {
    padding: 10px 24px !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    /* Pills style for elegance */
    transition: all 0.3s var(--ease) !important;
    box-shadow: 0 4px 15px rgba(255, 61, 0, 0.2);
}

.contact-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 61, 0, 0.4);
    background: #fff !important;
    color: var(--accent) !important;
}

/* 4.1 Mobile Toggle Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s var(--ease);
    border-radius: 2px;
    transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    background-color: var(--accent);
}

.menu-toggle.active span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    background-color: var(--accent);
}

/* 5. Hero Section (Performance Optimized) */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 70% 30%, #1a1a1a 0%, #0A0A0A 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

/* Video Facade (Performance) */
.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 61, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s;
}

.video-facade:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 6. Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

/* 7. Why Us (Flex) */
.feature-list li {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #ddd;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* 8. Portfolio (Grid) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* 9. Footer */
footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: #fff;
}

/* 10. Google Reviews Section */
.reviews-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.google-logo {
    width: 80px;
    height: auto;
}

.rating-overview {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 1.5rem;
    color: #FBBC04;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 3px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    display: flex;
    gap: 3px;
    font-size: 1.1rem;
    color: #FBBC04;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #5F6368;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.3s;
}

.google-badge:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* 11. Portfolio Page */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    display: block;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: opacity 0.3s;
}

.project-card:hover .card-overlay {
    opacity: 0;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
}

.card-info span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.card-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s;
}

.project-card:hover .card-btn {
    opacity: 0;
    transform: scale(0.8);
}

.card-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

/* Services Page */
.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse>* {
    direction: ltr;
}

.service-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.service-image:hover {
    transform: translateY(-10px);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.service-image:hover img {
    opacity: 1;
}

.service-content h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: #ddd;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.about-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-content p:first-of-type {
    font-size: 1.2rem;
    color: #ccc;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s;
}

.about-image:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    padding: 5px;
    background: var(--bg-dark);
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.team-member:hover .member-photo img {
    filter: grayscale(0%);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.member-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

/* 12. Portfolio Detail Page */
.detail-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.detail-category {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.2;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.detail-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 120px;
}

.detail-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.detail-description {
    text-align: left;
    padding-top: 20px;
}

.detail-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.detail-gallery-title {
    text-align: center;
    margin-bottom: 40px;
}

.detail-gallery-title h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.detail-gallery-item {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-gallery-item:hover {
    transform: translateY(-5px);
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.detail-gallery-item:hover img {
    transform: scale(1.05);
}

.detail-back-section {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    font-weight: 600;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* 13. Mobile Overrides */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s var(--ease);
        z-index: 1000;
    }

    nav.show {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        width: 100%;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .contact-btn-nav {
        margin-top: 20px;
        padding: 15px 40px !important;
        font-size: 1.1rem !important;
    }
}

/* Responsive Utilities */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .detail-gallery-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding-top: 100px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .service-item.reverse {
        direction: ltr;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 80px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-main-image {
        position: relative;
        top: 0;
    }
}