/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #ffffff;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.grid {
    display: grid;
    gap: 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 200px;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav__list {
    display: flex;
    gap: 3rem;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.nav__link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: #fff;
}

.nav__link.active {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.nav__link.active i {
    color: #ffffff;
    transform: scale(1.2);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2.5px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.bar {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* History Section */
.history {
    padding: 150px 0;
    background-color: #050505;
}

.history__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history__subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.history__text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ddd;
}

.history__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.history__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.history__img:hover {
    filter: grayscale(0%);
}

.history__img:nth-child(2) {
    margin-top: 2rem;
}

/* Philosophy */
.philosophy {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
    background-color: #0a0a0a;
    text-align: center;
}

.philosophy__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.philosophy__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.philosophy .container {
    position: relative;
    z-index: 2;
}

.philosophy__subtitle {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.philosophy__content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy__text {
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
}

.philosophy__icon {
    width: 60px;
    height: 1px;
    background-color: #fff;
    margin: 3rem auto 0;
}

/* Services & Statistics Merged */
.services-stats {
    background-color: #000;
}

.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.service-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 3rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #fff;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Service List Styles */
.service-list {
    margin-top: 1rem;
    padding-left: 0;
}

.service-list li {
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.service-list li::before {
    content: '+';
    margin-right: 0.5rem;
    color: #fff;
    font-weight: bold;
}

.stats__grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 4rem;
}

.stat-item h3 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: -webkit-linear-gradient(#fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Clients Section */
.clients {
    padding-top: 180px;
}

.clients__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    height: 100px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.client-logo:hover {
    border-color: #fff;
    color: #fff;
    background-color: #000;
}

/* Works Section */
.works {
    padding-top: 150px;
}

.works-categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.work-cat {
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.work-cat:hover,
.work-cat.active {
    color: #fff;
    border-bottom-color: #fff;
}

.works__grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
}

.work-item {
    position: relative;
    height: 400px;
    background-color: #111;
    overflow: hidden;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.work-item:hover img {
    transform: scale(1.05);
    opacity: 0.4;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.work-overlay p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section (One Page) */
.contact-section {
    background-color: #0a0a0a;
    padding: 100px 0;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info-block {
    text-align: left;
}

.contact-item {
    margin-bottom: 3rem;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.contact-link {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.contact-link:hover {
    border-bottom-color: #fff;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.contact-map {
    width: 100%;
    height: 400px;
    filter: grayscale(100%) invert(100%) contrast(1.2);
    border: 1px solid #333;
}

/* Footer */
.footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #111;
    font-size: 0.9rem;
    color: #444;
    background-color: #000;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 4rem;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-block {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo-img {
        max-width: 150px !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-bottom: 1px solid #222;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav__link {
        padding: 12px 24px;
        border-radius: 20px;
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav__link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hero__title {
        font-size: 3rem;
    }

    .history__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history__images {
        margin-top: 2rem;
    }

    .stats__grid {
        grid-template-columns: 1fr;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        font-size: 1.5rem;
    }
}