/* Root Variables */
:root {
    --primary-color: #FFB703; /* Logo yellow */
    --secondary-color: #FB8500; /* Logo orange */
    --accent-color: #219EBC; /* Bright teal for buttons and icons */
    --dark-accent: #8B1C1C; /* Logo maroon for headings */
    --text-color: #333333; /* Dark gray for body text */
    --light-bg: #F5F5DC; /* Logo background beige */
    --white: #ffffff;
}

/* Reset Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #EBEBE3;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    position: relative;
}

.nav-links li a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-links li a.active {
    color: var(--dark-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--dark-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Ensure above other elements */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color); /* #333333 */
    margin: 2px 0;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Sections */
.hero, .about-hero, .services-hero, .contact-hero, .calculator-hero, .design-examples-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content, .about-hero .container, .services-hero .container, .contact-hero .container, .calculator-hero .container, .design-examples-hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1, .about-hero h1, .services-hero h1, .contact-hero h1, .calculator-hero h1, .design-examples-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p, .about-hero p, .services-hero p, .contact-hero p, .calculator-hero p, .design-examples-hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

/* Hero Animation */
.animate-hero {
    animation: fadeInDown 1s ease forwards;
}

.hero h1.animate-hero, .about-hero h1.animate-hero, .services-hero h1.animate-hero, 
.contact-hero h1.animate-hero, .calculator-hero h1.animate-hero, .design-examples-hero h1.animate-hero {
    animation-delay: 0.2s;
}

.hero p.animate-hero, .about-hero p.animate-hero, .services-hero p.animate-hero, 
.contact-hero p.animate-hero, .calculator-hero p.animate-hero, .design-examples-hero p.animate-hero {
    animation-delay: 0.4s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn.primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn.primary:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* About Section */
.about-content {
    padding: 5rem 0;
    background: var(--white);
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--dark-accent);
    margin-bottom: 1rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: var(--dark-accent);
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    min-height: 350px;
    opacity: 0;
    transform: translateX(-50px);
}

