:root {
    --primary: #E14643;
    --secondary: #2D7DD2;
    --dark: #1A1A1B;
    --darker: #0F0F0F;
    --light: #F9F9F9;
    --white: #FFFFFF;
    --gray: #666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary);
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .main-logo {
    height: 60px;
    width: auto;
    display: block;
    /* This filter turns black text to white while keeping the orange/blue icon colors */
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-contact {
    background: var(--primary);
    padding: 12px 24px;
    border-radius: 4px;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(225, 70, 67, 0.3);
}

.btn-contact:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 125, 210, 0.4);
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    background-color: var(--darker);
    overflow: hidden;
}

#hero-bg-video, .bg-video-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.dynamic-service-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    animation: titlePop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

@keyframes titlePop {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero p.hero-dynamic-text {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.framed-text {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 15px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 700;
    margin: 0 5px;
    min-height: 1.8em;
    vertical-align: middle;
    position: relative;
}

.framed-text::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Animations */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.hero .hero-btns.hero-animate { transition-delay: 0.8s; }

/* Stats Section */
.stats {
    background: var(--darker);
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item h3 { font-size: 2.2rem; }
    .stat-item p { font-size: 0.75rem; }
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 800;
}

.hero h2.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    margin-right: 20px;
}

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

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: scale(1.05);
}

.pulse-btn {
    animation: btnPulse 2s infinite ease-in-out;
}

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(225, 70, 67, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 25px rgba(225, 70, 67, 0.8);
    }
}

/* Trust Bar */
.trust-bar {
    background: var(--darker);
    padding: 40px 0;
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.expertise-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.expertise-img {
    height: 200px;
    overflow: hidden;
}

.expertise-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.expertise-card:hover img {
    transform: scale(1.1);
}

.expertise-body {
    padding: 25px;
    text-align: center;
}

.expertise-body h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.expertise-body p {
    font-size: 0.9rem;
    color: var(--gray);
}

@media (max-width: 1100px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

/* Portfolio */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/5;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Ongoing */
.ongoing-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.ongoing-item {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.ongoing-item.reversed {
    flex-direction: row-reverse;
}

.ongoing-info {
    flex: 1;
}

.ongoing-img {
    flex: 1;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.ongoing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-top: 20px;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: var(--dark);
    color: var(--white);
    padding: 80px;
    border-radius: 20px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    opacity: 0.8;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 4px;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
}

.contact-action .action-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-action .contact-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-right: 0;
    color: var(--dark) !important;
}

.contact-action .contact-btn:hover {
    color: var(--white) !important;
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(45, 125, 210, 0.4);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles & Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; padding: 40px; }
    .contact-info { text-align: center; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--darker);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 20px;
    }

    .hero h1 { font-size: 2.5rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .ongoing-item, .ongoing-item.reversed { flex-direction: column; text-align: center; }
    .ongoing-img { height: 250px; width: 100%; }
    .project-grid { grid-template-columns: 1fr; }
    
    .section-header h2 { font-size: 2rem; }
    
    .main-header { padding: 15px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn { width: 100%; margin-right: 0; margin-bottom: 15px; text-align: center; }
    .trust-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 20px; }
}

/* Subpage SEO Styles */
.service-hero {
    height: 50vh;
    min-height: 400px;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}
.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}
.service-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.service-content {
    padding: 80px 0;
    background: var(--light);
}
.service-split {
    display: flex;
    gap: 60px;
    align-items: center;
}
.service-video-container {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-video-container video {
    width: 100%;
    height: auto;
    display: block;
}
.service-blog {
    flex: 1;
}
.service-blog h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--darker);
}
.service-blog p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}
.service-blog ul {
    list-style: none;
    margin-bottom: 30px;
}
.service-blog ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-weight: 600;
}
.service-blog ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

@media (max-width: 992px) {
    .service-split {
        flex-direction: column;
    }
    .service-hero h1 { font-size: 2.5rem; }
    .dynamic-service-title { font-size: 2.8rem; }
}

@media (max-width: 480px) {
    .dynamic-service-title { font-size: 2rem; }
}

footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: var(--primary);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}
