/* ==================== VARIABLES ==================== */
:root {
    /* Colors */
    --color-bg-dark: #000000;
    --color-bg-dark-alt: #1F2833;
    --color-text-white: #FFFFFF;
    --color-text-gray: #C5C6C7;
    --color-accent: #66FCF1;
    --color-accent-hover: #45A29E;

    /* Fonts */
    --font-primary: 'Space Grotesk', 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1400px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-secondary);
}

.btn-outline-light {
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--color-text-white);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--color-text-white);
    color: var(--color-bg-dark);
    padding: 16px 45px;
    font-size: 1rem;
    font-weight: 700;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--color-text-white);
    letter-spacing: -0.5px;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-weight: 400;
}

.logo strong {
    font-weight: 700;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-gray);
    position: relative;
    font-family: var(--font-secondary);
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--color-text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-text-white);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active-link::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-white);
    transition: var(--transition-fast);
}

/* Mobile Menu */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-color: var(--color-bg-dark);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 400px 1fr 400px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1800px;
    width: 100%;
    padding: 0 40px;
}

/* Hero Content */
.hero-content {
    text-align: center;
    width: 100%;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--color-text-white);
    position: relative;
    display: inline-block;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-gray);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-secondary);
}

.hero-btns {
    margin-top: 40px;
}

/* Hero Images */
.hero-images {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
}

.img-box {
    position: absolute;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transition: transform var(--transition-medium);
}

.img-box:hover {
    transform: scale(1.02);
    z-index: 10;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left Group */
.left-group .img-back {
    width: 320px;
    height: 450px;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.9;
}

.left-group .img-front {
    width: 260px;
    height: 300px;
    bottom: 50px;
    right: 0;
    z-index: 2;
}

/* Right Group */
.right-group .img-back {
    width: 380px;
    height: 400px;
    top: 40px;
    right: 0;
    z-index: 1;
}

.right-group .img-front {
    width: 300px;
    height: 220px;
    bottom: 80px;
    left: -20px;
    z-index: 2;
}

/* Responsive Hero */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 40px;
        max-width: 800px;
    }

    .hero-images {
        display: none;
    }

    .hero-bg-overlay {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
}

/* ==================== SERVICES SECTION ==================== */
.services {
    margin-bottom: 130px;
    background-color: #000000;
    color: #FFFFFF;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 60px;
    padding-left: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.service-card {
    background-color: transparent;
    padding: 60px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background-color var(--transition-fast);
}

.service-card:hover {
    background-color: #1A1A1A;
}

.service-card:last-child {
    border-right: none;
}

.service-card.highlight-card {
    background-color: #1A1A1A;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 30px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.service-text {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #CCCCCC;
    line-height: 1.7;
    margin-bottom: 40px;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: capitalize;
    display: inline-block;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: opacity var(--transition-fast);
}

.service-link:hover {
    opacity: 0.7;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        border-top: none;
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 40px 20px;
    }

    .section-title {
        text-align: center;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 120px 0;
    background-color: #F4F6F8;
    color: #1A1A1A;
}

.about-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 80px;
}

.about-img {
    width: 60%;
    position: relative;
    z-index: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text-card {
    width: 50%;
    background-color: #FFFFFF;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 2;
    margin-left: -10%;
    border-radius: 2px;
}

.about-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
}

.about-description {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.8;
    color: #555555;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-label {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 968px) {
    .about-wrapper {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .about-img {
        width: 100%;
        margin-bottom: -40px;
    }

    .about-text-card {
        width: 90%;
        margin-left: 0;
        padding: 40px 30px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    padding: 100px 0;
    background-color: #FFFFFF;
    color: #000000;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.portfolio-text-content {
    max-width: 600px;
}

.section-title.text-dark {
    color: #000000;
    margin-bottom: 15px;
    padding-left: 0;
}

.portfolio-description {
    font-family: var(--font-secondary);
    color: #555555;
    line-height: 1.7;
}

.portfolio-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid #E5E5E5;
    background-color: transparent;
}

.prev-btn {
    color: #000000;
}

.prev-btn:hover {
    border-color: #000000;
    background-color: #f5f5f5;
}

.next-btn {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.next-btn:hover {
    background-color: #333333;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-medium);
    width: 100%;
}

.portfolio-card {
    min-width: 50%;
    padding-right: 30px;
    box-sizing: border-box;
}

.card-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 4px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.portfolio-card:hover .card-img img {
    transform: scale(1.05);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.card-link {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    transition: opacity var(--transition-fast);
}

.card-link:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .portfolio-card {
        min-width: 100%;
        padding-right: 0;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-img {
        height: 250px;
    }
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 120px 0;
    background-color: #F4F6F8;
    color: #1A1A1A;
}

.section-title.text-center {
    text-align: center;
    margin-bottom: 60px;
    padding-left: 0;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.testimonial-card {
    width: 50%;
    background-color: #FFFFFF;
    padding: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
    border-radius: 2px;
    margin-right: -10%;
}

.testimonial-text {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EEEEEE;
    padding-top: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ccc;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
}

.author-location {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: #888888;
}

.testimonial-nav-static {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E5E5;
    color: #000000;
    transition: var(--transition-fast);
    cursor: default;
}

.nav-arrow.active {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.nav-arrow.disabled {
    opacity: 0.5;
    background-color: #F9F9F9;
}

.testimonial-img-box {
    width: 60%;
    height: 500px;
    z-index: 1;
    position: relative;
}

.testimonial-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 968px) {
    .testimonials-wrapper {
        flex-direction: column-reverse;
    }

    .testimonial-card {
        width: 100%;
        margin-right: 0;
        margin-top: -50px;
        padding: 40px 30px;
    }

    .testimonial-img-box {
        width: 100%;
        height: 300px;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .testimonial-nav-static {
        display: none;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #050608;
    color: #FFFFFF;
    padding-top: 80px;
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
    position: relative;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 500px;
}

.cta-btn {
    background-color: #FFFFFF;
    color: #000000;
    padding: 15px 35px;
}

.cta-btn:hover {
    background-color: #CCCCCC;
    transform: translateY(-2px);
}

.cta-decoration {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
    line-height: 0;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 25px;
    display: inline-flex;
}

.footer-desc {
    font-family: var(--font-secondary);
    color: #888888;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #1F2833;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: #FFFFFF;
    color: #000000;
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #888888;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #FFFFFF;
    font-family: var(--font-secondary);
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

.input-group button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition-fast);
}

.input-group button:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555555;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
}

@media (max-width: 968px) {
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-decoration {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto 30px auto;
    }

    .social-links {
        justify-content: center;
    }

    .input-group {
        max-width: 400px;
        margin: 0 auto;
    }
}