/*
Theme Name: Cresthill Custom SPA Clone
Description: A high-performance, dark-mode focused SPA clone exactly mimicking the reference.
Version: 1.2.1
Author: Deepmind Antigravity Agent
*/

:root {
    --bg-color: #030303;
    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --accent-red: #E11D48;
    --card-bg: rgba(20, 20, 20, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    font-weight: 500;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s ease;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding-top: 15px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-header .site-title a {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 5px;
}

.site-header nav a:hover {
    color: var(--text-primary);
}

.site-header nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.site-header nav a:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1005;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Layouts */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 140px 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.section-label {
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 30px;
    display: block;
    font-weight: 600;
}

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(3, 3, 3, 0.35), rgba(3, 3, 3, 0.85) 85%), url('assets/img/hero.webp?v=4') center top/cover;
    position: relative;
    overflow: hidden;
    padding-bottom: 25vh;
}

.hero-section .container {
    margin-top: 0;
}

.hero-section h1 {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

.hero-section .subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 8px;
    animation: fadeInUp 1s 0.3s forwards;
    opacity: 0;
}

.vertical-line {
    width: 1px;
    height: 80px;
    background: var(--accent-red);
    margin: 60px auto 0;
    animation: scaleY 1s 0.6s forwards;
    transform-origin: top;
    transform: scaleY(0);
}

/* Services */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 40px;
    transition: 0.3s;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 20px;
}

.service-item .number {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 2px;
}

.service-item h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-item p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-card h4 {
    margin: 0;
    letter-spacing: 1px;
}

/* Pricing */
.pricing-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(225, 29, 72, 0.4);
}

.pricing-card.featured {
    background: var(--card-bg);
    color: white;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.pricing-card p {
    color: var(--text-muted);
    min-height: 50px;
}

.pricing-card.featured p {
    color: var(--text-muted);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 30px 0;
    letter-spacing: -2px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.pricing-card ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card.featured ul li {
    border-bottom-color: var(--border-color);
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #e0e0e0;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    border-color: white;
}

.pricing-card.featured .btn-primary {
    background: white;
    color: black;
}

.pricing-card.featured .btn-primary:hover {
    background: #e0e0e0;
}

/* Forms & Footer */
input,
textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: white;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: var(--font-body);
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
}

.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleY {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* Images */
.section-image {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

/* Custom Cursor */
body,
a,
button,
input,
textarea {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: rgba(225, 29, 72, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border 0.2s;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.8);
}

/* Red Dividers & Active Rows */
.red-divider {
    width: 100%;
    height: 2px;
    background-color: rgba(225, 29, 72, 0.4);
    position: relative;
    margin: 40px 0;
}

.red-divider .red-dot {
    width: 24px;
    height: 24px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 28%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.9);
}

.about-red-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 60%, rgba(225, 29, 72, 0.2) 100%);
    position: relative;
    margin-top: 25px;
    margin-bottom: 40px;
}

.about-red-line .red-dot {
    width: 24px;
    height: 24px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.9);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 350px;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
    transition: 0.3s ease;
    opacity: 0.4;
    cursor: none;
}

.service-row:hover,
.service-row.active {
    opacity: 1;
}

.service-row .s-number {
    font-size: 2.2rem;
    color: var(--text-muted);
    font-family: monospace;
    transition: 0.3s;
}

.service-row .s-title {
    font-size: 3.5rem;
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    letter-spacing: -1px;
}

.service-row .s-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    line-height: 1.8;
    transition: 0.3s;
}

.service-row:hover .s-number,
.service-row.active .s-number {
    color: var(--accent-red);
}

.service-row:hover .s-title,
.service-row.active .s-title {
    color: white;
}

.service-row:hover .s-desc,
.service-row.active .s-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    transition: 0.3s ease;
}

.faq-item:hover {
    border-bottom-color: var(--accent-red);
    padding-left: 10px;
}

.faq-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    letter-spacing: 0.5px;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Blog Grid & Cards */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(225, 29, 72, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.blog-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
    transition: 0.5s ease;
}

.blog-card:hover .blog-image {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.blog-content {
    padding: 35px 30px;
}

.blog-date {
    color: var(--accent-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: white;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 50px;
}

.read-more {
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.read-more span {
    transition: 0.3s;
}

.blog-card:hover .read-more {
    color: var(--accent-red);
}

.blog-card:hover .read-more span {
    transform: translateX(5px);
}

/* Single Blog Reader */
.blog-reader {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.blog-reader p {
    margin-bottom: 30px;
}

.blog-reader h2,
.blog-reader h3 {
    color: white;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: 0;
    text-transform: none;
}

.blog-reader ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.blog-reader li {
    margin-bottom: 10px;
}

/* Hero Sidebar */
.hero-sidebar {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 10;
}

/* -----------------------------
   Responsive Design Breakpoints
----------------------------- */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
    .site-header {
        padding-top: 5px;
        background: rgba(3, 3, 3, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 3, 3, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-navigation.active {
        display: block;
    }

    .site-header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .site-header nav a {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .grid-2 {
        gap: 40px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 15vw;
    }

    .service-row {
        grid-template-columns: 60px 1fr 200px;
        gap: 20px;
    }

    .service-row .s-title {
        font-size: 2.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    h1 {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-section {
        height: 85vh;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        background: linear-gradient(rgba(3, 3, 3, 0.1) 0%, rgba(3, 3, 3, 0.8) 55%), url('assets/img/hero.webp?v=4') center top/cover;
        position: relative;
        overflow: hidden;
        padding-bottom: 30px;
    }

    .hero-section .container {
        margin-top: 0;
    }

    .vertical-line {
        margin: 40px auto 0;
    }

    .hero-section .subtitle {
        font-size: 1.1rem;
        letter-spacing: 4px;
        padding: 0 20px;
    }

    .hero-sidebar {
        display: none;
    }

    /* Hide the side text on mobile */

    .service-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
        padding: 30px 0;
    }

    .service-row .s-desc {
        text-align: left;
    }

    .red-divider .red-dot {
        right: 10%;
    }

    .industry-registrations {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 25px !important;
    }

    .industry-registrations>a {
        align-items: flex-start !important;
    }

    input,
    textarea {
        padding: 15px;
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
    }

    /* Ensure pricing cards stack normally */
    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    /* Adjust about visual elements */
    .about-red-line .red-dot {
        left: 80%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 13vw;
        margin-top: 30px;
        line-height: 0.9;
    }

    .service-row .s-title {
        font-size: 2rem;
    }

    .price {
        font-size: 3rem;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .pricing-card {
        padding: 40px 30px;
    }
}