@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #2E8B57;
    --primary-dark: #1F6B42;
    --secondary: #3CB371;
    --accent: #FFA500;
    --accent-dark: #E59400;
    --light: #F5F5F5;
    --lighter: #FAFAFA;
    --dark: #333333;
    --darker: #222222;
    --gray: #777777;
    
    /* Fluid spacing system */
    --space-unit: 1rem;
    --space-xxs: calc(0.25 * var(--space-unit));
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    --space-xxl: calc(5.25 * var(--space-unit));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--lighter);
    -webkit-text-size-adjust: 100%;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.learn-more {
    color: var(--primary);
    font-weight: bolder;
}


img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Components */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Header Styles */
header {
    background-color: rgba(46, 139, 87, 0.95);
    color: white;
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

header.scrolled {
    padding: var(--space-xs) 0;
    background-color: rgba(46, 139, 87, 0.98);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: var(--space-xs);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--space-md);
    position: relative;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--space-xs) 0;
    display: block;
}

.login a {
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid #fff;
    border-radius: 5px;
}

.login a:hover {
    border: none;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        z-index: 1000;
        padding-top: var(--space-xl);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--space-sm) 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 48px;
        margin-right: 0.5rem;
    }

    .logo span {
        margin-left: 0.25rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1588591795084-1770cb3be374?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--lighter));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    padding: var(--space-xl) var(--space-sm);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--darker);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1 0 auto;
    min-width: 180px;
}

.btn:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
}

/* Services Section */
.services {
    padding: var(--space-xl) 0;
    background: var(--lighter);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--lighter);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.section-title p {
    max-width: 700px;
    margin: var(--space-sm) auto 0;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    background: white;
    padding: var(--space-lg) var(--space-md);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: inline-block;
    background: rgba(46, 139, 87, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--darker);
}

/* About Section */
.about {
    padding: var(--space-xl) 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text {
    margin-bottom: 10px;
}
.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--gray);
}

.about-features {
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.feature-icon {
    color: var(--accent);
    font-size: 1.3rem;
    margin-right: var(--space-sm);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transform: rotate(-3deg);
    transition: all 0.5s ease;
    max-width: 600px;
    margin: 0 auto;
}

.about-image:hover {
    transform: rotate(0deg);
}

.about-image img {
    width: 100%;
    height: 500px;
    display: block;
    transition: all 0.5s ease;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Stats Section */
.stats {
    padding: var(--space-xl) 0;
    background: linear-gradient(rgba(46, 139, 87, 0.9), rgba(46, 139, 87, 0.9)), url('https://images.unsplash.com/photo-1602143407151-7111542de6e8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.stats h2 {
    color: white;
}

.stats p {
    color: #ddd;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-item {
    padding: var(--space-lg);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xxs);
    color: var(--accent);
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: var(--space-xl) 0;
    background: var(--lighter);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--lighter);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info {
    background: white;
    padding: var(--space-lg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.contact-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: var(--space-sm);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xxs);
    color: var(--darker);
}

.contact-text p, .contact-text a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--accent);
}

.social-contact {
    display: flex;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.social-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-contact a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Form css */
.contact-form {
    background: white;
    padding: var(--space-lg);
    border-radius: 10px;
  }

  .contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
  }

  .contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-group label {
    display: block;
    margin-bottom: var(--space-xxs);
    font-weight: 500;
    color: var(--darker);
  }

  .form-control {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--primary);
  }

  textarea.form-control {
    min-height: 150px;
    resize: vertical;
  }

  .submit-btn {
    background: var(--accent);
    color: var(--darker);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
  }

  .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-top: 3px solid #3498db; /* primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

  .input-error {
    border-color: #ff4444 !important;
  }

  .error-label {
    color: #ff4444;
  }

  .alert {
    text-align: center;
    padding: 2rem;
  }
  
  .alert.success {
    color: #2ecc71;
  }
  
  .alert.error {
    color: #e74c3c;
  }
  
  .btn-home {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
  }
  
  .btn-home:hover {
    background-color: #2980b9;
  }
  



/* Footer */
footer {
    background: var(--darker);
    color: white;
    padding: var(--space-xl) 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--darker);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-about p {
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: white;
}

.footer-logo span {
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: var(--space-md);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -5px;
}

.footer-contact p {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent);
    margin-right: var(--space-sm);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--darker);
    transform: translateY(-5px);
}

.footer-newsletter p {
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: var(--space-sm);
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.newsletter-btn {
    background: var(--accent);
    color: var(--darker);
    border: none;
    padding: 0 var(--space-md);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-height: 50px;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.copyright {
    text-align: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--space-xl);
}

.copyright p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (min-width: 576px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .container {
        width: 90%;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding-top: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .btn-group {
        flex-direction: row;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-image img {
        aspect-ratio: 4/3;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Footer designed by */

.design {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.design a {
    color: var(--accent);
}


/* Team Section - No Images Version */
.team {
    padding: var(--space-xl) 0;
    background: white;
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.team-member {
    background: var(--lighter);
    border-radius: 10px;
    padding: var(--space-lg);
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: inline-block;
    background: rgba(46, 139, 87, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-member:hover .member-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.member-info h3 {
    color: var(--primary);
    margin-bottom: var(--space-xxs);
}

.role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.bio {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.social-links a {
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 139, 87, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

/* Mobile-specific optimizations (max-width: 767px) */
@media (max-width: 767px) {
    /* Base adjustments */
    html {
        font-size: 15px; /* Slightly larger base font size */
    }
    
    body {
        line-height: 1.6; /* Better line spacing for mobile */
    }
    
    h1 {
        font-size: 2rem !important; /* Larger headings */
    }
    
    h2 {
        font-size: 1.6rem !important;
    }
    
    section {
        padding: var(--space-lg) 0 !important; /* Reduce section padding */
    }
    
    /* Hide decorative elements */
    .team::before,
    .contact::before,
    .about::before,
    .services::before {
        display: none;
    }
    
    /* Hero section */
    .hero {
        min-height: 80vh;
        padding-top: var(--space-xl);
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: var(--space-md);
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm);
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
    }
    
    .about-image {
        order: -1; /* Move image to top */
        margin-bottom: var(--space-md);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
    }
    
    .contact-info {
        padding: var(--space-md);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg);
    }
    
    .footer-col {
        margin-bottom: var(--space-md);
    }
    
    /* Navigation adjustments */
    .nav-links li {
        margin-left: 0;
    }
    
    /* Reduce padding in containers */
    .container {
        width: 94% !important;
        padding: 0 var(--space-xs) !important;
    }
    
    /* Form elements */
    .form-control {
        padding: var(--space-sm);
    }
    
    /* Hide less important elements */
    .design {
        font-size: 0.8rem;
    }
    
    /* Ensure all text is visible */
    p, li, a, span {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Very small screens (max-width: 480px) */
@media (max-width: 480px) {
    /* Even larger text for very small screens */
    html {
        font-size: 16px;
    }
    
    /* Reduce spacing further */
    section {
        padding: var(--space-md) 0 !important;
    }
    
    /* Stats single column */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Smaller team member cards */
    .team-member {
        padding: var(--space-md);
    }
    
    /* Simpler footer */
    .copyright {
        text-align: center;
        padding: var(--space-sm) 0;
    }
    
    /* Contact info more compact */
    .contact-detail {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: var(--space-xxs);
    }
}