/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #efefef;
    color: #222;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* =========================
   PAGE WRAPPER & ANIMATION
========================= */
.page-wrapper {
    flex: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

body.loaded .page-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    align-items: center;
    background: #000;
    padding: 10px clamp(15px, 4vw, 50px);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
}

nav .nav-logo {
    margin-right: 20px;
    flex-shrink: 0;
}

nav .nav-logo img {
    height: clamp(45px, 5vw, 60px);
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    flex: 1;
}

nav li {
    flex-shrink: 0;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 15px clamp(8px, 1vw, 18px);
    font-size: clamp(0.8rem, 1vw, 1rem);
    transition: 0.3s;
}

/* =========================
   NAV ITEM HOVER POP
========================= */
nav a, nav .nav-logo {
    position: relative; /* needed for z-index */
    transition: transform 0.3s ease, z-index 0.3s ease;
}

nav a:hover, nav .nav-logo:hover {
    z-index: 1010; /* higher than nav */
    transform: scale(1.1); /* subtle pop effect */
}

/* =========================
   PAGE CONTENT
========================= */
.page-content {
    width: min(90%, 1200px);
    margin: auto;
    padding: clamp(30px, 5vw, 70px);
    position: relative;
    perspective: 1000px;
}

/* =========================
   RED SHAPE
========================= */
.red-shape {
    position: fixed;
    top: 80px;
    bottom: 80px; /* leaves room for footer */
    right: 0;

    width: clamp(180px, 25vw, 350px);

    background: #ff3131;

    clip-path: polygon(
        25% 0,
        100% 0,
        100% 100%,
        25% 100%,
        55% 50%
    );

    z-index: -1;
}

/* =========================
   HEADER TEXT
========================= */
.header-text {
    position: relative;
    text-align: right;
    margin-bottom: 30px;
    z-index: 1;
}

.header-text h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

/* =========================
   TITLES
========================= */
.section-label {
    display: block;
    color: #ff3131;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.underline {
    width: 100px;
    height: 5px;
    background: #ff3131;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* =========================
   PARAGRAPHS
========================= */
.page-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
    margin-bottom: 25px;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

/* =========================
   SERVICES ACCORDION
========================= */
.service-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    transform-style: preserve-3d;
}

.service-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.service-btn {
    width: 100%;
    background: #fff;
    border: none;
    padding: 18px 20px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: bold;
    text-align: left;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: background 0.3s;
}

.service-btn:hover {
    background: #f5f5f5;
}

.arrow {
    transition: transform 0.3s ease;
}

.service-item.active .arrow {
    transform: rotate(180deg);
}

.service-description {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    line-height: 1.8;
    background: #fafafa;

    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
    margin-bottom: 15px;
}

.service-item.active .service-description {
    max-height: 250px;
    padding: 15px 20px;
}

/* =========================
   FOOTER
========================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;

    z-index: 1000;
}

/* =========================
   TABLETS
========================= */
@media (max-width: 900px) {
    .header-text {
        text-align: center;
    }

    .red-shape {
        width: 250px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    nav ul {
        justify-content: center;
        margin-top: 10px;
    }

    .header-text {
        text-align: center;
    }

    .red-shape {
        width: 180px;
        opacity: 0.8;
    }

    .underline {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
}

/* Mobile nav hidden by default */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #000;
        margin-top: 10px;
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    /* Active menu */
    .nav-links.active {
        display: flex;
    }
}

/* Contact Page Social Icons */
/* Contact Page Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: #ff3131;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: #000;
}

.redirect-btn {
    display: block;      /* Forces it onto a new line */
    margin-top: 15px;
    padding: 10px 15px;
    background: #ff3131;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.redirect-btn:hover {
    background: #e60000;
}