@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Industry Professional */
    --primary-color: #0066cc;
    --secondary-color: #1a1a1a;
    --accent-color: #00a8e8;
    --dark-gray: #2d3436;
    --medium-gray: #636e72;
    --light-gray: #dfe6e9;
    --concrete: #f5f6fa;
    --white: #ffffff;
    
    /* Typography */
    --font-main: 'Barlow', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Barlow', system-ui, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 60px 8px 30px;
    max-width: 100%;
}

.nav-brand h2 {
    font-size: 24px;
    font-weight: 700;
    color: rgb(99, 99, 99);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 86px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgb(99, 99, 99);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(99, 99, 99);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-contact {
    padding: 10px 25px;
    border: 2px solid rgb(99, 99, 99);
    border-radius: 25px;
}

.nav-contact::after {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
    scroll-snap-align: start;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgb(99, 99, 99);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.mobile-break {
    display: none;
}

.hero-title .highlight {
    color: rgb(163, 73, 164);
    position: relative;
    display: inline-block;
}

.hero-title .highlight-orange {
    color: orange;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 500;
}

.hero-purple-stripe {
    background: rgb(163, 73, 164);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 20px;
    margin-bottom: 40px;
    color: white;
}

.hero-quote {
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: 40px;
    opacity: 0.85;
    font-weight: 400;
    font-style: italic;
    color: rgb(99, 99, 99);
}

.quote-author {
    font-style: normal;
    font-size: 0.85em;
    opacity: 0.7;
}

.hero-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-card {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    transition: var(--transition-smooth);
    overflow: hidden;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.hero-card:hover {
    transform: translateY(-10px);
}

.hero-card-disabled {
    cursor: default;
}

.hero-card-disabled:hover {
    transform: none;
}

.hero-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
    display: block;
}

.hero-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: rgb(99, 99, 99);
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: rgb(163, 73, 164);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(163, 73, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(163, 73, 164, 0.4);
    background: rgb(143, 53, 144);
}

.btn-secondary {
    background: transparent;
    color: rgb(99, 99, 99);
    border: 2px solid rgb(99, 99, 99);
}

.btn-secondary:hover {
    background: rgb(99, 99, 99);
    color: var(--white);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(99, 99, 99, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgb(99, 99, 99);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0.3;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

section.hero,
section.bim-services,
section.digital-apps,
section.contact {
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: rgb(99, 99, 99);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: rgb(99, 99, 99);
    max-width: 600px;
    margin: 0 auto;
}

/* BIM Services Section */
.bim-services {
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 0;
    scroll-snap-align: start;
}

.bim-services .container {
    padding-top: 0;
    width: 100%;
    margin-top: 5vh;
}

.bim-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.bim-section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: rgb(99, 99, 99);
    letter-spacing: -1px;
}

.bim-section-subtitle {
    font-size: 18px;
    color: rgb(99, 99, 99);
    max-width: 600px;
    margin: 0 auto;
}

.bim-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    padding: 40px;
    margin: 0 auto;
}

.bim-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transform: none !important;
}

.bim-card:hover {
    background: #ffffff;
    border-color: rgba(0, 102, 204, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3);
}

.bim-card h3 {
    color: rgb(99, 99, 99);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bim-card p {
    color: rgb(99, 99, 99);
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .bim-cards-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .bim-card {
        padding: 30px;
    }
}

/* Digital Apps Section */
.digital-apps {
    background: #f5f6fa;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    scroll-margin-top: 0px;
    scroll-snap-align: start;
}

.digital-apps .container {
    padding-top: 0;
    width: 100%;
    margin-top: 5vh;
}

.digital-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.digital-section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: rgb(99, 99, 99);
    letter-spacing: -1px;
}

.digital-section-subtitle {
    font-size: 18px;
    color: rgb(99, 99, 99);
    max-width: 600px;
    margin: 0 auto;
}

.digital-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    padding: 40px;
    margin: 0 auto;
}

.digital-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: none !important;    display: flex;
    flex-direction: column;}

.digital-card:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.digital-card h3 {
    color: rgb(99, 99, 99);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.digital-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
}

