/* ===========================
   Village Bliss Production
   Modern Theme - Black & Gold
   =========================== */

:root {
    /* Backgrounds - Black & Gold Theme */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #151515;
    --lighter-black: #2a2a2a;
    --darker-black: #050505;
    --medium-black-bg: #1f1f1f;

    /* Black Gradients for Visual Variety */
    --gradient-1: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    --gradient-2: linear-gradient(to bottom, #2a2a2a, #151515);
    --gradient-3: linear-gradient(to right, #1a1a1a, #1f1f1f);
    --gradient-4: linear-gradient(135deg, #151515, #0a0a0a);
    --gradient-5: linear-gradient(to top, #0a0a0a, #1a1a1a);
    --gradient-6: linear-gradient(to bottom right, #2a2a2a, #151515);

    /* Accent Colors - Yellow/Gold (Logo Harmony) */
    --accent-yellow: #ffd700;
    --accent-yellow-dark: #b8960a;
    --accent-yellow-light: #ffe44d;

    /* Neutrals - Dark Scale */
    --dark-grey: #333333;
    --medium-grey: #444444;
    --light-grey: #555555;
    --silver: #666666;
    --silver-light: #777777;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;

    /* Utility */
    --black: #000000;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-2);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    color: var(--accent-yellow);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

button {
    cursor: pointer;
}

/* Ensure all interactive elements have pointer cursor */
button,
a,
input[type="submit"],
input[type="button"],
.submit-btn,
.nav-link,
.hamburger,
.project-card,
.social-link {
    cursor: pointer !important;
}

/* ===========================
   NAVIGATION MENU
   =========================== */

#menu-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* Fade menu when scrolled */
#menu-container.scrolled {
    opacity: 0.6;
}

/* Restore full opacity on hover */
#menu-container:hover {
    opacity: 1 !important;
}

/* Ensure all child elements inherit the transition */
#menu-container * {
    transition: inherit;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

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

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.contact-btn-nav {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-dark));
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: var(--black);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.contact-btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--accent-yellow);
    transition: all var(--transition-speed) ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--lighter-black), var(--card-bg));
        width: 70%;
        max-width: 300px;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(255, 215, 0, 0.3);
        height: calc(100vh - 80px);
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .contact-btn-nav {
        position: fixed;
        right: 70px;
        top: 20px;
        z-index: 1001;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* ===========================
   MAIN CONTENT
   =========================== */

main {
    padding-top: 100px;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
    background: var(--gradient-6);
    border-radius: 10px;
}

.section {
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--gradient-2);
    border-radius: 10px;
}

.section:nth-child(even) {
    background: var(--gradient-5);
}

.section:nth-child(odd) {
    background: var(--gradient-1);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 70vh;
    padding: 4rem 5%;
    overflow: hidden;
    background: var(--gradient-1);
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(21, 21, 21, 0.95));
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

/* Ensure hero text is always visible */
.hero-content > * {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-content h1 {
    color: #ffd700 !important;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
}

.hero-content p {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2), 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

.tagline {
    font-size: 1.3rem;
    color: #ffd700 !important;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    animation: fadeIn 2s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-film-image {
    opacity: 0.25;
    mix-blend-mode: luminosity;
    filter: grayscale(40%) brightness(0.9);
    transition: all 0.8s ease;
}

.hero:hover .hero-film-image {
    opacity: 0.35;
    filter: grayscale(30%) brightness(1);
}

/* About Section */
.about-section {
    background: var(--gradient-4);
    padding: 5rem 5%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6),
                0 0 60px rgba(255, 215, 0, 0.4),
                0 0 80px rgba(255, 215, 0, 0.2);
    transition: transform var(--transition-speed) ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7),
                0 0 70px rgba(255, 215, 0, 0.5),
                0 0 90px rgba(255, 215, 0, 0.3);
}

.about-content {
    flex: 1;
}

/* Mission Section */
.mission-section {
    position: relative;
    padding: 4rem 5%;
    overflow: visible;
    min-height: 400px;
    background: var(--gradient-3);
}

.mission-background {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
    animation: fadeIn 2s ease;
    pointer-events: none;
    overflow: hidden;
}

.mission-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.mission-bg-image {
    opacity: 0.42;
    mix-blend-mode: luminosity;
    filter: grayscale(30%) brightness(0.7);
    transition: all 0.8s ease;
}

