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

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

:root {
    --night: #0f0f0f;
    --cool-gray: #5a5c6b;
    --persian-red: #c3423f;
    --primary-red: #c3423f;
    --secondary-red: #d55552;
    --light-red: #e26865;
    --accent-red: #a03735;
    --primary-grey: #5a5c6b;
    --secondary-grey: #6b6d7e;
    --light-grey: #6b6d7e;
    --very-light-grey: #f8f8f9;
    --form-border: #d0d0d5;
    --form-border-focus: #c3423f;
    --form-bg: #ffffff;
    --dark-grey: #2a2a2a;
    --charcoal: #1a1a1a;
    --black: #0f0f0f;
    --white: #ffffff;
    --dark-text: #0f0f0f;
    --light-text: #5a5c6b;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

header {
    background: linear-gradient(135deg, var(--night) 0%, var(--dark-grey) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(15, 15, 15, 0.3);
    width: 100%;
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--persian-red);
}

.logo img {
    max-height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 30px;
    }
}

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

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 5px;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--persian-red);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

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

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--night) 0%, var(--dark-grey) 100%);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        z-index: 999;
    }

    nav.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0 1rem;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        font-size: 1rem;
    }

    nav a:hover,
    nav a.active {
        background-color: rgba(195, 66, 63, 0.2);
        color: var(--persian-red);
    }
}

/* Tablet sizes */
@media (min-width: 481px) and (max-width: 768px) {
    nav.active {
        max-height: 350px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .menu-toggle {
        width: 35px;
        height: 35px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2.5px;
    }

    nav.active {
        max-height: 300px;
        padding: 0.75rem 0;
    }

    nav ul {
        padding: 0 0.75rem;
    }

    nav a {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .menu-toggle {
        width: 32px;
        height: 32px;
        padding: 0.4rem;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
    }

    nav.active {
        max-height: 280px;
    }

    nav a {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }
}

nav a:hover,
nav a.active {
    color: var(--persian-red);
    background-color: rgba(195, 66, 63, 0.1);
}

main {
    margin-top: 80px;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 65px;
    }
}

.hero {
    background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(42, 42, 42, 0.7)),
                url('images/hero_img.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
}

.btn {
    display: inline-block;
    background: var(--persian-red);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        letter-spacing: 0.25px;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

.btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 15px rgba(160, 55, 53, 0.4);
    will-change: transform;
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group .btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0;
    }
}

.section-alt {
    background-color: var(--very-light-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--cool-gray);
    position: relative;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--persian-red);
    margin: 1rem auto;
    border-radius: 2px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    min-height: 350px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
}

.process-features .feature {
    padding: 2.5rem 1.5rem;
    min-height: 320px;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 66, 63, 0.08), transparent);
    transition: left 0.6s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 40px rgba(15, 15, 15, 0.2);
    border-color: var(--persian-red);
    background: linear-gradient(135deg, var(--white) 0%, rgba(195, 66, 63, 0.05) 100%);
    will-change: transform;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--persian-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(195, 66, 63, 0.3);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--cool-gray);
    font-weight: 600;
    line-height: 1.3;
}

.feature p {
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: center;
}

.feature:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 25px rgba(195, 66, 63, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .process-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-features {
        grid-template-columns: 1fr;
    }

    .feature {
        min-height: 280px;
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .feature p {
        font-size: 0.9rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px) translateZ(0);
    will-change: transform;
}

.service-image {
    height: 200px;
    overflow: hidden;
    background: var(--very-light-grey);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

.service-content {
    padding: 2rem;
}

@media (max-width: 768px) {
    .service-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 1.25rem;
    }
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cool-gray);
}

.service-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.contact-section {
    background: var(--night);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--persian-red);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--persian-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.25rem;
    }
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--form-border);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--form-bg);
    color: var(--dark-text);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--secondary-grey);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--form-border-focus);
    box-shadow: 0 0 0 3px rgba(195, 66, 63, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5c6b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

footer {
    background: var(--night);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

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

.footer-section h4 {
    color: var(--persian-red);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--light-grey);
    padding-top: 1rem;
    margin-top: 2rem;
    color: var(--light-grey);
}


@media (max-width: 480px) {
    .header-content {
        gap: 0.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Responsive text sizes for inline styles */
    [style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }

    [style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }

    [style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }

    /* Ensure proper spacing on mobile */
    [style*="max-width: 800px"] {
        padding: 0 1rem;
    }
}