/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--red);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color Variables - Sophisticated & Professional */
:root {
    --primary: #2c5530; /* Deep forest green */
    --secondary: #6b8e7e; /* Muted sage green */
    --accent: #e63946; /* Vibrant red for emphasis */
    --red: #c53030; /* Rich red for important elements */
    --purple: #6d28d9; /* Royal purple */
    --black: #1a202c; /* Deep black */
    --dark: #2c3e50; /* Charcoal blue */
    --light: #f8f9fa; /* Clean white */
    --text: #4a5568; /* Soft gray */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--red);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #9b2c2c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

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

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--red), var(--purple), var(--accent));
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    display: flex;
    align-items: center;
    flex-shrink: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--red);
    margin-left: 8px;
}

.logo img {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.logo i {
    margin-right: 12px;
    color: var(--accent);
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--red);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--black);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.9)), url('../images/image1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 220px 0 140px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    color: white;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    font-weight: 600;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.service-card:nth-child(2) .service-icon {
    background-color: var(--purple);
}

.service-card:nth-child(4) .service-icon {
    background-color: var(--primary);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--black);
}

.service-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeInRight 1s ease;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background-color: var(--light);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 10px;
}

.stat-item:nth-child(2) .stat-number {
    color: var(--purple);
}

.stat-item:nth-child(3) .stat-number {
    color: var(--primary);
}

.stat-item:nth-child(4) .stat-number {
    color: var(--accent);
}

.stat-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
}

/* Projects Section */
.projects {
    background-color: var(--light);
}

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

.project-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow);
}

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

.project-item:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 32, 44, 0.9), rgba(26, 32, 44, 0.7));
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.project-category {
    display: inline-block;
    background-color: var(--red);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-category.purple {
    background-color: var(--purple);
}

.project-category.green {
    background-color: var(--primary);
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    text-align: center;
}

.testimonial-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-item {
    background-color: var(--light);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--red);
    position: absolute;
    top: -25px;
    left: -15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--red);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 8px;
    color: var(--black);
    font-size: 1.2rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--red);
    font-weight: 600;
}

.rating {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-details {
    margin-bottom: 50px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-detail i {
    margin-right: 20px;
    color: var(--red);
    font-size: 1.4rem;
    margin-top: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1.05rem;
    transition: var(--transition);
    background-color: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--black);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--red);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--red);
    transform: translateY(-4px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.95rem;
    color: #bbb;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.whatsapp-float::after {
    content: 'Chat with us!';
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--red);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 100;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #9b2c2c;
    transform: translateY(-4px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    nav ul {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block; /* Show hamburger on mobile */
        margin-right: 1rem; /* Add space from edge */
    }
    
    nav {
        display: none; /* Hide full nav on mobile; toggle via JS */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        padding: 25px 0;
    }

    nav.active {
        display: block;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0 25px;
        gap: 20px;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .logo img {
        width: 70px !important; /* Doubled from 60px */
        height: 60px !important; /* Doubled from 55px */
        margin-right: 0.25rem; /* Reduced space between logo and title */
    }
    
    .logo span {
        font-size: 1.2rem; /* Doubled from 0.875rem */
    }
    
    .header-container {
        padding: 0.75rem 1rem; /* Reduce padding for more space */
    }

    .hero {
        background-attachment: scroll;
        padding: 160px 0 100px;
    }

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

    .hero p {
        font-size: 1.15rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 25px;
        left: 25px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .hero p {
        font-size: 1.05rem;
    }

    section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .logo img {
        width: 70px !important; /* Doubled from 50px */
        height: 60px !important; /* Doubled from 45px */
        margin-right: 0.15rem; /* Reduced space */
    }
    
    .logo {
        font-size: 1.2rem; /* Doubled from 0.75rem */
    }

    .mobile-menu {
        margin-right: 0.75rem; /* Adjust for smaller screens */
    }
}

/* Team Section */
.team {
    background-color: var(--light);
}

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

.team-member {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.member-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.team-member:hover .member-img img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-member:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--red);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.member-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--black);
}

.member-role {
    color: var(--red);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--text);
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    background-color: var(--light);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(44, 85, 48, 0.2);
}

/* Responsive adjustments for team section */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .member-img {
        height: 220px;
    }
    
    .member-info {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .member-img {
        height: 200px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .member-img {
        height: 250px;
    }
    
    .member-info {
        padding: 25px;
    }
    
    .member-info h3 {
        font-size: 1.4rem;
    }
    
    .member-bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .member-img {
        height: 220px;
    }
    
    .member-info {
        padding: 20px;
    }
}