* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #FFD23F;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-2: linear-gradient(135deg, #004E89 0%, #1A759F 100%);
    --gradient-3: linear-gradient(135deg, #FFD23F 0%, #FFC300 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --vh: 1vh;
    /* CSS Custom Properties for Viewport Height */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo img {
    height: 50px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.call-btn {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.call-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.call-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: calc(var(--vh, 1vh) * 100);
    background: var(--gradient-2);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    z-index: 1;
    /* Lower than other sections */
    /* Account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    /* Top padding to account for navbar */
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out;
    min-height: 1.2em;
    /* Prevent layout shift during typing animation */
    display: flex;
    align-items: flex-start;
}

.highlight {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1s;
}

.floating-card:nth-child(3) {
    animation-delay: -2s;
}

.floating-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.floating-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.floating-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
    /* Ensure sections are above hero */
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--bg-light);
    position: relative;
    z-index: 10;
    /* Ensure it's above hero elements */
    margin-top: 0;
    /* Remove any negative margins */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
    background-clip: padding-box;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top: 5px solid var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--gradient-1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Portfolio */
.portfolio {
    background: var(--bg-light);
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slideshow-nav button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slideshow-nav button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-1);
    color: var(--white);
    padding: 25px;
    transform: translateY(100%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.portfolio-overlay i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 15px;
}

/* Contact */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-details p,
.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gradient-2);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-main {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    border-radius: 50%;
}

.footer-main p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-details p {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-details a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-details a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-main {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact-details p {
        justify-content: center;
    }
}

/* Emergency Call Button */
.emergency-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.emergency-call a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.emergency-call a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section Mobile Optimization */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 20px 15px;
        justify-content: center;
        align-items: center;
        transform: none !important;
        /* Disable transforms on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        min-height: 2.2em;
        /* Prevent layout shift */
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    /* Mobile Button Improvements */
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 18px 25px;
        font-size: 1rem;
    }

    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    /* Emergency Call Button Mobile */
    .emergency-call {
        bottom: 20px;
        right: 20px;
    }

    .emergency-call a {
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }

    .emergency-call a span {
        display: none;
    }

    /* Floating Cards Mobile */
    .floating-card {
        margin: 10px;
        padding: 20px 15px;
        position: static;
        /* Remove any absolute positioning on mobile */
        animation: none;
        /* Disable floating animation on mobile */
    }

    .floating-card h3 {
        font-size: 1rem;
    }

    .floating-card p {
        font-size: 0.8rem;
    }

    /* Slideshow Mobile */
    .slideshow-container {
        margin: 0 auto 40px;
    }

    .slide img {
        height: 250px;
    }

    .slideshow-nav button {
        padding: 10px 15px;
        font-size: 1rem;
    }

    /* Service Cards Mobile */
    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Feature Cards Mobile */
    .feature-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 20px 25px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    /* Contact Items Mobile */
    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.3rem;
    }
}

/* Extra Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
        z-index: 10;
        /* Higher z-index on mobile */
    }

    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo img {
        height: 40px;
    }

    .hero {
        min-height: 90vh;
        padding-top: 100px;
        margin-bottom: 0;
        /* Ensure no negative margins */
        transform: none !important;
        /* Disable transforms on mobile */
        /* Extra space for mobile navbar */
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        min-height: 2.4em;
        /* Account for line breaks on mobile */
        text-align: center;
        animation: fadeInUp 1s ease-out;
        /* Alternative animation for mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .floating-card {
        margin: 8px;
        padding: 15px;
    }

    .floating-card i {
        font-size: 2rem;
    }

    .floating-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .floating-card p {
        font-size: 0.75rem;
    }

    /* Form improvements for small screens */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Emergency button smaller */
    .emergency-call {
        bottom: 15px;
        right: 15px;
    }

    .emergency-call a {
        width: 55px;
        height: 55px;
        padding: 12px;
    }

    .emergency-call i {
        font-size: 1.2rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .floating-card {
        padding: 15px;
        margin: 8px;
    }

    section {
        padding: 50px 0;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:hover .portfolio-overlay {
        transform: translateY(100%);
    }

    .portfolio-item.active .portfolio-overlay {
        transform: translateY(0);
    }

    .service-card:hover::before {
        opacity: 0;
    }

    .service-card:hover .service-icon {
        transform: none;
        background: var(--gradient-2);
    }

    .feature-card:hover {
        transform: none;
        border-top: 5px solid transparent;
    }

    .feature-card:hover .feature-icon {
        transform: none;
    }

    /* Make buttons more touch-friendly */
    .btn-primary,
    .btn-secondary,
    .contact-item,
    .service-card,
    .feature-card,
    .portfolio-item {
        min-height: 44px;
        /* Apple's recommended minimum touch target */
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .nav-menu {
        height: calc(100vh - 80px);
        height: calc(-webkit-fill-available - 80px);
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero {
        min-height: calc(100vh - 80px);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 10px;
    }
}

/* Ultra-small mobile screens */
@media (max-width: 360px) {
    .hero {
        padding-top: 120px;
        /* Extra space for very small screens */
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        min-height: 3em !important;
    }

    .hero-content {
        padding: 30px 10px 20px;
    }
}