/* 
   Istanbul Zemin - Engineering Confidence Design System 
   Colors: Deep Engineering Blue, Cool Gray, Construction Red
*/

:root {
    /* Primary Colors */
    --primary-color: hsl(215, 60%, 25%);
    /* Deep Engineering Blue */
    --primary-light: hsl(215, 50%, 35%);
    --primary-dark: hsl(215, 70%, 15%);

    /* Secondary Colors */
    --secondary-color: hsl(210, 15%, 90%);
    /* Cool Gray */
    --secondary-dark: hsl(210, 10%, 70%);

    /* Accent Colors */
    --accent-color: hsl(10, 80%, 55%);
    /* Construction Red */
    --accent-hover: hsl(10, 85%, 45%);

    /* Neutrals */
    --text-main: hsl(210, 20%, 20%);
    --text-light: hsl(210, 10%, 40%);
    --white: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e2e8f0;

    /* Spacing & Layout */
    --container-width: 1600px;
    --header-height: 80px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

.section-title {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.main-header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
    /* Increased gap to prevent overlap */
    max-width: 1400px;
    margin: 0 auto;
}


.logo {
    font-size: 2.0rem;
    /* Increased size */
    font-weight: 800;
    color: #6eb6d7;
    /* Exact Z logo color */
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    /* Prevent logo from shrinking */
    min-width: 200px;
    /* Ensure logo has minimum space */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

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

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

/* Header Contact Number */
.header-contact {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* Push to right */
    margin-right: 20px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* Force single line */
}

.header-contact a:hover {
    color: var(--accent-color);
}

.header-contact i {
    font-size: 1.2rem;
    color: var(--accent-color);
    animation: phone-shake 3s infinite;
}

@keyframes phone-shake {

    0%,
    90% {
        transform: rotate(0);
    }

    92% {
        transform: rotate(15deg);
    }

    94% {
        transform: rotate(-15deg);
    }

    96% {
        transform: rotate(15deg);
    }

    98% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* Mobile Responsiveness for Header Contact */
@media (max-width: 992px) {
    .header-contact {
        margin-right: 15px;
        /* Space for hamburger menu */
    }

    .header-contact span {
        display: none;
        /* Hide number text on mobile/tablet */
    }

    .header-contact i {
        font-size: 1.5rem;
        /* Larger icon on mobile */
        background-color: var(--background-light);
        padding: 8px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Video Section */
.video-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-social {
    margin-top: 20px;
}

.footer-social h4 {
    margin-bottom: 15px;
}

.footer-social .social-links a {
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
}

.footer-social .social-links a:hover {
    background-color: var(--accent-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 15px;
}

.lang-option {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-option.active {
    background-color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    /* Consistent spacing */
    align-items: center;
}

.nav-links li {
    margin: 0;
    /* Remove any default margin */
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    /* Prevent text wrapping */
    font-size: 1rem;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 30, 60, 0.7), rgba(10, 30, 60, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* fixed mobilde desteklenmez */
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100svh; /* svh = Small Viewport Height - mobil adres bar'ını hesaba katar */
        background-attachment: scroll;
        background-position: center center;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Trust Badges in Hero */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.trust-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features/Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Homepage Projects Grid - Fixed 3 Columns */
.homepage-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (max-width: 992px) {
    .homepage-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .homepage-projects-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Premium Project Cards */
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

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

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

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-details {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-details span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-details i {
    color: var(--primary-light);
    width: 16px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
    }

    .trust-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 1001;
    transition: all 0.2s ease;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {

    /* Hide desktop navigation */
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 30px 20px;
    }

    nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 15px 10px;
        color: var(--white);
        font-size: 1rem;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide social links and lang switcher on mobile header */
    .nav-container>.social-links,
    .nav-container>.lang-switcher {
        display: none;
    }

    /* Adjust CTA button */
    .nav-container>.btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Feature grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo {
        font-size: 1.5rem;
        gap: 10px;
    }

    .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

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

    .video-wrapper {
        margin-top: 30px;
    }

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

    .contact-form {
        padding: 30px 20px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .nav-container>.btn-primary {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Career CTA Section */
.career-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl) 0;
    color: var(--white);
}

.career-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.career-cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.career-cta-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.career-benefits {
    list-style: none;
}


.career-benefits i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Logo Slider (Infinite Marquee) */
.logo-slider {
    background: white;
    height: 120px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 120px;
    position: absolute;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::after {
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
    right: 0;
    top: 0;
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.logo-slide-track {
    display: flex;
    align-items: center;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.logo-slide-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    height: 100px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.logo-slide img {
    max-height: 70px;
    max-width: 160px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-slider {
        height: 100px;
    }

    .logo-slide {
        width: 150px;
        padding: 0 15px;
    }

    .logo-slide img {
        max-height: 50px;
    }
}


.career-cta-action {
    flex-shrink: 0;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

/* Project Card Hover Effects */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

.feature-card:hover h3 {
    color: var(--accent-color);
}

/* Project details always visible */
.feature-card p {
    opacity: 1;
    max-height: none;
    overflow: visible;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-card:hover p {
    color: var(--text-main);
}

/* Responsive Career CTA */
@media (max-width: 768px) {
    .career-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .career-cta-text h2 {
        font-size: 1.8rem;
    }

    .career-benefits {
        text-align: left;
        display: inline-block;
    }
}

/* Blog Article Styles */
.blog-article {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.article-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 8px;
}

.article-content {
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
}

.article-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.article-cta .btn {
    background-color: var(--accent-color);
}

.article-cta .btn:hover {
    background-color: #e63946;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Project Card Specific Hover Effects */
.project-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.project-card h3 {
    transition: color 0.3s ease;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.project-card:hover h3 {
    color: var(--accent-color);
}

.project-client {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    margin-top: 5px;
    /* Ensure visibility override */
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
}

/* Hide project details by default (excluding project-client) */
.project-card p:not(.project-client) {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
    margin: 0;
    color: var(--text-light);
}

/* Show project details on hover */
.project-card:hover p {
    opacity: 1;
    max-height: 100px;
    margin-top: 12px;
}

/* Enhanced Career CTA Section */
.career-cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 80px 0;
    color: var(--white);
    margin: 60px 0;
}

.career-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.career-cta-text {
    flex: 1;
}

.career-cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.career-cta-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.career-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.career-benefits li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-benefits i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.career-cta-action {
    flex-shrink: 0;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .career-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .career-cta-text h2 {
        font-size: 2rem;
    }

    .career-benefits {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .career-cta-section {
        padding: 60px 0;
    }

    .career-cta-text h2 {
        font-size: 1.8rem;
    }
}

/* Hero Slider Styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 15;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slider-dots {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Restore hover effect for project descriptions */
.project-card .project-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    display: block;
    transition: all 0.4s ease-in-out;
    color: var(--text-light);
}

.project-card:hover .project-desc {
    opacity: 1;
    max-height: 200px;
    /* Increased height for full text */
    margin-top: 10px;
}

/* Lightbox Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 0;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-color);
}

.modal-body {
    position: relative;
}

.modal-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.modal-text {
    padding: 30px;
    background: var(--white);
}

.modal-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* Make cards clickable */
.project-card {
    cursor: pointer;
}

/* Team Grid - Fixed 5 Columns */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    /* Ensure fixed width behavior */
    width: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 100%;
    margin: 0 0 15px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.team-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    /* Limit height for very tall images */
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    word-break: break-word;
}

.team-role {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Tek Dok & Blog Unified Layout */
/* ==========================================================================
   TECHNICAL DOCUMENT & BLOG READING PAGES (TEKDOK WRAPPER)
   ========================================================================== */
.tekdok-wrapper {
    display: flex;
    max-width: var(--container-width);
    margin: 120px auto 40px; /* Leave space for fixed header */
    padding: 0 var(--spacing-md);
    gap: 40px;
    align-items: flex-start;
}
.tekdok-wrapper .side-nav {
    flex: 0 0 300px;
    position: sticky;
    top: 120px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 35px 25px;
    border-radius: 12px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
}
.tekdok-wrapper .side-nav::-webkit-scrollbar {
    width: 6px;
}
.tekdok-wrapper .side-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.tekdok-wrapper .side-nav h3 {
    color: var(--primary-color);
    font-size: 1.15em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.tekdok-wrapper .side-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95em;
    transition: all 0.3s ease;
    border-radius: 6px;
}
.tekdok-wrapper .side-nav a:last-child {
    border-bottom: none;
}
.tekdok-wrapper .side-nav a:hover, .tekdok-wrapper .side-nav a.active {
    color: var(--accent-color);
    background: var(--background-light);
    padding-left: 20px;
    font-weight: 600;
}
.tekdok-wrapper .main-content {
    flex: 1;
    background: var(--white);
    padding: 60px 80px;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    min-width: 0;
    border: 1px solid var(--border-color);
}
@media (max-width: 900px) {
    .tekdok-wrapper {
        flex-direction: column;
        margin-top: 100px;
    }
    .tekdok-wrapper .side-nav {
        flex: none;
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 20px;
        box-shadow: none;
    }
    .tekdok-wrapper .main-content {
        padding: 40px 25px;
        box-shadow: var(--shadow-sm);
    }
}
.tekdok-wrapper h1, .tekdok-wrapper h2, .tekdok-wrapper h3, .tekdok-wrapper h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}
.tekdok-wrapper h1 { font-size: 2.5em; margin-bottom: 15px; line-height: 1.3; }
.tekdok-wrapper h1 small { display: block; font-size: 0.4em; color: #7f8c8d; font-family: var(--font-body); margin-top: 10px; }
.tekdok-wrapper h2 { font-size: 1.8em; margin-top: 60px; border-bottom: 1px solid #ddd; padding-bottom: 15px; position: relative; }
.tekdok-wrapper h2::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 3px; background: var(--accent-color); }
.tekdok-wrapper h3 { font-size: 1.4em; color: #34495e; margin-top: 40px; font-weight: 700; }
.tekdok-wrapper h4 { font-size: 1.1em; color: var(--accent-color); margin-top: 30px; margin-bottom: 15px; }
.tekdok-wrapper p { margin-bottom: 25px; font-size: 1.1em; text-align: justify; color: #444; line-height: 1.8; }
.tekdok-wrapper ul { margin-bottom: 25px; list-style-type: square; padding-left: 20px; color: #555; line-height: 1.8; }
.tekdok-wrapper li { margin-bottom: 10px; font-size: 1.05em; }
.tekdok-wrapper .info-box { background: #e1f5fe; border-left: 5px solid #03a9f4; padding: 25px; margin: 35px 0; border-radius: 4px; }
.tekdok-wrapper .alert-box { background: #fff3e0; border-left: 5px solid #ff9800; padding: 25px; margin: 35px 0; border-radius: 4px; }
.tekdok-wrapper .technical-block { background: #fdfdfd; border: 1px solid #e0e0e0; padding: 30px; margin: 40px 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.tekdok-wrapper .figure { margin: 50px 0; text-align: center; background: #fff; padding: 15px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 8px; }
.tekdok-wrapper .figure img { max-width: 100%; height: auto; border-radius: 4px; max-height: 600px; margin: 0 auto; }
.tekdok-wrapper .figure-caption { display: block; margin-top: 15px; font-style: italic; color: #7f8c8d; font-size: 0.95em; border-top: 1px solid #eee; padding-top: 10px; }
.tekdok-wrapper .table-container { overflow-x: auto; margin: 40px 0; }
.tekdok-wrapper table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.tekdok-wrapper th, .tekdok-wrapper td { border: 1px solid #e1e1e1; padding: 12px; text-align: left; }
.tekdok-wrapper th { background: var(--primary-color); color: white; }
.tekdok-wrapper tr:nth-child(even) { background: #f9f9f9; }

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fdfdfd;
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--accent-color);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-item.active {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--accent-light);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    color: #555;
    line-height: 1.7;
}