.digital-card p {
    color: rgb(99, 99, 99);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.digital-card-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.digital-btn {
    background: rgb(99, 99, 99);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    min-width: 140px;
}

.digital-btn:hover {
    background: rgb(80, 80, 80);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .digital-cards-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .digital-card {
        padding: 30px;
    }
}

/* Contact Section */
.contact {
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 !important;
    margin: 0 !important;
    scroll-margin-top: 0;
    scroll-snap-align: start;
}

.contact .container {
    width: 100%;
    max-width: 1200px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: rgb(99, 99, 99);
    letter-spacing: -1px;
}

.contact-subtitle {
    font-size: 18px;
    color: rgb(99, 99, 99);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: rgb(99, 99, 99);
    padding: 40px;
    border-radius: 20px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-email {
    margin-bottom: 30px !important;
}

.contact-map {
    margin-top: 30px;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: rgb(99, 99, 99);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgb(99, 99, 99);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(99, 99, 99);
}

.form-group textarea {
    resize: vertical;
}

.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#captchaCanvas {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.captcha-refresh {
    background: rgb(99, 99, 99);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.captcha-refresh:hover {
    background: rgb(80, 80, 80);
}

.submit-btn {
    background: linear-gradient(135deg, #a349a4 0%, #c45ab3 100%);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(163, 73, 164, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 73, 164, 0.4);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--light-gray);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    color: rgb(99, 99, 99);
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
}

.footer-copyright p {
    font-size: 14px;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        gap: 20px;
    }
    
    .hero-cards {
        gap: 20px;
    }
    
    .hero-card {
        min-width: 240px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Disable scroll snap on mobile to prevent interference */
    html {
        scroll-snap-type: none;
    }
    
    /* Navigation adjustments */
    .navbar {
        width: 95%;
        padding: 0;
    }
    
    .navbar .container {
        padding: 6px 25px;
    }
    
    .nav-brand h2 {
        font-size: 18px;
    }
    
    .nav-logo {
        height: 65px;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 12px;
    }
    
    .nav-menu a {
        font-size: 12px;
    }
    
    /* Hero section - allow content to fit */
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow: visible;
        padding: 100px 0 40px !important;
    }
    
    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(17px, 4.5vw, 20px);
        margin-bottom: 20px;
    }
    
    .hero-purple-stripe {
        padding: 5px 20px;
        margin-bottom: 20px;
    }
    
    .hero-quote {
        font-size: clamp(14px, 3.5vw, 16px);
        margin-bottom: 30px;
    }
    
    .hero-cards {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }
    
    .hero-card {
        min-width: 100%;
        max-width: 100%;
        flex: none;
    }
    
    .hero-card img {
        display: none;
    }
    
    .hero-card h3 {
        font-size: 18px;
        padding: 18px;
        border-radius: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* BIM Services section */
    .bim-services .container {
        margin-top: 10vh;
    }
    
    .bim-section-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .bim-section-subtitle {
        font-size: 16px;
    }
    
    .bim-section-header {
        margin-bottom: 40px;
    }
    
    /* Digital Apps section */
    .digital-apps {
        min-height: 120vh;
        scroll-margin-top: 20px;
    }
    
    .digital-section-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .digital-section-subtitle {
        font-size: 16px;
    }
    
    .digital-apps .container {
        margin-top: 10vh;
    }
    
    /* Contact section */
    .contact-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-info h3 {
        font-size: 22px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens (phones) */
    .navbar .container {
        padding: 5px 20px;
    }
    
    .nav-brand h2 {
        font-size: 16px;
    }
    
    .nav-logo {
        height: 55px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 11px;
        letter-spacing: 0;
    }
    
    /* Hero section for very small screens */
    .hero {
        padding: 90px 0 30px !important;
    }
    
    .hero-title {
        font-size: 55px;
        margin-bottom: 15px;
    }
    
    .mobile-break {
        display: inline;
    }
    
    .hero-subtitle {
        font-size: 25px;
        margin-bottom: 15px;
    }
    
    .hero-quote {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-cards {
        gap: 15px;
        padding: 0 15px;
        flex-wrap: nowrap;
    }
    
    .hero-card {
        flex: none;
    }
    
    .hero-card h3 {
        font-size: 16px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .bim-section-header,
    .digital-section-header,
    .contact-header {
        margin-bottom: 30px;
    }
    
    .bim-card,
    .digital-card {
        padding: 25px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .digital-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 110px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}


/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #cccccc;
}

.modal-content video {
    width: 100%;
    border-radius: 10px;
}
