/* =========================================
   Elecnova - Global Styles & Variables
   ========================================= */

:root {
    /* Colors Palette */
    --color-primary: #0F3D5E;
    --color-btn: #F4B400;
    --color-btn-hover: #d9a000;
    --color-text-main: #1A1A1A;
    --color-text-muted: #4A5565;
    --color-text-light: #6A7282;
    --color-bg-white: #FFFFFF;
    --color-border: #D1D5DC;
    --color-bg-light: #E5E7EB;
    
    /* Typography */
    --font-main: 'Istok Web', sans-serif;
    
    /* Layout Variables */
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --border-radius: 6px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-primary);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--color-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 180, 0, 0.3);
}

.btn-submit {
    background-color: var(--color-btn);
    color: var(--color-text-main);
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--color-btn-hover);
}

/* =========================================
   Header
   ========================================= */
.main-header {
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0; /* Minimized padding to keep header height reasonable with large logo */
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: none; /* Shows on mobile */
}

.brand-img {
    height: auto;
    max-height: 100px; /* Big for desktop */
    transition: var(--transition);
}

.logo img {
    height: auto;
    max-height: 100px;
    transform: scale(1.2) translateY(7px) translateX(-8px); /* Larger and slightly down */
    transform-origin: left center;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.mobile-only {
    display: none;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--color-btn);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* =========================================
   Contact Form Section
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-main);
    transition: var(--transition);
    background-color: #FAFAFA;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234A5565%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(15, 61, 94, 0.1);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 24px;
    }
}

.contact-quote {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.contact-quote p {
    font-size: 1.6rem;
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.9;
}

.contact-quote i {
    color: var(--color-btn); /* Yellow quote icons */
    font-size: 1.2rem;
    vertical-align: top;
    margin: 0 10px;
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background-color: #4F5D6B;
    color: var(--color-bg-white);
    padding-top: 70px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-brand .brand-img {
    max-height: 120px; /* Larger desktop footer logo */
}

.company-info h3 {
    color: var(--color-bg-white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company-info .tagline {
    color: var(--color-btn);
    font-size: 1rem;
    font-weight: 500;
}

.accordion-icon {
    display: none !important; /* Hidden on desktop */
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-bg-white);
    margin-bottom: 24px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-btn);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 14px;
    color: var(--color-border);
    font-size: 0.95rem;
}

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

.footer-contact i {
    color: var(--color-btn);
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.footer-middle {
    padding-bottom: 40px;
}

.footer-middle hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-bg-white);
    font-size: 1.2rem; border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background-color: var(--color-btn);
    color: var(--color-primary);
    transform: translateY(-4px);
    border-color: var(--color-btn);
}

.footer-bottom {
    background-color: #D9D9D9;
    padding: 20px 0;
    color: #1A1A1A;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: #1A1A1A;
    font-weight: 600;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-container {
        position: relative;
    }
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }
    .header-container .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .logo-text {
        display: block;
        font-size: 1.6rem;
    }
    .main-header .brand-img,
    .main-header .logo img {
        max-height: 65px; /* Restored size for header on mobile */
        width: auto; /* Fixes the compressed aspect ratio issue */
    }
    .main-nav {
        /* Add transition instead of display: none */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        
        max-height: 0;
        padding: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    .main-nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 20px 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .mobile-only {
        display: block;
    }
    .header-action {
        display: none; /* Hide devis button in header on mobile */
    }

    /* Mobile Footer Accordion */
    .footer-top {
        flex-direction: column;
        align-items: stretch; /* Full width for accordions */
        text-align: left; /* Keep readable */
        width: 100%;
    }
    .footer-brand {
        text-align: center; /* keep logo centered */
        margin: 0 auto 30px auto;
    }
    
    .footer-logo-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-brand .brand-img {
        max-height: 80px; /* Larger on mobile as requested */
    }
    
    .footer-accordion-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0 !important;
    }
    .footer-accordion-btn::after {
        display: none !important; /* Hide desktop underline */
    }
    .accordion-icon {
        display: inline-block !important;
    }
    .footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    .footer-links.active .footer-accordion-content,
    .footer-contact.active .footer-accordion-content {
        max-height: 400px;
        opacity: 1;
        padding-top: 15px;
    }
    .footer-links.active .accordion-icon,
    .footer-contact.active .accordion-icon {
        transform: rotate(180deg);
    }
    
    .footer-bottom-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }

    /* Hide HR on mobile by default, show when Contact Info is expanded */
    .footer-middle hr {
        display: none;
    }
    
    .footer-top:has(.footer-contact.active) + .footer-middle hr {
        display: block;
    }
}

/* =========================================
   Accueil - Hero Section
   ========================================= */
