@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a; /* Slate 900 */
    --primary-light: #1e293b; /* Slate 800 */
    --secondary: #eab308; /* Yellow 500 */
    --secondary-hover: #ca8a04; /* Yellow 600 */
    --accent: #3b82f6; /* Blue 500 */
    --bg-light: #f8fafc; /* Slate 50 */
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b; /* Slate 500 */
    --text-light: #ffffff;
    --border-color: #e2e8f0; /* Slate 200 */
    --whatsapp-color: #25D366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

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

.btn-white-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 10px 0;
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-socials {
    display: flex;
    gap: 16px;
}

.top-socials a:hover {
    color: var(--secondary);
}

/* Main Navigation Header */
.main-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo Setup */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo-sub {
    font-size: 0.675rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Navbar */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--secondary);
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 100;
    border-top: 3px solid var(--secondary);
    padding: 10px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
}

.dropdown-item a:hover {
    background-color: var(--bg-light);
    color: var(--secondary);
    padding-left: 25px;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 550px;
    max-height: 800px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    overflow: hidden;
    background-color: var(--primary);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Key Features Row */
.features-bar {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-wrapper {
    background-color: rgba(234, 179, 8, 0.1);
    color: var(--secondary);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--secondary);
    border-left: 5px solid var(--secondary);
    border-radius: 12px 0 0 0;
    z-index: -1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-desc {
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

/* Services Grid */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 24px;
    background-color: rgba(234, 179, 8, 0.08);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-card-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card-link:hover {
    color: var(--secondary);
}

/* Projects Section */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.3));
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--bg-white);
}

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

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

.project-title {
    font-size: 1.1rem;
    color: var(--bg-white);
    margin-bottom: 4px;
}

.project-loc {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
}

/* Brands Bar */
.brands-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 35px 0;
    background-color: var(--bg-light);
}

.brands-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.6;
    transition: var(--transition-normal);
}

.brand-logo:hover {
    opacity: 1;
    color: var(--primary);
}

/* Neden Tespar & Testimonial Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
}

.why-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-list {
    margin: 25px 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.why-list-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.testimonial-card {
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 12px;
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    background-image: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.quote-icon {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 30px;
    left: 40px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
}

.testimonial-author h5 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--secondary);
    width: 24px;
    border-radius: 4px;
}

/* Footer Styles */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px 0;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-desc {
    margin: 20px 0;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.footer-socials a:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact i {
    color: var(--secondary);
    font-size: 1rem;
    margin-top: 4px;
}

/* Contact Form inside Footer */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form input, .footer-form textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--bg-white);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-form input:focus, .footer-form textarea:focus {
    border-color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-form button {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    padding: 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

.footer-form button:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* Inner Page Styles (General Breadcrumbs & Layouts) */
.page-header {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 60px 0;
    position: relative;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.breadcrumbs span {
    color: var(--bg-white);
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.25rem;
    color: var(--secondary);
    background-color: var(--bg-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-wrapper h3 {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.form-control:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.map-section {
    width: 100%;
    height: 400px;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Products Detail / Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-item-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.product-item-img {
    height: 220px;
    overflow: hidden;
}

.product-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.product-item-content {
    padding: 25px;
}

.product-item-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    cursor: pointer;
    transition: var(--transition-normal);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #20ba5a;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Nav Drawer Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 2000;
    transition: var(--transition-normal);
    padding: 30px 20px;
    color: var(--bg-white);
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    font-size: 1.5rem;
    color: var(--bg-white);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-link:hover {
    color: var(--secondary);
}

.mobile-submenu {
    display: none;
    margin-top: 10px;
    padding-left: 15px;
    flex-direction: column;
    gap: 10px;
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-submenu-link:hover {
    color: var(--secondary);
}

/* Overlay for Mobile Nav */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none; /* Hide top info bar on mobile/tablet for simplicity */
    }
    
    .nav-menu, .header-cta {
        display: none; /* Hide desktop nav and desktop offering button */
    }
    
    .menu-toggle {
        display: flex; /* Show mobile menu trigger */
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero {
        height: auto;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

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

/* ==========================================================================
   MEGA MENU STYLES (Professional 3-Column Layout)
   ========================================================================== */

/* Relative context for mega menu positioning */
.main-header .container {
    position: relative;
}

/* Static positioning for parent list-item to allow full container width */
.nav-item.has-mega {
    position: static !important;
}

/* Mega Menu Dropdown Panel */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 12px 12px;
    border-top: 4px solid var(--secondary);
    padding: 35px 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    pointer-events: none; /* Prevent hover triggers when hidden */
}

/* Hover triggers */
.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Column Headings */
.mega-col h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
    font-family: var(--font-heading);
}

.mega-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

/* Mega Menu Item Lists */
.mega-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-list-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: transparent;
    transition: var(--transition-normal);
}

.mega-list-item a:hover {
    background-color: var(--bg-light);
    transform: translateX(6px);
}

.mega-list-icon {
    font-size: 1.35rem;
    color: var(--secondary);
    background-color: rgba(234, 179, 8, 0.08);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.mega-list-item a:hover .mega-list-icon {
    background-color: var(--secondary);
    color: var(--primary);
}

.mega-list-text h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
    font-family: var(--font-heading);
}

.mega-list-text p {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Mega Menu Highlight Banner */
.mega-banner {
    background-color: var(--primary);
    background-image: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    padding: 35px;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary);
}

.mega-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(234, 179, 8, 0.04);
    z-index: 1;
}

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

.mega-banner h4 {
    color: var(--secondary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.mega-banner p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.mega-banner .btn {
    position: relative;
    z-index: 2;
}

/* Hover gap bridge for smooth transitions between nav-link and dropdowns */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    z-index: -1;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    z-index: -1;
}

/* Adjust dropdown layout positions slightly to ensure overlapping hover states */
.mega-menu {
    top: calc(100% - 2px) !important;
}

.dropdown-menu {
    top: calc(100% - 2px) !important;
}
