/* Root Variables */

:root {
    --primary-color: #2C2C2C;
    /* Black */
    --accent-color: #d3792f;
    /* Bright Red */
    --accent-color-dark: #0d1d3f;
    /* Dark Red */
    --background-color: #FFFFFF;
    /* White */
    --secondary-color: #f5f4f2;
    /* Gray for neutral elements */
    --text-color: #FFFFFF;
    /* White text for dark backgrounds */
    --text-dark: #000000;
    /* Black text for light backgrounds */
    --highlight-color: #FF6F61;
    /* Light Red for hover effects or subtle accents */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Work Sans', sans-serif;
}


/* Global Styles */

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.8;
    background: linear-gradient(to bottom, #f7f7f7, #ffffff), url('images/subtle-texture.png');
    background-size: cover, auto;
    background-blend-mode: overlay;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heading);
}

p {
    font-size: 18px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 80px;
    /* Adjust based on your design preference */
    height: auto;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--accent-color);
}


/* Navigation */

nav {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(44, 44, 44, 0.8)), url('images/hero-home.jpg') no-repeat center center/cover;
    color: var(--text-light);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-out forwards;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero p {
    /* font-size: 1.2rem; */
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    /* border-radius: 25px; */
    font-weight: normal;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 16px;
    font-family: var(--font-body);
}

a.cta-btn {
    color: white;
    font-size: 16px;
    font-weight: normal;
    font-family: var(--font-body);
}

.cta-btn:hover {
    transform: scale(1.05);
    background: var(--accent-color-dark);
}


/* Diagonal Accent Lines */

.diagonal-accent {
    position: absolute;
    width: 100%;
    height: 50px;
    background: var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
    z-index: 0;
}

.diagonal-accent.top-left {
    top: 0;
    left: -10%;
}

.diagonal-accent.bottom-right {
    bottom: 0;
    right: -10%;
    transform: rotate(180deg);
}


/* Section Styles */

section {
    padding: 4rem 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}


/* About Section */

.about {
    background: #f9f9f9;
    padding: 6rem 2rem;
}

.about-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    /* gap: 3rem; */
    width: 80%;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    /* border-radius: 10px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
    text-align: left;
    border-width: 1px 0 1px 1px;
    border-style: solid;
    border-color: var(--accent-color);
    padding: 24px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text .line-accent {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    /* font-size: 1.1rem; */
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text .cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    /* border-radius: 25px; */
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.about-text .cta-btn:hover {
    background: var(--accent-color-dark);
    transform: translateY(-3px);
}


/* Responsive Design */

@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-image img {
        max-width: 100%;
    }
    .about-text {
        text-align: center;
    }
}


/* Why Choose Us Section */

.why-choose-us {
    background: var(--background-color);
    padding: 4rem 2rem;
    text-align: center;
}

.why-choose-us .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-choose-us .grid-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--text-light);
    /* border-radius: 10px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.why-choose-us .grid-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.why-choose-us h2 {
    color: var(--accent-color-dark);
}

@media (max-width: 768px) {
    .why-choose-us .grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
}


/* Process Overview Section */

.process-overview {
    background: var(--accent-color-dark);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
}

.process-overview .steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-overview .step {
    text-align: center;
    padding: 1.5rem;
    background: var(--text-light);
    color: var(--text-color);
    /* border-radius: 10px; */
    width: 250px;
}

.process-overview .step i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.process-overview p {
    font-size: 24px;
}

.process-overview h2 {
    color: white;
}


/* FAQs Section */

.faqs {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.faqs .faq {
    margin-bottom: 2rem;
}

.faqs h3 {
    font-size: 1.5rem;
    color: var(--accent-color-dark);
    margin-bottom: 0.5rem;
}


/* Call-to-Action Section */

.cta-bottom {
    /* background: var(--primary-color); */
    color: var(--text-dark);
    padding: 0 2rem;
    text-align: center;
    min-height: 200px;
}

.cta-bottom p {
    margin-bottom: 2rem;
}


/* Services Section */

.services {
    /* background: var(--background-color); */
    padding: 4rem 2rem;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent-color);
}

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

