/* ==========================================
   ROOT & RESET STYLES
   ========================================== */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #0f172a; /* Deeper, more modern tech-dark */
    --accent-blue: #3498db;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
    border: 2px solid var(--light-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevents horizontal scrolling issues on mobile */
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Section Padding for consistency */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    background: linear-gradient(135deg, var(--dark-color) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader img {
    height: 80px;
    animation: pulse-soft 2s infinite;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.top-bar {
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
    font-size: 0.85rem;
    color: #888;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-social a {
    margin-left: 15px;
    text-decoration: none;
    color: #888;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2000; /* Elevated to stay above the overlay */
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--dark-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .logo-img {
    height: 55px; /* Consistent with your size preference */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px; /* Added spacing between logo and text */
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 65px;
    width: auto;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    object-fit: contain; /* Transparent background assumed in asset */
    transition: var(--transition);
}

.mobile-nav-logo {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: white;
    opacity: 0.9;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 2100; /* Highest priority for interaction */
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger Animation to 'X' */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   PAGE HEADER (Generic for sub-pages)
   ========================================== */
.page-header {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 8rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.7)), 
                url('images/1.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 700;
}

/* Premium Gradient Text for Headings */
.hero-content h1, .about h2, .experience h2, .services h2, .projects h2, .page-header h1 {
    background: linear-gradient(135deg, var(--dark-color) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px; /* Updated per request */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06); /* Elegant, soft shadow */
    object-fit: cover;
    aspect-ratio: 16 / 9;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 6rem 0; /* Removed background image to avoid conflict with hero section */
    background-color: #fff; /* Explicitly set background to white */
    background-size: cover;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pillar h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.pillar ul {
    list-style: none;
}

.pillar ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pillar ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pillar-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pillar ul {
    list-style: none;
    padding-left: 0;
}

.pillar ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.pillar ul li span {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Image Slider */
.about-image {
    position: relative;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio for responsiveness */
    width: 100%; /* Ensure it takes full width in its grid column */
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
left: 0; /* Start off-screen to the right */
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
    transform: translateX(0); /* Slide into view */
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background: linear-gradient(135deg, var(--secondary-color), #145a32); /* Darkened for contrast */
    color: white;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.exp-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.exp-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.exp-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.exp-card p {
    font-weight: 500; /* Thicker weight for sunlight readability */
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 6rem 0;
    background-color: #fff;
}

.services h2, .projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle, .projects-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.team-category-title {
    grid-column: 1 / -1;
    text-align: left;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    width: fit-content;
    font-weight: 700;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid #f1f1f1;
    position: relative;
    overflow: hidden;
}

.service-image-header {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-header img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-tag {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card-full {
    grid-column: 1 / -1;
}

.service-card:hover,
.service-card-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3,
.service-card-full h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p,
.service-card-full p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.project-list {
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    padding-left: 1rem;
}

.project-list li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.project-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   CORE BUSINESS SECTION
   ========================================== */
.core-business {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(39, 174, 96, 0.05));
}

.core-business h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    font-weight: 500;
    line-height: 1.5;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image-placeholder {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: var(--primary-color);
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.position {
    color: #666;
    padding: 0 1rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.bio {
    color: #888;
    padding: 0 1rem 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

.team-support {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.team-support h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-support p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    padding: 6rem 0;
    background-color: #fff;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.projects-table {
    margin-top: 3rem;
    /* Ensure horizontal scroll on small screens */
    overflow-x: auto;
}

/* ==========================================
   DYNAMIC STATS GRID
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
    text-align: center;
    background: var(--dark-color);
    color: white;
    border-radius: 20px;
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==========================================
   SOLAR CALCULATOR
   ========================================== */
.calculator-section {
    background: var(--light-color);
    padding: 6rem 0;
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-result {
    background: var(--dark-color);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.calc-result h4 { color: var(--primary-color); font-size: 2rem; }

/* ==========================================
   PROJECT SHOWCASE & FILTERS
   ========================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.project-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(26, 82, 40, 0.9);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-details {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ==========================================
   STRATEGY SECTION
   ========================================== */
.strategy {
    padding: 6rem 0; /* Removed background image to avoid conflict with work showcase */
    text-align: center; 
    background: linear-gradient(rgba(26, 82, 40, 0.85), rgba(26, 82, 40, 0.9)); /* Kept gradient overlay */
    background-size: cover;
}

.strategy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.strategy > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.strategy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.point {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.point h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.point p {
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   WORK SHOWCASE SECTION
   ========================================== */
.work-showcase {
    padding: 6rem 0;
    background-color: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-image {
    position: relative;
}

.main-work-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.trust-list {
    list-style: none;
    margin-top: 1.5rem;
}

.trust-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.trust-list span {
    color: var(--primary-color);
    font-weight: 900;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-sidebar {
    display: grid;
    gap: 1.5rem;
}

.contact-featured-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    height: 200px;
    object-fit: cover;
}

.contact-details {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child { margin-bottom: 0; }

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.whatsapp-link {
    font-weight: 600;
    color: #25D366 !important; /* WhatsApp Green */
}

.contact-item a {
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.fb-link {
    font-weight: 600;
    color: #1877F2 !important; /* Official Facebook Blue */
    text-decoration: underline !important;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.small {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.form-header { margin-bottom: 1rem; }
.form-header h3 { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 0.5rem; }

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(rgba(39, 174, 96, 0.95), rgba(26, 82, 40, 0.98)),
                url('images/4.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
}

/* Force visibility if JavaScript fails */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}

.footer-image img {
    width: 100%;
    border-radius: 10px;
    max-height: 200px;
    object-fit: contain; /* Changed to contain to show full image */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    padding: 8px;
    opacity: 1 !important;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-size: 0.9rem;
}

.current-year {
    font-weight: 600;
}

/* ==========================================
   ANIMATIONS (Intersection Observer)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.9) translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered entry for grid items */
.experience-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.experience-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.experience-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.experience-grid .reveal:nth-child(4) { transition-delay: 0.4s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.5s; }

/* Button Pulse for CTAs */
@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-buttons .btn-primary {
    animation: pulse-soft 3s infinite;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff; /* High-visibility white background */
        box-shadow: -10px 0 50px rgba(0,0,0,0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px 1.5rem 1.5rem; /* Reduced padding */
        transform: translateX(100%);
        opacity: 1;
        max-height: none;
        overflow-y: auto;
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2100; 
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
        width: min(280px, 85vw); /* Adjusted for better fit */
    }

    .mobile-nav-logo {
        display: flex;
        align-items: center;
        gap: 8px; /* Slightly reduced gap */
        margin-bottom: 0.8rem; /* Slightly reduced margin */
        padding: 5px 0 10px; /* Slightly reduced padding */
        border-bottom: 1px solid #f1f1f1; /* Thinner border */
        width: 100%;
    }

    .mobile-nav-logo img {
        height: 35px; /* Slightly reduced height */
        background: white;
        padding: 3px; /* Slightly reduced padding */
        border-radius: 5px; /* Slightly reduced border-radius */
        object-fit: contain;
    }

    .mobile-nav-logo .brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .mobile-nav-logo .brand-primary { color: var(--dark-color); font-weight: 700; font-size: 0.95rem; } /* Slightly reduced font size */
    .mobile-nav-logo .brand-secondary { color: var(--secondary-color); font-weight: 600; font-size: 0.65rem; } /* Slightly reduced font size */

    .nav-list {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-list li {
        width: 100%;
        backface-visibility: hidden; /* Fixes potential blurriness during transform */
        opacity: 0;
        transform: translateX(20px); /* Reduced initial transform */
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-menu.active .nav-list li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-list li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active .nav-list li:nth-child(2) { transition-delay: 0.08s; }
    .nav-menu.active .nav-list li:nth-child(3) { transition-delay: 0.11s; }
    .nav-menu.active .nav-list li:nth-child(4) { transition-delay: 0.14s; }
    .nav-menu.active .nav-list li:nth-child(5) { transition-delay: 0.17s; }
    .nav-menu.active .nav-list li:nth-child(6) { transition-delay: 0.20s; }
    .nav-menu.active .nav-list li:nth-child(7) { transition-delay: 0.23s; }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7); 
        z-index: 1500; /* CRITICAL: Must be lower than navbar (2000) to avoid blocking clicks */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1rem; /* Slightly reduced font size */
        width: 100%;
        text-align: left;
        padding: 0.7rem 0; /* Slightly reduced padding */
        border-bottom: 1px solid #f1f1f1;
        display: block;
        letter-spacing: 0.5px;
        color: var(--dark-color) !important; /* Dark text on white bg */
        font-weight: 600;
        opacity: 1;
        cursor: pointer; /* Ensures mobile browsers treat it as clickable */
    }

    .nav-link:hover {
        color: var(--primary-color) !important;
        padding-left: 0.8rem; /* Adjusted padding for consistency */
        background: var(--light-color);
        border-radius: 5px;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        transition: var(--transition);
        opacity: 1;
        font-weight: 500; /* Slightly reduced font weight */
    }

    .nav-link.active {
        color: white !important;
        background: var(--primary-color); /* Kept primary color for active */
        padding-left: 1rem; /* Adjusted padding for consistency */
        border-radius: 8px;
        opacity: 1;
    }

    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero > .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        width: auto;
        min-width: 200px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about h2,
    .services h2,
    .team h2,
    .projects h2,
    .strategy h2,
    .contact h2,
    .experience h2,
    .core-business h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-card-full {
        grid-column: auto;
    }

    table {
        /* Make table scrollable horizontally on small screens */
        width: 100%;
        display: block;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
    }

    .project-card {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .top-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 0.75rem;
    }

    .top-social {
        display: none; /* Hidden on small mobile to keep the header clean */
    }

    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 40px;
        width: auto;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .about h2,
    .services h2,
    .team h2,
    .projects h2,
    .strategy h2,
    .contact h2,
    .experience h2,
    .core-business h2 {
        font-size: 1.5rem;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    table {
        font-size: 0.8rem;
    }

    th,
    td {
        padding: 0.5rem 0.3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   FLOATING ACTION BUTTONS (TO THE MAX)
   ========================================== */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3000;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.fab-btn.whatsapp {
    background-color: #25D366;
}

.fab-btn.quote-btn {
    background-color: #3498db; /* The Blue Icon from the screenshots */
}

.fab-btn.scroll-top {
    background-color: var(--dark-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.fab-btn.scroll-top.visible {
    opacity: 0.8;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    opacity: 1;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ==========================================
   GALLERY SLIDESHOW
   ========================================== */
.gallery-slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 4rem auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    background: var(--dark-color);
    height: 600px;
}

/* Modern Gallery Grid for "List of Images" */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    perspective: 1500px; /* Essential for 3D transformations on child elements */
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backface-visibility: hidden; /* Prevents flickering during 3D transforms */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Enhanced Reveal for Gallery Items (Book-like opening) */
.gallery-item.reveal {
    opacity: 0;
    transform: rotateY(-90deg) translateZ(-100px) scale(0.8); /* Start rotated, pushed back, and slightly smaller */
    transform-origin: left center; /* Pivot point for rotation, like a book spine */
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.gallery-item.reveal.active {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0) scale(1); /* Flip open, come forward, and scale to normal */
}

/* Staggered entry for gallery grid items (extended for more items) */
.gallery-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.4s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.5s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.6s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.7s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.8s; }
.gallery-grid .reveal:nth-child(9) { transition-delay: 0.9s; }
.gallery-grid .reveal:nth-child(10) { transition-delay: 1.0s; }
.gallery-grid .reveal:nth-child(11) { transition-delay: 1.1s; }
.gallery-grid .reveal:nth-child(12) { transition-delay: 1.2s; }
.gallery-grid .reveal:nth-child(13) { transition-delay: 1.3s; }
.gallery-grid .reveal:nth-child(14) { transition-delay: 1.4s; }
.gallery-grid .reveal:nth-child(15) { transition-delay: 1.5s; }
.gallery-grid .reveal:nth-child(16) { transition-delay: 1.6s; }
.gallery-grid .reveal:nth-child(17) { transition-delay: 1.7s; }
.gallery-grid .reveal:nth-child(18) { transition-delay: 1.8s; }
.gallery-grid .reveal:nth-child(19) { transition-delay: 1.9s; }
.gallery-grid .reveal:nth-child(20) { transition-delay: 2.0s; }
.gallery-grid .reveal:nth-child(21) { transition-delay: 2.1s; }

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1); /* Start slightly zoomed in */
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1); /* Settle to normal scale */
    pointer-events: auto;
    z-index: 2;
    animation: kenBurns 20s linear infinite alternate;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.15) translate(1%, 1%); }
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.5) rotate(-15deg); /* Vortex entry state */
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    pointer-events: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg); /* Vortex active state */
    pointer-events: auto;
    z-index: 2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.gallery-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: var(--transition);
    user-select: none;
    background: rgba(0,0,0,0.2);
    border: none;
    z-index: 10;
}

.gallery-nav:hover {
    background-color: var(--primary-color);
}

.gallery-next {
    right: 0;
}

.gallery-dots {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}
}

/* ==========================================
   LIGHTBOX STYLES
   ========================================== */
#lightbox {
    position: fixed;
    z-index: 9999; /* Ensure it's on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.8); /* Start smaller for zoom-in effect */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#lightbox.active img {
    transform: scale(1);
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

#quoteForm select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    background-color: white;
    margin-bottom: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 2rem;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.lightbox-nav:hover { background: var(--primary-color); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) { .lightbox-nav { display: none; } }

/* ==========================================
   BLOG STYLES
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
