:root {
    --primary: #cc8e47;
    --secondary: #736357;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles with Improved Scroll Handling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    word-break: break-word;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Preloader with Improved Mobile Support */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header with Mobile Scroll Fixes */
header {
    position: fixed;
    width: 100%;
    height: 100px;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 5px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 100px;
    transition: transform 0.4s ease;
}

.logo:hover img {
    transform: scale(1.05) rotate(-5deg);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.4s ease;
    border-radius: 3px;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section with Mobile Viewport Fixes */
.hero {
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/gallery/bg-image.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Mobile Menu Scroll Fixes */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100dvh - 100px);
        background-color: white;
        transition: var(--transition);
        z-index: 999;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    header,
    header.scrolled {
        height: 80px;
    }

    .logo img {
        height: 60px;
    }
}

/* Improved Mobile Typography */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Scroll Reveal Animation with Mobile Optimization */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Back to Top Button with Mobile Positioning */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Keyframes for Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: floatUpDown 4s ease-in-out infinite;
}

/* About Section with 3D Card Effect */
.about {
    padding: 100px 5%;
    background-color: var(--light);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    bottom: -8px;
    left: 0;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text);
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1.2rem;
}

.feature-item:hover .feature-icon {
    transform: rotate(15deg) scale(1.1);
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    perspective: 1000px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.about-image:hover img {
    transform: rotateY(10deg) scale(1.03);
}

.image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Services Section with Hover Effects */
.services {
    padding: 100px 5%;
    background-color: white;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--light), transparent);
    z-index: 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 142, 71, 0.1), rgba(115, 99, 87, 0.1));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.service-content h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.service-card:hover .service-content h3::after {
    width: 100%;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Why Choose Us Alternate Design */
.why-choose-us-alt {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #cc8e47, #736357);
}

.why-choose-us-alt .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-us-alt .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-choose-us-alt .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.why-choose-us-alt .section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #cc8e47;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.why-choose-us-alt .section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.why-choose-us-alt .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns by default */
    gap: 30px;
    margin-bottom: 60px;
}


@media (max-width: 768px) {
    .why-choose-us-alt .features-grid {
        grid-template-columns: 1fr;
        /* 1 column on smaller screens */
    }
}

.why-choose-us-alt .feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.why-choose-us-alt .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 142, 71, 0.1) 0%, rgba(115, 99, 87, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.why-choose-us-alt .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.why-choose-us-alt .feature-card:hover::before {
    opacity: 1;
}

.why-choose-us-alt .feature-icon-container {
    text-align: center;
    margin-bottom: 20px;
}

.why-choose-us-alt .hexagon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #cc8e47, #a37a3d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    color: white;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.why-choose-us-alt .feature-card:hover .hexagon {
    transform: rotate(15deg) scale(1.1);
    background: linear-gradient(135deg, #736357, #5a4e45);
}

.why-choose-us-alt .feature-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.why-choose-us-alt .feature-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.why-choose-us-alt .feature-details {
    background: rgba(245, 245, 245, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 3px solid #cc8e47;
}

.why-choose-us-alt .feature-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-us-alt .feature-details li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.why-choose-us-alt .feature-details li i {
    color: #cc8e47;
    position: absolute;
    left: 0;
    top: 4px;
}

.why-choose-us-alt .stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.why-choose-us-alt .stat-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 150px;
}

.why-choose-us-alt .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #cc8e47;
    margin-bottom: 5px;
}

.why-choose-us-alt .stat-label {
    color: #666;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .why-choose-us-alt .section-title {
        font-size: 2rem;
    }

    .why-choose-us-alt .feature-card {
        padding: 25px;
    }

    .why-choose-us-alt .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .why-choose-us-alt .stat-item {
        margin-bottom: 20px;
    }
}

/* Projects Section with Masonry Grid */
.projects {
    padding: 100px 5%;
    background-color: white;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    grid-row: span 1;
}

.project-card:nth-child(3n+1) {
    grid-row: span 2;
}

.project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
    transform: translateY(0);
}

/* Contact Section with Floating Form */
.contact {
    padding: 100px 5%;
    background-color: var(--light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 5px;
}

.info-text p,
.info-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;

}



.info-text a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 142, 71, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::after {
    left: 100%;
}


@media (max-width: 600px) {
    .contact-container {
        flex-direction: column;
        padding: 0;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

   

    .contact-form {
        padding: 20px;
    }



    .submit-btn {
        width: 80%;
    }
}


/* Footer with Wave Effect */
footer {
    position: relative;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: white;
    padding: 100px 5% 30px;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23f8f9fa" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23f8f9fa" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f8f9fa"/></svg>') no-repeat;
    background-size: cover;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    border-radius: 3px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .submit-btn {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* Back to Top Button with Animation */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        transition: var(--transition);
        z-index: 999;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .project-card:nth-child(3n+1) {
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 25px;
    }

    .footer-wave {
        top: -50px;
        height: 50px;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: floatUpDown 4s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}