.service-card.visible {
    animation: slideIn 0.5s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.service-card .btn {
    display: inline-block;
    width: auto;
}

/* Contact Section */
.contact-content {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h2, .contact-details h2 {
    font-size: 2rem;
    color: var(--dark-accent);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    resize: vertical;
    height: 150px;
}

.contact-form button {
    width: 100%;
}

.contact-details p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-details p i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Calculator Sections */
.calculator-content {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form h2 {
    font-size: 2rem;
    color: var(--dark-accent);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.result {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.result h2 {
    font-size: 1.5rem;
    color: var(--dark-accent);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.result p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 0.5s ease;
}

.reduction-tip {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 1rem;
}

/* Calculator Intro Section */
.calculator-intro {
    padding: 3rem 0;
    background: var(--white);
    text-align: center;
}

.calculator-intro .intro-content {
    background: rgba(33, 158, 188, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.intro-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon i {
    font-size: 2rem;
}

.calculator-intro h2 {
    font-size: 2.5rem;
    color: var(--dark-accent);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.intro-divider {
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.calculator-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    line-height: 1.8;
}

.intro-btn {
    margin-top: 1rem;
}

/* Calculator Tips Section */
.calculator-tips {
    padding: 3rem 0;
    background: var(--light-bg);
    text-align: center;
}

.calculator-tips h2 {
    font-size: 2rem;
    color: var(--dark-accent);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.tips-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.tips-list li {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.tips-list li:before {
    content: "✔";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Calculator Facts Section */
.calculator-facts {
    padding: 3rem 0;
    background: var(--white);
    text-align: center;
}

.calculator-facts h2 {
    font-size: 2rem;
    color: var(--dark-accent);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.facts-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.facts-list li {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
}

.facts-list li:before {
    content: "🌱";
    position: absolute;
    left: 0;
    top: 0;
}

/* Design Examples Sections */
.design-examples-section {
    padding: 3rem 0;
    background: var(--white);
    text-align: center;
}

.design-examples-section h2 {
    font-size: 2.5rem;
    color: var(--dark-accent);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.example-categories {
    margin-bottom: 2rem;
}

.example-category {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
}

.example-category h3 {
    font-size: 1.8rem;
    color: var(--dark-accent);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: left;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(33, 158, 188, 0.8), rgba(139, 28, 28, 0.8)); /* Fallback gradient */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer; /* Indicate clickable */
}

.example-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.example-item:hover::before {
    opacity: 0.2;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.example-item img:not([src]),
.example-item img[src=""] {
    background: url('/images/placeholder.jpg') no-repeat center center;
    background-size: cover;
}

.example-item:hover img {
    opacity: 0.9;
}

/* Specific Background Images for Each Box (Fallback) */
.pv-syst-1 { background-image: url('/images/previews/pv-syst-example-1.jpg'); }
.pv-syst-2 { background-image: url('/images/previews/pv-syst-example-2.jpg'); }
.autocad-2d { background-image: url('/images/previews/autocad-2d-example.jpg'); }
.sld { background-image: url('/images/previews/sld-example.jpg'); }
.connection { background-image: url('/images/previews/connection-diagram-example.jpg'); }
.plot-area { background-image: url('/images/previews/plot-area-example.jpg'); }
.sketchup-1 { background-image: url('/images/previews/sketchup-3d-example-1.jpg'); }
.sketchup-2 { background-image: url('/images/previews/sketchup-3d-example-2.jpg'); }
.financial-1 { background-image: url('/images/previews/financial-calc-example-1.jpg'); }
.financial-2 { background-image: url('/images/previews/financial-calc-example-2.jpg'); }
.mobile-1 { background-image: url('/images/previews/mobile-app-example-1.jpg'); }
.mobile-2 { background-image: url('/images/previews/mobile-app-example-2.jpg'); }
.software-1 { background-image: url('/images/previews/software-dev-example-1.jpg'); }
.software-2 { background-image: url('/images/previews/software-dev-example-2.jpg'); }
.policy-1 { background-image: url('/images/previews/policy-electricity-act-2003.jpg'); }
.policy-2 { background-image: url('/images/previews/policy-national-solar-mission.jpg'); }
.policy-3 { background-image: url('/images/previews/policy-rec.jpg'); }
.policy-4 { background-image: url('/images/previews/policy-pm-kusum.jpg'); }
.policy-5 { background-image: url('/images/previews/policy-tariff-2006.jpg'); }
.sketchup-video { background-image: url('/images/previews/sketchup-video-example.jpg'); }

.design-examples-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 1.5rem auto;
    line-height: 1.8;
}

/* Policy Request Form */
.policy-request-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-request-form h3 {
    font-size: 1.8rem;
    color: var(--dark-accent);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.policy-request-form p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.policy-request-form .btn {
    width: 100%;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: var(--dark-accent);
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card.visible {
    animation: fadeIn 0.5s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-card h3 {
    font-size: 1.2rem;
    color: var(--dark-accent);
    font-family: 'Montserrat', sans-serif;
}

/* Footer */
footer {
    background: #9A4B45;
    color: var(--white);
    padding: 4rem 0 2rem;
    opacity: 0;
    transform: translateY(20px);
}

footer.visible {
    animation: fadeIn 0.5s ease forwards;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
}

.footer-col p i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.8rem;
    color: var(--white);
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1;
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.floating-cta:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top.show {
    display: block;
}

.back-to-top i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 60px;
    border: 5px solid var(--primary-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1, .about-hero h1, .services-hero h1, .contact-hero h1, .calculator-hero h1, .design-examples-hero h1 {
        font-size: 2.5rem;
    }

    .hero p, .about-hero p, .services-hero p, .contact-hero p, .calculator-hero p, .design-examples-hero p {
        font-size: 1.3rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        background: #000000; /* Force black for better visibility on mobile */
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #EBEBE3;
        padding: 1rem;
        flex-direction: column;
        z-index: 1000; /* Ensure above other content */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-links li a {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .about-grid {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid, .calculator-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .example-item {
        height: 150px;
    }

    .example-category h3 {
        font-size: 1.5rem;
    }

    .floating-cta {
        bottom: 10px;
        right: 10px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 10px;
        right: 60px;
        padding: 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .service-card h3 {
        flex-direction: column;
        text-align: center;
        white-space: normal;
        font-size: 1.2rem; /* Reduced font size */
    }

    .service-card h3 i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .service-card {
        min-height: 300px; /* Adjusted for mobile */
        padding: 1.5rem;
    }

    .calculator-intro h2 {
        font-size: 2rem;
    }

    .intro-icon {
        width: 50px;
        height: 50px;
    }

    .intro-icon i {
        font-size: 1.5rem;
    }

    .design-examples-section h2 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
    }

    .calculator-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
    }

    .example-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Apply fadeIn animation to existing elements */
.service-card, .about-image img, .contact-form, .calculator-form, .result, .testimonial-card {
    animation: fadeIn 0.5s ease-out forwards;
}