/* ==========================================
   1. CORE VARIABLES & RESET CONFIGS
   ========================================== */
:root {
    --primary-color: #ff4d4d;
    --secondary-color: #0f2537; /* කළු වෙනුවට තද වෘත්තීය නිල් පැහැයක් */
    --dark-bg: #f7f9fc;         /* පසුබිම ලා පැහැයට වෙනස් කළා */
    --light-bg: #ffffff;        /* ප්‍රධාන පසුබිම සුදු පැහැයට වෙනස් කළා */
    --text-color: #333333;      /* කියවීමට පහසු තද අකුරු */
    --text-light: #ffffff;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --transition-fast: all 0.3s ease;
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   2. REUSABLE COMPONENTS & BUTTONS
   ========================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

/* ==========================================
   3. MAIN HEADER & NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Header එක සුදු පැහැයට හැරෙව්වා */
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: #444444; /* කළු/අළු අකුරු ලා පසුබිමට ගැළපෙන ලෙස */
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    display: inline-flex;  
    align-items: center;   
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color); /* ලෝගෝ අකුරු තද පැහැයට */
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* ==========================================
   THEME SWITCHER DROPDOWN STYLES
   ========================================== */
.theme-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.theme-btn {
    background: #f0f2f5;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
}

.theme-dropdown {
    position: absolute;
    top: 45px; 
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 0;
    list-style: none;
    width: 120px;
    display: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.theme-dropdown.show { 
    display: block; 
}

.theme-dropdown li {
    padding: 10px 15px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.theme-dropdown li:hover, 
.theme-dropdown li.active-theme {
    background: #ff4d4d;
    color: #fff;
}

/* ==========================================
   4. HERO SECTION (WELCOME AREA)
   ========================================== */
.hero-section {
    min-height: 100vh;
    background-color: var(--dark-bg) !important; /* කළු වෙනුවට ලස්සන ලා පසුබිමක් */
    color: var(--text-color); /* අකුරු තද පැහැයට */
    display: flex;
    align-items: center;
    padding: 100px 8% 60px 8%;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 4rem;
    color: var(--secondary-color);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block; /* වැකිය සාමාන්‍ය පරිදි ස්ථාවරව තියාගන්න */
}

/* 🎯 දැන් මේ Animation එක ක්‍රියාත්මක වෙන්නේ අග තියෙන ඉරට විතරයි */
.typing-cursor {
    color: #ff4d4d; /* Cursor එකේ පාට (Malyx රතු) */
    font-weight: 300;
    margin-left: 5px;
    display: inline-block;
    animation: cursor-blink 0.7s infinite;
}

/* 🎯 Cursor එක විතරක් පෙනි පෙනි නැතිවෙන Animation එක */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.1rem;
    color: #555555;
    margin: 25px 0 35px 0;
    max-width: 550px;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.05));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================
   5. SERVICES & ABOUT SECTIONS
   ========================================== */
.services-section, .about-section {
    padding: 80px 8%;
    background-color: var(--light-bg);
}

.about-section {
    background-color: var(--dark-bg); /* Section දෙක වෙන් කර හඳුනාගැනීමට */
}

.web-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px; /* Full width එකට ළඟා වීමට වැඩි කළා */
    width: 100%;
}

.clean-web-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-fast);
}

.clean-web-img:hover {
    transform: scale(1.02);
}

/* ==========================================
   6. PORTFOLIO WITH DYNAMIC FILTERS
   ========================================== */
.portfolio-section {
    padding: 80px 8%;
    background-color: var(--light-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--box-shadow-sm);
    color: var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* ==========================================
   7. CREATIVE TEAM SECTION
   ========================================== */
.team-section {
    padding: 80px 8%;
    background-color: var(--dark-bg);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    width: 280px;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    border-color: var(--primary-color);
}

.team-img-placeholder {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 77, 77, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   8. TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 80px 8%;
    background-color: var(--secondary-color); /* මෙය තද වර්ණයෙන් පැවතීම කැපී පෙනේ */
    color: var(--text-light);
    text-align: center;
}

.testimonials-section .section-title {
    color: var(--text-light);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.client-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 25px;
}

.client-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.85rem;
    color: #aaaaaa;
}

/* ==========================================
   9. CONTACT FORM & SYSTEM VALIDATION
   ========================================== */
.contact-section {
    padding: 80px 8%;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 650px;
    margin: 0 auto 50px auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
    transition: var(--transition-fast);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
}

.form-btn {
    width: 100%;
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 14px;
}

