/* 
    Project: Digital Architectural Modeling Digital Marketing Website
    Theme: Canary Yellow & Dark Tech
    Author: AI Assistant
*/

:root {
    --primary-color: #FFD700;
    /* Canary Yellow */
    --primary-hover: #ffea70;
    --secondary-color: #111111;
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --text-dark: #111111;
    --border-color: #333333;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.section-padding {
    padding: 100px 0;
}

.text-highlight {
    color: var(--primary-color);
}

/* =========================================
   Header & Navigation (Strict Consistency)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 45px;
    width: auto;
    /* In case logo is black text, invert it for dark theme, 
       remove filter if logo is already white/colored */
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta i {
    margin-left: 10px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--primary-color);
}

.mobile-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--primary-color);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =========================================
   Hero Section (Index)
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
}

.btn-secondary {
    padding: 14px 32px;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* 3D Abstract Element */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.front {
    transform: rotateY(0deg) translateZ(150px);
}

.back {
    transform: rotateY(180deg) translateZ(150px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.top {
    transform: rotateX(90deg) translateZ(150px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* =========================================
   Interactive ROI Calculator
   ========================================= */
.calculator-section {
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-form {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-result {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.roi-display {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: block;
    margin: 10px 0;
}

.calc-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.calc-info p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.progress-bar-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 1s ease;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.testimonials-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scrollTestimonials 30s linear infinite;
}

.testimonial-card {
    min-width: 350px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
}

.testimonial-rating {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* =========================================
   Page Header (For Legal/Contact)
   ========================================= */
.subpage .page-header {
    padding-top: 160px;
    padding-bottom: 60px;
    background: var(--bg-card);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumbs {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

/* =========================================
   Contact Page Specifics
   ========================================= */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-panel-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p,
.method-details a {
    color: var(--text-gray);
}

.method-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-submit-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   Legal Content Styling
   ========================================= */
.legal-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.legal-content li {
    margin-bottom: 10px;
}

/* =========================================
   Footer (Strict Consistency)
   ========================================= */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.footer-col-title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* =========================================
   Components & Animations
   ========================================= */
/* Chat Widget */
.chat-widget-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
    z-index: 990;
    transition: transform 0.3s ease;
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
}

.chat-icon {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background-color: var(--secondary-color);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-msg {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.msg-bot {
    background-color: #333;
    color: white;
    align-self: flex-start;
}

.msg-user {
    background-color: var(--primary-color);
    color: var(--text-dark);
    margin-left: auto;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #000;
    color: white;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 5));
    }
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.popup:target {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    max-width: 400px;
    position: relative;
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-gray);
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 1024px) {

    .hero-grid,
    .contact-wrapper,
    .calc-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-visual {
        order: 1;
        height: 300px;
    }

    .cube-wrapper,
    .cube-face {
        width: 200px;
        height: 200px;
    }

    .front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}