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

:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-primary: #333333;
    --text-secondary: #6B6B6B;
    --text-white: #ffffff;
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-darker: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Transparent Navigation Bar */
.transparent-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 0;
}

.transparent-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-light);
}

.navbar-container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.transparent-navbar.scrolled .navbar-logo {
    filter: brightness(0) saturate(100%);
}

.navbar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    color: white;
    transition: all 0.3s ease;
}

.transparent-navbar.scrolled .navbar-title {
    color: #000000;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-link {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-white);
    text-decoration: none;
    position: relative;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transparent-navbar.scrolled .navbar-link {
    color: var(--text-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transparent-navbar.scrolled .navbar-link::after {
    background: var(--text-primary);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    font-weight: 600;
}

.navbar-link.active::after {
    width: 100% !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    width: 30px;
    height: 24px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1002;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.transparent-navbar.scrolled .hamburger-menu span {
    background-color: var(--text-primary);
}

.hamburger-menu:hover span:nth-child(1) {
    transform: translateY(-2px);
}

.hamburger-menu:hover span:nth-child(3) {
    transform: translateY(2px);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--text-white) 0%,
        var(--text-white) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #000000;
    max-width: 800px;
    padding: 0 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo img {
    width: 160px;
    height: 160px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    drop-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Gallery Indicators */
.hero-gallery-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Hero Slogan Styling */
.hero-slogan {
    margin-top: 30px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

.slogan-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    font-style: italic;
    color: #000000;
    text-shadow: none;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slogan-text:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.slogan-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #000000 50%, transparent 100%);
    border-radius: 2px;
    animation: expandUnderline 2s ease-out 1.5s both;
}

@keyframes expandUnderline {
    from {
        width: 0;
    }
    to {
        width: 80%;
    }
}

/* Legacy hero-subtitle for backwards compatibility */
.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Description Section */
.description-section {
    padding: 40px 0;
    background-color: #ffffff;
    position: relative;
}

.description-content {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Services section için özel container */
.services-section .container {
    max-width: none;
    padding: 0 20px;
}

.description-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
}

.description-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #000000;
    text-align: left;
    margin: 0 0 20px 0;
    max-width: 900px;
    width: 100%;
    display: block;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.description-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Construction Theme Background Animation */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(0, 0, 0, 0.03) 41%, rgba(0, 0, 0, 0.03) 43%, transparent 44%),
        linear-gradient(-45deg, transparent 40%, rgba(0, 0, 0, 0.04) 41%, rgba(0, 0, 0, 0.04) 43%, transparent 44%),
        linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.02) 49%, rgba(0, 0, 0, 0.02) 51%, transparent 52%);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: constructionGrid 20s linear infinite;
    z-index: 1;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.04) 0%, transparent 25%);
    animation: constructionSpots 25s ease-in-out infinite;
    z-index: 1;
}

/* Construction Elements Animation */
.services-section .construction-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.services-section .construction-elements::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.4);
    box-shadow: 
        180px 40px 0 rgba(0, 0, 0, 0.3),
        350px 80px 0 rgba(0, 0, 0, 0.35),
        520px 20px 0 rgba(0, 0, 0, 0.3),
        720px 60px 0 rgba(0, 0, 0, 0.3),
        900px 100px 0 rgba(0, 0, 0, 0.25),
        1100px 30px 0 rgba(0, 0, 0, 0.3);
    animation: constructionFloat 18s ease-in-out infinite;
}

.services-section .construction-elements::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 8%;
    width: 12px;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1px;
    box-shadow: 
        -200px -30px 0 rgba(0, 0, 0, 0.35),
        -400px 20px 0 rgba(0, 0, 0, 0.3),
        -600px -10px 0 rgba(0, 0, 0, 0.3),
        -800px 40px 0 rgba(0, 0, 0, 0.25),
        -1000px -20px 0 rgba(0, 0, 0, 0.3);
    animation: constructionBeams 22s ease-in-out infinite reverse;
}

/* Crane Animation */
.services-section .crane-animation {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 60px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
}

.services-section .crane-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 140, 0, 0.6), rgba(105, 105, 105, 0.4));
    animation: craneRotate 30s linear infinite;
    transform-origin: bottom center;
}

.services-section .crane-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: rgba(105, 105, 105, 0.5);
    border-radius: 1px;
}

@keyframes constructionGrid {
    0% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    33% { 
        transform: translate(-20px, -10px) rotate(0.5deg);
        opacity: 0.8;
    }
    66% { 
        transform: translate(10px, -20px) rotate(-0.3deg);
        opacity: 0.7;
    }
    100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
}