.grid-item {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    /* border-radius: 10px; */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.grid-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-item p {
    /* font-size: 1rem; */
    line-height: 1.6;
}


/* Projects Section */

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

.projects img {
    width: 100%;
    /* border-radius: 10px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-height: 400px;
}


/* Testimonials Section */

.testimonials {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 2rem;
}

.testimonials .testimonial {
    background: var(--background-color);
    padding: 2rem;
    /* border-radius: 10px; */
    margin: 1.5rem auto;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonials .testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
}


/* Contact Section */

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid var(--accent-color-dark);
    font-size: 1rem;
    color: var(--text-dark);
    font-family: var(--font-body);
}

.contact textarea {
    resize: none;
    height: 150px;
}

.contact button {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.75rem;
    border: none;
    /* border-radius: 25px; */
    /* font-weight: bold; */
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: var(--font-body);
}

.contact button:hover {
    background: var(--accent-color-dark);
}

.contact p {
    color: var(--text-dark);
}


/* Footer */

footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
}

.accent-footer {
    height: 6px;
    background: var(--accent-color);
    width: 100%;
    margin-bottom: 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--highlight-color);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter input {
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter button {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: var(--accent-color-dark);
}

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

.footer-bottom ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom ul li a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-bottom ul li a:hover {
    color: var(--accent-color);
}


/* Horizontal Accent Line */

.accent-line {
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}


/* Geometric Accent Shapes */

.circle-accent {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.circle-accent.top-left {
    top: -50px;
    left: -50px;
}

.circle-accent.bottom-right {
    bottom: -50px;
    right: -50px;
}


/* Section-specific Accent Pieces */


/* Hero Section Accent */


/* .hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    transform: translateY(-50%);
} */


/* About Section Accent */


/* .about .accent-bar {
    width: 60%;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem 0;
    border-radius: 2px;
    opacity: 0.8;
}

.about-image {
    position: relative;
    z-index: 1;
    margin-top: -50px;
    width: 15%;
    margin: 0 auto;
}

.about-text {
    position: relative;
    z-index: 2;
    background: var(--background-color);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
} */


/* Floating Tile Section */

.floating-tile {
    position: relative;
    z-index: 10;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* border-radius: 10px; */
    padding: 3rem 2rem;
    max-width: 800px;
    margin: -4rem auto 4rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle border for added depth */
}

.floating-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.tile-content h2 {
    color: var(--accent-color-dark);
}


/* Add a subtle gradient or texture to the background */

.floating-tile::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    /* border-radius: 10px; */
    opacity: 0.8;
}


/* Adjust surrounding sections for contrast */

.about {
    /* background: #f7f7f7; */
    /* Light gray for contrast above the tile */
}

.services {
    /* background: #ffffff; */
    /* White for contrast below the tile */
}


/* Responsive Design */

@media (max-width: 768px) {
    .floating-tile {
        padding: 2rem 1rem;
    }
    .floating-tile h2 {
        font-size: 1.6rem;
    }
    .floating-tile p {
        font-size: 1rem;
    }
}


/* Projects Section Accent Grid Lines */

.projects {
    background: var(--primary-color);
}

.projects h2 {
    color: var(--text-color);
}

.projects .grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--secondary-color);
    z-index: 0;
}

.projects .grid .project-item {
    position: relative;
    overflow: hidden;
    background: var(--background-color);
    padding: 8px;
}

.projects .grid .project-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.project-item {
    /* transform: scale(1); */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-item:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.project-item img {
    min-width: 50%;
    max-width: 60%;
}

.project-item h3 {
    color: var(--text-dark);
}


/* Footer Accent */

footer .accent-footer {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto;
}


/* Responsive Design */

@media (max-width: 768px) {
    .about .grid,
    .services .grid,
    .projects .grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.pulse-hover:hover {
    animation: pulse 0.6s ease-in-out infinite alternate;
}


/* Hamburger Menu */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

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


/* Hide menu on smaller screens */

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

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1000;
        /* Higher than the drawer */
    }
    /* Fullscreen Drawer Styles */
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        /* Start off-screen */
        width: 100%;
        /* Full width */
        height: 100%;
        /* Full height */
        background: var(--primary-color);
        color: var(--text-light);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        /* Space between menu items */
        transition: left 0.3s ease-in-out;
        /* Smooth slide animation */
        z-index: 999;
        /* Ensure it appears above other elements */
    }
    nav ul.open {
        left: 0;
        /* Bring menu into view */
    }
    /* Menu Items in Drawer */
    nav ul li a {
        font-size: 1.5rem;
        /* Larger font size for better visibility */
        text-transform: uppercase;
        /* Optional: Make text uppercase */
        color: var(--text-light);
        text-decoration: none;
        transition: color 0.3s ease;
    }
    nav ul li a:hover {
        color: var(--accent-color);
    }
    /* Ensure Hamburger Menu Stays on Top */
    .menu-toggle {
        z-index: 1000;
        /* Higher than the drawer */
    }
}