/* Validation System CSS rules */
.error-msg {
    display: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.invalid-field {
    border: 2px solid var(--primary-color) !important;
    background-color: #fff2f2 !important;
}

.success-box {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-left: 5px solid #28a745;
    margin-top: 20px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================
   10. INTERACTIVE STAR RATING STYLES
   ========================================== */
.rating-container {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: var(--box-shadow-sm);
    border: 1px solid var(--border-color);
}

.rating-container h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.stars {
    margin-bottom: 10px;
}

.star {
    cursor: pointer;
    font-size: 2.3rem;
    color: #dddddd;
    transition: color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.star:hover {
    transform: scale(1.15);
}

.star.rated {
    color: #ffcc00;
}

#rating-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================
   11. PROFESSIONAL FOOTER ARCHITECTURE
   ========================================== */
.main-footer {
    background-color: var(--secondary-color);
    color: #e0e0e0;
    padding: 70px 8% 20px 8%;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.brand-col .footer-logo i {
    color: var(--primary-color);
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-info-list li i {
    color: var(--primary-color);
    width: 15px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.hubs-list li {
    font-size: 0.9rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hubs-list li i {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #999999;
}

.design-badges {
    display: flex;
    gap: 12px;
}

.design-badges span {
    background-color: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: default;
}

.design-badges span i {
    color: #00a8ff;
}

/* ==========================================
   12. LIGHTBOX MODAL CONFIGURATION
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border: 3px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* ==========================================
   13. STICKY FLOATING SOCIAL STYLES
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e03e3e;
    transform: translateY(-3px);
}

/* Floating Social Icons Styling (දකුණු පැත්තට ගත් පසු) */
.instagram-float, .tiktok-float, .facebook-float, .whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* මෙන්න මෙතන තමයි left වෙනුවට right දැම්මේ */
.instagram-float { bottom: 140px; right: 28px; background: #e1306c; }
.tiktok-float { bottom: 200px; right: 28px; background: #000000; }
.facebook-float { bottom: 260px; right: 28px; background: #1877f2; }
.whatsapp-float { bottom: 80px; right: 28px; background: #25d366; font-size: 28px; }

.instagram-float:hover, .tiktok-float:hover, .facebook-float:hover, .whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    color: #fff;
}

/* ==========================================
   14. RESPONSIVE MEDIA QUERIES (MOBILE)
   ========================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-content p {
        margin: 25px auto 35px auto;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 5%;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        max-height: 350px;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: #ffffff; /* මොබයිල් මෙනු එක තද පැහැති නිසා අකුරු සුදු කළා */
    }
    .nav-links a::after {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-container {
        padding: 25px;
    }
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* පින්තූර අඩු වුණත් grid එක හැමතිස්සෙම මැදටම තියන්න */
#portfolioGrid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    width: 100%; 
}

/* ==========================================
   SOCIAL ICONS BRAND-COLORED RIPPLE EFFECT
   ========================================== */
.instagram-float, .tiktok-float, .facebook-float, .whatsapp-float {
    position: fixed;
    z-index: 999;
}

/* 1. Facebook - නිල් පාට වළල්ල */
.facebook-float {
    animation: fbRipple 2.5s infinite ease-in-out;
}
@keyframes fbRipple {
    0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.6), 0 2px 10px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 15px rgba(24, 119, 242, 0), 0 2px 10px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0), 0 2px 10px rgba(0,0,0,0.15); }
}

/* 2. TikTok - ලා රතු/නියොන් පාට වළල්ල */
.tiktok-float {
    animation: ttRipple 2.5s infinite ease-in-out;
    animation-delay: 0.6s; 
}
@keyframes ttRipple {
    0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.6), 0 2px 10px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 15px rgba(254, 44, 85, 0), 0 2px 10px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0), 0 2px 10px rgba(0,0,0,0.15); }
}

/* 3. Instagram - රෝස/රතු පාට වළල්ල */
.instagram-float {
    animation: igRipple 2.5s infinite ease-in-out;
    animation-delay: 1.2s;
}
@keyframes igRipple {
    0% { box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.6), 0 2px 10px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 15px rgba(225, 48, 108, 0), 0 2px 10px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(225, 48, 108, 0), 0 2px 10px rgba(0,0,0,0.15); }
}

/* 4. WhatsApp - ලා කොළ පාට වළල්ල */
.whatsapp-float {
    animation: waRipple 2.5s infinite ease-in-out;
    animation-delay: 1.8s;
}
@keyframes waRipple {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 2px 10px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 2px 10px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 2px 10px rgba(0,0,0,0.15); }
}

/* Hover කළාම ඇනිමේෂන් එක නතර වෙන්න */
.instagram-float:hover, .tiktok-float:hover, .facebook-float:hover, .whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* පෝන් එක සඳහා පමණක් වූ විශේෂ CSS (මෙය අන්තිමට දාන්න) */
@media (max-width: 768px) {
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        grid-template-columns: 1fr !important;
        padding: 40px 20px !important;
        gap: 30px !important;
    }

    .hero-content {
        order: 1 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-image {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-image img {
        width: 80% !important;
        margin: 0 auto !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }
}

/* ==========================================
   MOBILE HERO SECTION FIX
   ========================================== */
@media (max-width: 768px) {

    .hero-section {
        padding: 120px 20px 60px 20px !important;
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 25px !important;
        width: 100% !important;
    }

    .hero-content {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content h1 {
        font-size: 2.3rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin: 0 auto 15px auto !important;
        width: 100% !important;
    }

    .hero-content p {
        text-align: center !important;
        margin: 20px auto !important;
        max-width: 95% !important;
    }

    .hero-image {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 10px !important;
    }

    .hero-image img {
        width: 85% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .btn-primary {
        margin-top: 15px !important;
    }
}