.mission-section:hover .mission-bg-image {
    opacity: 0.5;
    filter: grayscale(20%) brightness(0.8);
}

.mission-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* Projects Page Background */
.projects-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.projects-page-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.projects-bg-image {
    opacity: 0.35;
    mix-blend-mode: luminosity;
    filter: grayscale(40%) brightness(0.6);
    transition: all 0.8s ease;
}

/* Projects Gallery */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-items: center;
}

.project-card {
    position: relative;
    background: var(--gradient-5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    max-width: 450px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3),
                0 0 0 3px var(--accent-yellow);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--light-grey-bg);
    transition: all 0.5s ease;
    filter: brightness(1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.project-info {
    padding: 2rem;
    background: var(--gradient-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
                rgba(10, 10, 10, 1) 0%,
                rgba(10, 10, 10, 0.8) 40%,
                rgba(10, 10, 10, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-title {
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-type {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--gradient-3);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, var(--lighter-black), var(--card-bg));
    border: 2px solid var(--silver);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    background: var(--card-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-dark));
    color: #000000 !important;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gradient-2);
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
}

.contact-item:hover {
    background: var(--gradient-4);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-black);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
}

.contact-details a:hover {
    color: var(--accent-yellow);
}

/* Social Media */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--light-grey-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
    color: var(--text-primary);
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--black);
    transform: translateY(-5px);
}

.social-link svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Footer styles are now self-contained in footer.html */

