/* ==========================================
   MAHAKARYA INTEGRASI TEKNOLOGI - CSS
   Professional IT Solution Integrator
   ========================================== */

/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
    /* Colors - Light Mode */
    --primary-color: #e31e24;
    --secondary-color: #1a1a1a;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.5);

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --line-height: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Container */
    --container-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   DARK MODE VARIABLES
   ========================================== */
[data-theme="dark"] {
    /* Colors - Dark Mode (Dark Gray) */
    --primary-color: #e31e24;
    --secondary-color: #ffffff;
    --text-dark: #e8e8e8;
    --text-light: #b8b8b8;
    --white: #1a1a1a;
    --light-gray: #252525;
    --border-color: #3a3a3a;
    --overlay-dark: rgba(0, 0, 0, 0.85);
    --overlay-light: rgba(0, 0, 0, 0.6);

    /* Background Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-card: #2a2a2a;

    /* Shadows for Dark Mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Dark Mode - Logo Navigation */
[data-theme="dark"] .logo img {
    content: url('../Image/Logo_MIT-whitetext.png');
}

/* Dark Mode - Hero Section */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(227, 30, 36, 0.6) 100%);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

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

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

ul, ol {
    list-style: none;
}

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

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

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

.section-dark {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: var(--font-size-large);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: var(--spacing-md) auto;
}

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

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
    text-align: center;
    cursor: pointer;
}

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

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

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

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

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

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

/* Get Quote Image Button */
.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

.quote-btn-img {
    height: 40px;
    width: auto;
    display: block;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

.btn-quote:hover .quote-btn-img {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Underline effect for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown indicator - using inline icon instead */
.dropdown > .nav-link {
    padding-right: 20px;
}

.dropdown > .nav-link::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform var(--transition-speed) ease;
    display: inline-block;
}

.dropdown:hover > .nav-link::before {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    padding: var(--spacing-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

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

.dropdown-menu li {
    margin-bottom: var(--spacing-xs);
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-dark);
    border-radius: 3px;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Navigation Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Dark Mode Toggle */
.theme-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

.theme-toggle i {
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.theme-toggle:hover i {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle i.fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle i.fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle i.fa-sun,
:root:not([data-theme]) .theme-toggle i.fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle i.fa-moon,
:root:not([data-theme]) .theme-toggle i.fa-moon {
    display: block;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.lang-btn {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 10px;
    transition: all var(--transition-speed) ease;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-divider {
    color: var(--text-light);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-speed) ease;
}

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

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

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

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(227, 30, 36, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* ==========================================
   ABOUT BRIEF SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.about-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.about-list li {
    padding: var(--spacing-xs) 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
}

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

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   SERVICES OVERVIEW
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

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

.service-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

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

.service-content {
    padding: var(--spacing-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.service-content p {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */
.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-choose-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.why-choose-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--light-gray);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-dark);
    font-weight: 500;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.why-choose-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   BLOG PREVIEW SECTION
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.blog-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: var(--font-size-small);
    font-weight: 600;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.blog-content p {
    color: var(--text-light);
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-md);
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    gap: 10px;
}

/* ==========================================
   CONTACT CTA SECTION
   ========================================== */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c41a1f 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: var(--spacing-md);
    color: #ffffff !important;
}

.footer-logo {
    width: 200px;
    margin-bottom: var(--spacing-sm);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-small);
    line-height: 1.8;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-small);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-small);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-small);
}

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

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-speed) ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ==========================================
   PAGE HERO (Internal Pages)
   ========================================== */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: 70px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-hero p {
    font-size: var(--font-size-large);
    opacity: 0.9;
}

/* ==========================================
   CONTENT WRAPPER (About Page)
   ========================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.content-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.content-text p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.core-competencies {
    margin-top: var(--spacing-lg);
}

.core-competencies h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.competency-list li {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--light-gray);
    border-radius: 8px;
}

.competency-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.competency-list strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.competency-list p {
    color: var(--text-light);
    font-size: var(--font-size-small);
    margin: 0;
}

.content-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

/* ==========================================
   VISION & MISSION CARDS
   ========================================== */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.vm-card {
    background-color: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

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

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c41a1f 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
}

.vm-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
}

.vm-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-hero {
    margin-bottom: var(--spacing-xl);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.team-expertise {
    margin-top: var(--spacing-xl);
}

.expertise-section h3,
.professional-attitude h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

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

.expertise-item {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: 10px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.expertise-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--spacing-md);
}

.expertise-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.expertise-item p {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.professional-attitude {
    background-color: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: 10px;
}

.professional-attitude p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.attitude-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.attitude-item {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 10px;
    text-align: center;
}

.attitude-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c41a1f 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-sm);
}

.attitude-item h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1280px) {
    /* Adjust navigation for medium screens */
    .nav-right {
        gap: 1rem;
    }

    .navbar {
        padding: 0.8rem var(--spacing-md);
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .about-content,
    .why-choose-content,
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    /* Ensure nav elements stay visible */
    .nav-right {
        gap: 0.8rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    .theme-toggle i {
        font-size: 0.85rem;
    }

    .quote-btn-img {
        height: 35px;
    }

    .lang-btn {
        padding: 5px 9px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        gap: 0;
        transition: left var(--transition-speed) ease;
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: flex;
        width: 100%;
        padding: var(--spacing-sm);
        align-items: center;
    }

    /* Remove the ::after underline effect on mobile */
    .nav-link::after {
        display: none;
    }

    /* Dropdown container for mobile - make it flex to accommodate toggle button */
    .dropdown {
        position: relative;
    }

    .dropdown > .nav-link {
        width: calc(100% - 40px);
        padding-right: 0;
    }

    /* Hide default dropdown indicator */
    .dropdown > .nav-link::before {
        display: none;
    }

    /* Dropdown toggle button */
    .dropdown-toggle-mobile {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        font-size: 0.8rem;
        transition: transform var(--transition-speed) ease;
    }

    .dropdown.active .dropdown-toggle-mobile {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        display: none;
        background-color: var(--light-gray);
        padding-left: var(--spacing-md);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    /* Adjust nav-right spacing for mobile */
    .nav-right {
        gap: var(--spacing-sm);
    }

    /* Adjust Dark Mode Toggle for mobile */
    .theme-toggle {
        width: 28px;
        height: 28px;
        border-width: 1.5px;
    }

    .theme-toggle i {
        font-size: 0.8rem;
    }

    /* Adjust Get Quote button for mobile */
    .quote-btn-img {
        height: 28px;
    }

    /* Adjust language switcher for mobile */
    .language-switcher {
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .lang-divider {
        font-size: 0.85rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .team-hero img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .nav-right {
        gap: 8px;
    }

    .theme-toggle {
        width: 26px;
        height: 26px;
    }

    .theme-toggle i {
        font-size: 0.75rem;
    }

    .quote-btn-img {
        height: 26px;
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 0.8rem;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: var(--font-size-small);
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
    }
}
