/* ============================================
   CSS Reset & Base Styles
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #de5e2a;
    --color-dark-gray: #0e1012;
    --color-light-gray: #F3F5F6;
    --color-white: #ffffff;
    --color-border: #4a5568;
    --color-text: #0e1012;
    --color-text-light: #4a5568;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    font-display: swap;
}

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

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.gradient-text {
    color: var(--color-primary);
}

.card-shadow {
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.card-shadow-hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-social {
    display: flex;
    gap: 1rem;
}

.header-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: var(--transition-base);
}

.header-social a:hover {
    transform: translateY(-2px) scale(1.1);
    color: var(--color-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('images/sismik-izolator-ulus-yapi-m.webp') center/cover no-repeat;
    opacity: 1;
    z-index: 1;
}

@media (min-width: 769px) {
    .hero::before {
        background: url('images/sismik-izolator-ulus-yapi-t.webp') center/cover no-repeat;
    }
}

@media (min-width: 1281px) {
    .hero::before {
        background: url('images/sismik-izolator-ulus-yapi-d.webp') center/cover no-repeat;
    }
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff !important;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: #000000 !important;
}

.btn:hover {
    text-decoration: none !important;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 3rem 0;
    background: var(--color-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light-gray);
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text);
    font-size: 1.1rem;
    margin: -2rem auto 3rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--color-white);
    border: 2px solid rgba(14, 16, 18, 0.6);
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    border-color: var(--color-primary);
    border-width: 2px;
}

.service-icon {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: block;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .service-icon {
        height: 240px;
    }
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 0 0.5rem 0;
    padding: 1rem 1.5rem 0 1.5rem;
    position: relative;
    z-index: 2;
}

.service-description {
    color: var(--color-text-light);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 1rem 1.5rem;
}

.service-description a,
.reference-description a {
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-description a:hover,
.reference-description a:hover {
    color: var(--color-primary);
}

.service-card .btn {
    margin: 0 auto 1rem auto;
    width: calc(64% - 3rem);
    display: flex;
    justify-content: center;
}

/* ============================================
   Videos Section
   ============================================ */
.videos {
    padding: 3rem 0;
    background: var(--color-dark-gray);
    position: relative;
}

.videos .section-subtitle {
    color: var(--color-light-gray);
}

.videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark-gray);
    z-index: 1;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.video-item {
    background: var(--color-white);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    position: relative;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    box-sizing: border-box;
    transition: var(--transition-base);
    z-index: 2;
    pointer-events: none;
}

.video-item:hover::before {
    opacity: 1;
    border-color: var(--color-primary);
}

.video-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 53%;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

.video-play-button {
    position: static;
    width: 34px;
    height: 34px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: var(--transition-base);
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.video-play-button:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 0;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   References Section
   ============================================ */
.references {
    padding: 3rem 0;
    background: var(--color-white);
    position: relative;
}

.references::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light-gray);
    z-index: 1;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.reference-card {
    background: var(--color-white);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    position: relative;
}

/* Link hover edildiğinde card transform'u devre dışı */
.reference-card:hover:not(:has(a:hover)) {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    box-sizing: border-box;
    transition: var(--transition-base);
    z-index: 2;
    pointer-events: none;
}

.reference-card:hover:not(:has(a:hover))::before {
    opacity: 1;
    border-color: var(--color-primary);
}

.reference-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition-base);
    filter: brightness(0.8);
}

.reference-card:hover:not(:has(a:hover)) .reference-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.reference-content {
    padding: 1.5rem;
    position: relative;
    z-index: 3;
}

.reference-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.reference-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-dark-gray);
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}


.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: start;
    justify-content: center;
    gap: 8rem;
    margin-bottom: 1.5rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    text-align: left;
}

.footer-section:nth-child(2) {
    text-align: left;
    justify-self: center;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.footer-section p {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-section a {
    color: var(--color-white);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: right;
    color: var(--color-white);
    transition: var(--transition-base);
    width: 58px;
    height: 46px;
}

.social-links a:hover {
    transform: translateY(-2px) scale(1.1);
    color: var(--color-primary);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-primary);
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-policies a {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.footer-policies a:hover {
    color: var(--color-primary);
}

.separator {
    color: var(--color-text-light);
    font-weight: normal;
    opacity: 0.7;
}

.footer-copyright p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Cookie Notice
   ============================================ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 1000;
    border-top: 2px solid var(--color-primary);
    background: transparent; /* Ana sayfada şeffaf */
    transition: background 0.3s ease;
}

/* Ana sayfada scroll edilince koyu arka plan */
.cookie-notice.scrolled {
    background: var(--color-dark-gray);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-light-gray);
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 10px;
    color: white !important;
}

.cookie-buttons .btn-primary {
    color: white !important;
}

.cookie-buttons .btn-secondary {
    color: white !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {

    .container {
        padding: 0 1rem 1rem;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .services-grid,
    .videos-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section:first-child,
    .footer-section:nth-child(2),
    .footer-section:last-child {
        text-align: center;
        justify-self: center;
    }
    
    .social-links {
        justify-content: flex-end;
    }

    .social-links a {
        justify-content: center;
    }    
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .service-card,
    .video-item,
    .reference-card {
        margin: 0 0.5rem 1rem;
    }

    .service-icon {
        height: 200px;
    }

    .social-links {
        justify-content: flex-end;
    }

    .social-links a {
        justify-content: center;
        width: 64px;
    }    
}

/* ============================================
   Policy Pages - Gizlilik & Çerez Politikası
   ============================================ */

.main-content {
    padding: 5rem 0 0 0;
    background: var(--color-white);
    min-height: 100vh;
}

/* Policy sayfalarında cookie consent background */
.policy-page .cookie-notice {
    background: var(--color-dark-gray);
}

.privacy-content {
    margin: 0 auto;
    padding: 2rem 0 2rem 0;
    line-height: 1.5;
}

.privacy-content h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    text-align: left;
}

.privacy-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    margin: 1rem 0 0.5rem 0;
}

.privacy-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 0 0.5rem 0;
}

.privacy-content p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
}

.privacy-content ul {
    margin: 0.5rem 0;
    padding-left: 0;
    list-style: none;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    padding-left: 1.5rem;
    position: relative;
}

.privacy-content ul li::before {
    content: "•";
    color: var(--color-text);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.privacy-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-content strong {
    color: var(--color-dark-gray);
    font-weight: 600;
}

.privacy-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.cookie-table {
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
}

.cookie-table th {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

/* Policy Pages Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 7rem 0 0 0;
    }
    
    .privacy-content {
        padding: 0 1rem;
    }
    
    .privacy-content h1 {
        font-size: 1.8rem;
    }
    
    .privacy-content h2 {
        font-size: 1.2rem;
    }
}

/* Safari ve Firefox için özel düzeltmeler */
@supports (-webkit-appearance: none) {
    @media (max-width: 768px) {
        .main-content {
            padding-bottom: 1.5rem;
        }
        
        .privacy-content {
            margin-bottom: 1rem;
        }
    }
}

/* Firefox için özel düzeltme */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .main-content {
            padding-bottom: 1.5rem;
        }
    }
}