@keyframes constructionSpots {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    25% { 
        transform: scale(1.1) rotate(1deg);
        opacity: 0.7;
    }
    50% { 
        transform: scale(0.9) rotate(-0.5deg);
        opacity: 0.6;
    }
    75% { 
        transform: scale(1.05) rotate(0.8deg);
        opacity: 0.8;
    }
}

@keyframes constructionFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    20% { 
        transform: translateY(-25px) rotate(2deg);
        opacity: 0.6;
    }
    40% { 
        transform: translateY(-15px) rotate(-1deg);
        opacity: 0.8;
    }
    60% { 
        transform: translateY(-30px) rotate(1.5deg);
        opacity: 0.5;
    }
    80% { 
        transform: translateY(-10px) rotate(-0.5deg);
        opacity: 0.7;
    }
}

@keyframes constructionBeams {
    0%, 100% { 
        transform: translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateX(-15px) rotate(1deg);
        opacity: 0.5;
    }
    50% { 
        transform: translateX(20px) rotate(-0.8deg);
        opacity: 0.7;
    }
    75% { 
        transform: translateX(-8px) rotate(0.5deg);
        opacity: 0.4;
    }
}

@keyframes craneRotate {
    0% { 
        transform: translateX(-50%) rotate(0deg);
    }
    25% { 
        transform: translateX(-50%) rotate(15deg);
    }
    50% { 
        transform: translateX(-50%) rotate(-10deg);
    }
    75% { 
        transform: translateX(-50%) rotate(20deg);
    }
    100% { 
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Services Unified Card */
.services-unified-card {
    max-width: 1800px;
    margin: 0 auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.services-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-align: left;
    position: relative;
}

.services-card-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

/* Services Grid Container */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-unified-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-unified-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, #000000, #ffffff, #000000, #ffffff);
    opacity: 0;
    transition: all 0.3s ease;
    animation: gradientSlide 3s ease-in-out infinite;
}

.service-unified-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.service-unified-item:hover::before {
    opacity: 1;
}

@keyframes gradientSlide {
    0% {
        transform: translateX(-50%);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.service-unified-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

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

.service-unified-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-unified-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #333333;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.service-unified-list li:hover {
    color: #000000;
    transform: translateX(8px);
    padding-left: 30px;
}

.service-unified-list li:hover::before {
    color: #000000;
    transform: translateY(-50%) scale(1.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: all 0.4s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.service-content {
    color: var(--text-white);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    padding: 45px 25px 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
}

/* Menu Header */
.menu-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.menu-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.menu-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    border-radius: 4px;
}

.contact-item a:hover {
    color: #000000;
    transform: translateX(3px);
}

/* Instagram Button */
.instagram-button-container {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-top: 0px;
}

.instagram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(240, 148, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.instagram-button:hover::before {
    left: 100%;
}

.instagram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 148, 51, 0.4);
}

.instagram-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contact Form Styles */
.mobile-contact-form {
    margin-top: 0px;
    padding-top: 12px;
}

.form-header {
    margin-bottom: 12px;
    text-align: left;
}

.form-header h4 {
    color: rgb(0, 0, 0);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: black;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background: #333;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 65px;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    gap: 8px;
    margin-top: 10px;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.form-submit-btn:hover::before {
    left: 100%;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-success-message {
    text-align: center;
    padding: 25px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.success-icon {
    width: 50px;
    height: 50px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.form-success-message h5 {
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-success-message p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
}

/* Form Validation Styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* MacBook 13" Optimization */
@media (max-height: 900px) and (min-width: 1100px) {
    .mobile-menu {
        padding: 25px 15px 5px;
    }
    
    .menu-header h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .mobile-contact-form {
        margin-top: 0px;
        padding-top: 5px;
    }
    
    .form-header {
        margin-bottom: 5px;
    }
    
    .form-header h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 0px;
    }
    
    .contact-form {
        gap: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 45px;
    }
    
    .form-submit-btn {
        padding: 6px 14px;
        font-size: 14px;
        margin-top: 2px;
    }
    
    .instagram-button-container {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .instagram-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .contact-item {
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .contact-item strong {
        font-size: 14px;
    }
    
    .contact-item span {
        font-size: 14px;
        line-height: 1.2;
    }
}

/* Responsive Form Adjustments */
@media (max-width: 768px) {
    .mobile-contact-form {
        margin-top: 0px;
        padding-top: 12px;
    }
    
    .form-header {
        margin-bottom: 12px;
    }
    
    .form-header h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0px;
    }
    
    .contact-form {
        gap: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .form-submit-btn {
        padding: 10px 18px;
        font-size: 14px;
        margin-top: 5px;
    }
    
    .instagram-button-container {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .instagram-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        padding: 40px 15px 10px;
    }
    
    .mobile-contact-form {
        margin-top: 0px;
        padding-top: 10px;
    }
    
    .form-header {
        margin-bottom: 10px;
    }
    
    .form-header h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 0px;
    }
    
    .contact-form {
        gap: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .form-group textarea {
        min-height: 50px;
    }
    
    .form-submit-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-top: 3px;
    }
    
    .instagram-button-container {
        margin-top: 12px;
        margin-bottom: 12px;
    }
    
    .instagram-button {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.social-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Instagram Button */
.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    filter: brightness(1.1);
}

/* Facebook Button */
.social-btn.facebook {
    background: linear-gradient(45deg, #1877f2 0%, #42a5f5 100%);
    color: white;
}

.social-btn.facebook:hover {
    background: linear-gradient(45deg, #1877f2 0%, #42a5f5 100%);
    filter: brightness(1.1);
}

/* LinkedIn Button */
.social-btn.linkedin {
    background: linear-gradient(45deg, #0077b5 0%, #00a0dc 100%);
    color: white;
}

.social-btn.linkedin:hover {
    background: linear-gradient(45deg, #0077b5 0%, #00a0dc 100%);
    filter: brightness(1.1);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    margin-top: 20px;
}

.mobile-nav-link {
    font-family: 'Poppins', sans-serif;
    display: block;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.mobile-nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

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

/* Responsive Design */
/* Desktop - show menu and hamburger */
@media (min-width: 769px) {
    .navbar-menu {
        display: flex;
    }
}

/* Mobile - hide menu, show hamburger */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-container {
        padding: 0 20px;
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-logo {
        margin-bottom: 20px;
    }
    
    .hero-logo img {
        width: 110px;
        height: 110px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    /* Mobile Slogan Styling */
    .hero-slogan {
        margin-top: 25px;
    }
    
    .slogan-text {
        font-size: clamp(1rem, 4vw, 1.4rem);
        padding: 12px 20px;
        letter-spacing: 0.5px;
    }
    
    .slogan-underline {
        bottom: -8px;
        height: 2px;
    }
    
    .description-section {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .description-content {
        min-height: auto;
    }
    
    .description-text {
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
    }
    
    .mobile-menu {
        width: 280px;
        padding: 50px 20px 15px;
    }
    
    .menu-header h3 {
        font-size: 20px;
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services-unified-card {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 15px;
        max-width: 95%;
    }
    
    .services-card-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .services-card-title::after {
        width: 100%;
        height: 1px;
        bottom: -15px;
        left: 0;
        right: 0;
        transform: none;
    }
    
    /* Mobile Grid Layout */
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }
    
    .service-unified-item {
        padding: 25px 20px;
        margin-bottom: 0;
    }
    
    .service-unified-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .service-unified-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .service-unified-list li:hover {
        transform: translateX(5px);
        padding-left: 25px;
    }
    
    /* Reduce animation intensity on mobile */
    .services-section::before {
        animation-duration: 25s;
        opacity: 0.4;
        background-size: 150px 150px, 100px 100px, 80px 80px;
    }
    
    .services-section::after {
        animation-duration: 30s;
        opacity: 0.3;
    }
    
    /* Reduce construction elements on mobile */
    .services-section .construction-elements::before {
        animation-duration: 25s;
        opacity: 0.6;
        box-shadow: 
            180px 40px 0 rgba(255, 140, 0, 0.25),
            350px 80px 0 rgba(70, 130, 180, 0.2),
            520px 20px 0 rgba(255, 69, 0, 0.25);
    }
    
    .services-section .construction-elements::after {
        animation-duration: 28s;
        opacity: 0.5;
        box-shadow: 
            -200px -30px 0 rgba(255, 140, 0, 0.25),
            -400px 20px 0 rgba(70, 130, 180, 0.2);
    }
    
    /* Hide crane on mobile for performance */
    .services-section .crane-animation {
        display: none;
    }
    
    /* Footer Mobile */
    .footer-section {
        height: auto;
        min-height: 10vh;
        padding: 20px 0;
    }
    
    .footer-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 25px;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-copyright {
        justify-content: center;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
    
    .footer-navigation {
        justify-content: center;
    }
    
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .transparent-navbar {
        padding: 12px 0;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-logo {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .navbar-title {
        font-size: 20px;
    }
    
    .hero-section {
        height: 65vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-logo {
        margin-bottom: 15px;
    }
    
    .hero-logo img {
        width: 90px;
        height: 90px;
    }
    
    .description-section {
        padding: 25px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .description-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Small Mobile Slogan Styling */
    .hero-slogan {
        margin-top: 20px;
    }
    
    .slogan-text {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
        padding: 10px 16px;
        letter-spacing: 0.3px;
        border-radius: 12px;
    }
    
    .slogan-underline {
        bottom: -6px;
        height: 2px;
    }
    
    .mobile-menu {
        width: 100%;
        padding: 50px 20px 20px;
    }
    
    /* Services Section Small Mobile */
    .services-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .services-unified-card {
        padding: 25px 15px;
        margin: 0 10px;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .services-card-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .services-card-title::after {
        width: 100%;
        height: 1px;
        bottom: -12px;
        left: 0;
        right: 0;
        transform: none;
    }
    
    /* Small Mobile Grid Layout */
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 10px;
    }
    
    .service-unified-item {
        padding: 20px 15px;
        margin-bottom: 0;
    }
    
    .service-unified-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .service-unified-list li {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .service-unified-list li:hover {
        transform: translateX(3px);
        padding-left: 22px;
    }
    
    /* Further reduce animation on small mobile */
    .services-section::before {
        animation-duration: 35s;
        opacity: 0.2;
        background-size: 100px 100px, 80px 80px, 60px 60px;
    }
    
    .services-section::after {
        animation-duration: 40s;
        opacity: 0.15;
    }
    
    /* Minimal construction elements on small mobile */
    .services-section .construction-elements::before {
        animation-duration: 35s;
        opacity: 0.3;
        box-shadow: 
            180px 40px 0 rgba(255, 140, 0, 0.15),
            350px 80px 0 rgba(70, 130, 180, 0.1);
    }
    
    .services-section .construction-elements::after {
        animation-duration: 38s;
        opacity: 0.2;
        box-shadow: 
            -200px -30px 0 rgba(255, 140, 0, 0.15);
    }
    
    /* Footer Small Mobile */
    .footer-section {
        padding: 15px 0;
    }
    
    .footer-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .footer-logo img {
        width: 50px;
        height: 50px;
    }
    
    .footer-company-info h3 {
        font-size: 1.2rem;
    }
    
    .footer-company-info p {
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
    
    .footer-nav-link {
        font-size: 0.9rem;
    }
}

/* Footer Section */
.footer-section {
    height: 10vh;
    width: 100%;
    background: #2c2c2c;
    border-top: 1px solid #1a252f;
    position: relative;
}

.footer-container {
    height: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
}

/* Footer Brand */
.footer-brand {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-company-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-company-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: white;
    margin: 0;
}

/* Footer Copyright (Sağ) */
.footer-copyright {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
}

.footer-copyright p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: white;
    margin: 0;
    text-align: right;
}

/* Footer Navigation */
.footer-navigation {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.footer-nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-nav-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.footer-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.navbar-link:focus,
.mobile-nav-link:focus,
.hamburger-menu:focus {
    outline: none;
}

.navbar-link:focus::after {
    width: 100%;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.projects-section .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
    position: relative;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 2.5vw;
    right: 0;
    width: 94%;
    height: 1px;
    background: #e0e0e0;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Projects Carousel Container */
.projects-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    background: white;
    border: 2px solid #333333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #333333;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: white;
    color: #333333;
    transform: none;
}

/* Projects Carousel */
.projects-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.projects-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
}

.projects-section .project-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 400px;
    cursor: pointer;
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
    max-width: 600px;
    aspect-ratio: 16/9;
}

.projects-section .project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.projects-section .project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.projects-section .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.projects-section .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Mobile: Hide overlay on hover, show automatically after 2s */
@media (max-width: 768px) {
    .projects-section .project-overlay {
        opacity: 0;
        transition: opacity 0.6s ease;
    }
    
    .projects-section .project-card:hover .project-overlay {
        opacity: 0; /* Disable hover effect on mobile */
    }
    
    .projects-section .project-overlay.auto-show {
        opacity: 1;
    }
}

.projects-section .project-card:hover .project-overlay {
    opacity: 1;
}

.projects-section .project-overlay h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.projects-section .project-overlay p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.project-category {
    font-family: 'Poppins', sans-serif;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    backdrop-filter: blur(10px);
}

/* Secondary badge style for project type with animated black-white gradient */
.project-category.project-type {
    color: #ffffff;
    background: linear-gradient(90deg, #111111 0%, #222222 50%, #111111 100%);
    background-size: 150% 100%;
    animation: bwGradientShift 8s linear infinite;
    border: 1px solid rgba(255,255,255,0.15);
}

@keyframes bwGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.project-badges {
    display: flex;
    gap: 8px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #333333;
    transform: scale(1.2);
}

.indicator:hover {
    background: #333333;
    transform: scale(1.1);
}

/* Project filtering animations */
.project-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-track {
        gap: 0;
    }
    
    .projects-section .project-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }
    
    .section-header {
        padding: 0 35px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    
    .section-subtitle {
        font-size: 16px;
    }
    
    
    .projects-carousel-container {
        gap: 15px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .projects-track {
        gap: 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Hide carousel buttons on mobile */
    .carousel-btn {
        display: none;
    }
    
    .projects-section .project-card {
        height: 350px;
        flex: 0 0 100%;
        min-width: 0;
        aspect-ratio: 16/10;
    }
    
    .projects-section .project-overlay {
        padding: 30px;
    }
    
    .projects-section .project-overlay h3 {
        font-size: 24px;
    }
    
    .projects-section .project-overlay p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .projects-section .container {
        padding: 0 10px;
    }
    
    .section-header {
        margin-bottom: 40px;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    
    
    .projects-section .project-card {
        height: 280px;
        aspect-ratio: 16/11;
    }
}

/* Large Desktop Screens */
@media (min-width: 1200px) {
    .projects-section .project-card {
        height: 450px;
        max-width: 700px;
        width: calc(50% - 15px);
    }
    
    .projects-carousel-container {
        max-width: 98vw;
        gap: 40px;
    }
}

/* Extra Large Desktop Screens */
@media (min-width: 1600px) {
    .projects-section .project-card {
        height: 500px;
        max-width: 750px;
    }
    
    .projects-carousel-container {
        gap: 50px;
    }
}

/* Project Detail Modal */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    background: white;
    border-radius: 20px;
    max-width: 1600px;
    width: 95vw;
    max-height: 95vh;
    height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-content {
    display: flex;
    height: 100%;
    min-height: 90vh;
}

.modal-left {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.modal-right {
    flex: 0 0 40%;
    padding: 50px;
    overflow-y: auto;
    background: white;
}

/* Ensure scroll works reliably inside flex children (Safari fix) */
.modal-content > .modal-right,
.modal-content > .modal-left {
    min-height: 0;
}

/* Optimize modal layout for shorter laptop screens */
@media (max-height: 850px) and (min-width: 769px) {
    /* Keep side-by-side layout; just allocate more space to the text */
    .modal-left { flex: 1.2; }
    .modal-right { flex: 0.8; padding: 30px; }
    .modal-main-image { height: 70%; }
    .modal-main-image img { object-fit: contain; background: #000; }
    .modal-thumbnails { height: 30%; padding: 12px; }
    .modal-thumbnail { width: 80px; height: 60px; }
    .modal-header h2 { font-size: 32px; }
    .modal-info p { font-size: 16px; }
}

/* Modal Main Image */
.modal-main-image {
    position: relative;
    height: 75%;
    overflow: hidden;
    background: #000;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.modal-nav-btn:hover {
    background: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Modal Thumbnails */
.modal-thumbnails {
    height: 25%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 45px) / 4); /* 4 items with 15px gaps */
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    background: #f0f1f3;
}

.modal-thumbnail {
    width: 100%;
    height: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumbnail.active {
    border-color: #333333;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnail:hover {
    transform: scale(1.05);
}

/* Modal Right Content */
.modal-header {
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-category {
    display: inline-block;
    background: #333333;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info {
    margin-bottom: 30px;
}

.modal-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.modal-details {
    border-top: 2px solid #f0f1f3;
    padding-top: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f3;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-item span {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .project-modal {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-content {
        flex-direction: column;
    }
    
    .modal-left {
        flex: none;
        height: 60%;
    }
    
    .modal-right {
        flex: none;
        height: 40%;
        padding: 20px;
    }
    
    .modal-main-image {
        height: 80%;
    }
    
    .modal-thumbnails {
        height: 20%;
        padding: 10px;
    }
    
    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-info p {
        font-size: 14px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

/* Mobile footer: show only copyright text */
@media (max-width: 768px) {
    .footer-brand,
    .footer-navigation {
        display: none !important;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
    }

    .footer-copyright p {
        margin: 0;
        font-size: 12px;
    }
}