/* Animations */
@keyframes fadeInLeft {
    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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation utility classes */
.animate-hidden {
    opacity: 0;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.9s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.9s ease-out forwards;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease-out forwards;
}

.animate-flipIn {
    animation: flipIn 0.8s ease-out forwards;
}

.animate-slideUp {
    animation: slideUp 0.7s ease-out forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeInLeft,
    .animate-fadeInRight,
    .animate-fadeInUp,
    .animate-fadeInDown,
    .animate-zoomIn,
    .animate-slideInLeft,
    .animate-slideInRight,
    .animate-bounceIn,
    .animate-flipIn,
    .animate-slideUp {
        animation: fadeIn 0.3s ease-out forwards;
    }
}

/* Simplify animations on mobile for performance */
@media (max-width: 768px) {
    .animate-fadeInLeft,
    .animate-fadeInRight,
    .animate-slideInLeft,
    .animate-slideInRight {
        animation: fadeInUp 0.5s ease-out forwards;
    }

    .animate-bounceIn,
    .animate-flipIn {
        animation: fadeIn 0.4s ease-out forwards;
    }

    .animate-zoomIn {
        animation: fadeIn 0.5s ease-out forwards;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding: 2rem;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-image {
        flex: 0 0 auto;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .contact-form,
    .contact-info {
        width: 100%;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h2,
    .contact-info h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .contact-details {
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overflow-x: hidden;
        width: 100%;
    }

    /* Prevent text overflow globally - no word breaking or hyphenation */
    * {
        word-wrap: normal;
        overflow-wrap: normal;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        hyphens: none;
    }

    /* Optimize background images for mobile */
    .hero-image,
    .mission-background,
    .projects-page-background {
        display: block;
        opacity: 1;
    }

    .hero-film-image,
    .mission-bg-image,
    .projects-bg-image {
        opacity: 0.1;
        will-change: auto;
    }

    .container {
        padding: 2rem 4% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    main {
        overflow-x: hidden;
        width: 100%;
    }

    h1 {
        font-size: 1.8rem !important;
        text-align: center;
        padding: 0 1rem;
        word-break: normal;
    }

    h2 {
        font-size: 1.4rem !important;
        text-align: center;
        padding: 0 1rem;
        word-break: normal;
    }

    h3 {
        font-size: 1.15rem !important;
        padding: 0 0.5rem;
        word-break: normal;
    }

    .section {
        overflow-x: hidden;
        width: 100%;
        padding: 2rem 1rem !important;
        box-sizing: border-box;
    }

    .section p {
        text-align: center;
        font-size: 15px !important;
        padding: 0 0.5rem;
        max-width: 100%;
        word-break: normal;
    }

    /* Fix paragraphs with inline styles */
    .section p[style] {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 1rem !important;
    }

    /* Fix divs with inline styles */
    div[style*="padding"] {
        padding: 2rem 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Fix text-align center divs */
    div[style*="text-align: center"] {
        padding: 2rem 1rem !important;
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
    }

    div[style*="text-align: center"] h2,
    div[style*="text-align: center"] p {
        padding: 0 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-wrapper {
        padding: 0;
    }

    .about-image {
        max-width: 100%;
        width: 280px;
        margin: 0 auto 2rem;
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .about-content {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .about-content p {
        padding: 0 0.5rem !important;
        word-break: normal;
    }

    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-info {
        padding: 0 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-info h2,
    .contact-info h3 {
        text-align: center;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        padding: 0.875rem;
        max-width: 100%;
        width: 100%;
    }

    .submit-btn {
        font-size: 16px !important;
        width: 100%;
        padding: 1rem;
        display: block;
    }

    .contact-item {
        padding: 1.5rem 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .contact-details {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        text-align: center;
    }

    .contact-details h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .contact-details p,
    .contact-details a {
        font-size: 15px;
        word-break: normal;
        text-align: center;
        display: block;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin: 1rem auto;
    }

    .contact-info h3 {
        text-align: center !important;
        margin: 1.5rem 0 1rem 0;
    }

    /* Ensure all content boxes fit on mobile */
    main > .container > .section > div {
        padding: 2rem 1rem !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix the bottom info box */
    .section > div[style*="padding: 3rem"] {
        padding: 2rem 1rem !important;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .project-card {
        max-width: 100%;
        min-height: auto;
        margin: 0 auto;
    }

    .project-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.95rem;
    }
}

/* Tablet Specific (481px - 991px) */
@media (min-width: 481px) and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
        gap: 2.5rem;
    }

    .hero {
        padding: 3rem 5%;
        min-height: 60vh;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .container {
        padding: 3rem 4%;
    }

    .project-card {
        max-width: 400px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    nav {
        padding: 1rem 3% !important;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-section img {
        height: 40px;
    }

    .company-name {
        font-size: 1.1rem !important;
        word-break: normal;
    }

    .contact-btn-nav {
        padding: 0.6rem 1rem;
        font-size: 0.85rem !important;
        right: 60px;
        top: 15px;
    }

    .hero {
        padding: 2rem 4% !important;
        min-height: 50vh;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        padding: 1.5rem 1rem !important;
        border-width: 1px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 1.6rem !important;
        padding: 0 0.5rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.3rem !important;
        padding: 0 0.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.05rem !important;
        padding: 0 0.5rem;
    }

    .tagline {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }

    p {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
    }

    .container {
        padding: 1.5rem 4% !important;
        width: 100%;
        box-sizing: border-box;
    }

    .section {
        padding: 2rem 0.5rem !important;
        width: 100%;
    }

    .about-section {
        padding: 2rem 1rem !important;
        width: 100%;
    }

    .about-image {
        width: 200px;
        max-width: 90%;
        margin: 0 auto 1.5rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .project-card {
        min-height: auto;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .project-type {
        font-size: 0.75rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-form,
    .contact-info {
        padding: 1.25rem 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 15px !important;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    .container,
    .section,
    .hero,
    .about-section {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }

    h1 {
        font-size: 1.4rem !important;
        padding: 0 0.5rem;
    }

    h2 {
        font-size: 1.2rem !important;
        padding: 0 0.5rem;
    }

    h3 {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.85rem !important;
        padding: 0 0.5rem;
    }

    .company-name {
        font-size: 1rem !important;
    }

    .tagline {
        font-size: 0.85rem !important;
    }

    .logo-section img {
        height: 35px;
    }

    .about-image {
        width: 200px;
    }

    .project-title {
        font-size: 1.2rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 5%;
    }

    .nav-links {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    main {
        padding-top: 80px;
    }

    .about-section {
        padding: 3rem 5%;
    }
}

/* Ensure minimum touch target sizes */
@media (max-width: 768px) {
    .nav-links li a,
    .contact-btn-nav,
    .submit-btn,
    .social-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links li a {
        padding: 0.75rem 1rem;
    }
}

/* Print Styles */
@media print {
    nav,
    .hamburger,
    footer,
    .scroll-to-top {
        display: none;
    }

    main {
        padding-top: 0;
    }

    .hero-image,
    .mission-background,
    .projects-page-background {
        display: none;
    }

    body {
        background: #ffffff;
        color: black;
    }
}