.hero-section {
    position: relative;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(85vh - 110px); /* Dynamic adjustment to fit the tall header */
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 61, 94, 0.88) 0%, rgba(79, 93, 107, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeIn 1s ease-out;
    padding-bottom: 60px; /* Pushes the entire block up to create space for the stats rectangle below */
}

.hero-title-main {
    font-size: 5.5rem;
    color: var(--color-bg-white);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle-accent {
    font-size: 2.2rem;
    color: var(--color-btn);
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-text-normal {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-bg-white);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Overlapping Box */
.stats-overlap-container {
    position: relative;
    z-index: 10;
    margin-top: -100px; /* Increased overlap for visual balance */
}

.stats-box {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 25px 30px;
    border: 1px solid var(--color-border);
}

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

.stat-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   Accueil - Nos Services Section
   ========================================= */
.services-section {
    padding: 150px 0 100px;
    background-color: var(--color-bg-white);
}

.services-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-header h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.services-header p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
}

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

.service-card {
    background: var(--color-bg-white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    min-height: 380px; 
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 61, 94, 0.08);
    border-color: var(--color-primary);
}

.service-icon {
    color: var(--color-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.service-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: auto; /* Pushes the "En savoir plus" link to the bottom natively */
}

.service-link {
    margin-top: 25px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.service-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   Accueil - Pourquoi Choisir ELECNOVA
   ========================================= */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.why-choose-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.why-choose-content {
    flex: 1;
    background-color: #4F5D6B; /* Big gray rectangle */
    padding: 60px;
    color: var(--color-bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-title {
    font-size: 2.8rem;
    color: var(--color-bg-white);
    margin-bottom: 30px;
    line-height: 1.2;
}

.why-title .accent-text {
    color: var(--color-btn); /* Yellow */
}

.why-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.why-choose-image {
    flex: 1;
    min-width: 600px;
    background-color: var(--color-bg-light);
}

.image-frame-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E5E7EB;
    color: var(--color-text-muted);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .why-choose-container {
        flex-direction: column;
    }
    .why-choose-image {
        min-width: auto;
        height: 350px;
    }
}

/* =========================================
   Accueil - CTA Banner
   ========================================= */
.cta-banner {
    background-color: var(--color-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    z-index: 1;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: rgba(244,180,0,0.04);
    z-index: 1;
}

.cta-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.cta-banner-text h2 {
    color: var(--color-bg-white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-banner-text p {
    color: var(--color-bg-light);
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }

    .cta-banner {
        padding: 40px 0;
    }
    
    .cta-banner-text h2 {
        font-size: 1.6rem;
    }
    
    .cta-banner-text p {
        font-size: 1rem;
    }
    
    .hero-title-main { font-size: 2.8rem; }
    .hero-subtitle-accent { font-size: 1.4rem; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-overlap-container {
        margin-top: -55px; /* adjust gap considering smaller box */
    }
    
    .stats-box {
        flex-direction: row; 
        padding: 18px 5px;
        gap: 0;
    }
    
    .stat-item:not(:last-child) {
        border-right: 1px solid var(--color-border);
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .stat-item {
        padding: 0 5px;
    }
    
    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-height: auto;
        padding: 25px 20px;
    }
    
    .service-card:nth-child(n+4) {
        display: none; /* Show only first 3 cards on mobile */
    }
    
    .service-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .service-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }
    
    .service-link {
        margin-top: 15px;
        font-size: 0.95rem;
    }
    
    .services-section {
        padding-top: 90px;
        padding-bottom: 60px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }

    /* Contact Quote Mobile */
    .contact-quote {
        margin-top: 30px;
        padding-top: 20px;
    }

    .contact-quote p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .contact-quote i {
        font-size: 0.9rem;
        margin: 0 5px;
    }
}

/* =========================================
   Accueil - Nos Derniers Projets
   ========================================= */
.latest-projects-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.latest-projects-section .section-title {
    color: var(--color-text-main);
    margin-bottom: 50px;
}

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

.project-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

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

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

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #FFF;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: capitalize;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-yellow { background-color: #F4B400; }
.badge-blue { background-color: #0F3D5E; }
.badge-gray { background-color: #4F5D6B; }

.project-info {
    padding: 25px;
}

.project-name {
    font-size: 1.3rem; 
    color: var(--color-text-main); /* Black */
    margin-bottom: 5px;
    font-weight: 700;
}

.project-location {
    color: var(--color-text-light); /* Gray - Wait, user said "the text with black is represent a location" */
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}


.project-details-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-details-link:hover {
    color: var(--color-btn);
}

.project-details-link i {
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(n+3) {
        display: none; /* Show fewer projects on mobile */
    }
}

