/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --header-height: 80px;
}

html {
    scroll-padding-top: calc(var(--header-height) + 20px);
    scroll-behavior: smooth;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left {
    display: flex;
    gap: 40px;
    flex: 1;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #FF6B47;
}

.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.header-logo.visible {
    opacity: 1;
    pointer-events: auto;
}

.logo-accent {
    color: #DC143C;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.nav-contact {
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 1px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #DC143C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    text-align: center;
}

.mobile-nav-link:hover {
    color: #DC143C;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 20px);
    background: #000;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(220, 20, 60, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(220, 20, 60, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 10;
    position: relative;
}

.hero-left {
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(220, 20, 60, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 30px 80px rgba(220, 20, 60, 0.6));
}

.hero-right {
    padding-left: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-name {
    color: #DC143C;
    font-weight: 600;
}

.hero-role {
    color: #DC143C;
    font-weight: 600;
}

.hero-location {
    background: #DC143C;
    color: #fff;
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 600;
}

.hero-vision {
    color: #ccc;
    font-style: italic;
}

.hero-emphasis {
    color: #ccc;
    font-style: italic;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cta-button {
    background: #DC143C;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #DC143C;
    color: #fff;
}

/* Large Animated Title */
.hero-large-title {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    font-weight: 900;
    color: rgb(255, 255, 255);
    letter-spacing: 1vw;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-large-title.scrolled {
    transform: translate(-50%, -50%) scale(0.01);
    top: -100px;
    opacity: 0;
    visibility: hidden;
}

.title-accent {
    color: #DC143C;
}

/* About Section with Fixed Background */
.about-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
        url('images/hero_w.png') center center no-repeat,
        #000;
    background-size: contain;
    filter: brightness(0.15) blur(2px);
    z-index: -1;
    pointer-events: none;
}

.about-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: center;
    z-index: 2;
}

.about-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-align: left;
    align-self: start;
    padding-top: 20px;
}

.about-text-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 20px;
    padding: 60px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-text-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.6);
}

.about-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-stat {
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1;
}

.about-description {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #fff;
    font-weight: 400;
}

.about-description p {
    margin: 0;
}

.about-description .highlight {
    color: #DC143C;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 60px;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(220, 20, 60, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC143C;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Works Section with Rotating Cards */
.works-section {
    position: relative;
    min-height: 250vh;
    background: #000;
}

.works-bg-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.1em;
    z-index: 1;
    pointer-events: none;
}

.works-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    overflow: hidden;
}

.work-card {
    position: absolute;
    width: 70vw;
    max-width: 1000px;
    height: 70vh;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.work-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(220, 20, 60, 0.4);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover .work-card-inner {
    border-color: rgba(220, 20, 60, 0.7);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(220, 20, 60, 0.3);
}

.work-title {
    font-size: 3rem;
    font-weight: 700;
    color: #DC143C;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.work-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.work-description p {
    margin: 0 0 20px 0;
}

.work-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.work-description li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.work-description li::before {
    content: "♠";
    position: absolute;
    left: 0;
    color: #DC143C;
    font-size: 0.9rem;
}

.work-description strong {
    color: #fff;
    font-weight: 600;
}

/* Card States - Initially hide all cards */
.work-card {
    opacity: 0;
    transform: translateY(100%) rotateX(60deg);
    transform-origin: center bottom;
}

/* Active card - centered and visible */
.work-card.active {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    z-index: 10;
}

/* Previous cards - already passed, moved up and away */
.work-card.prev {
    opacity: 0;
    transform: translateY(-100%) rotateX(-60deg) scale(0.85);
    z-index: 5;
}

/* Next cards - waiting below, ready to rotate up */
.work-card.next {
    opacity: 0.3;
    transform: translateY(100%) rotateX(60deg) scale(0.85);
    z-index: 5;
}

/* Latest News / Portfolio Grid Section */
.news-section {
    background: #000;
    padding: 100px 0;
}

.section-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
    font-weight: 400;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.2);
}

.news-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #DC143C;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.date-number {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.news-meta span:first-child {
    color: #DC143C;
    font-weight: 500;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

/* Footer */
.footer {
    background: #000;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-social {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 40px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    color: #DC143C;
    transform: translateY(-5px);
}

.footer-link .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-link:hover .arrow {
    transform: translate(5px, -5px);
}

.footer-text {
    text-align: center;
    padding: 0 40px;
    height: 15vw;
    overflow: hidden;
}

.footer-large-text {
    font-size: 20vw;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
    margin: 0;
    margin-top: 0;
    text-transform: uppercase;
}

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #DC143C;
    border: 2px solid #DC143C;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-right {
        padding-left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-img {
        max-width: 300px;
    }

    .hero-large-title {
        font-size: 20vw;
    }

    .nav-menu {
        display: none;
    }

    .nav-contact {
        display: none;
    }

    .nav-left {
        display: none;
    }

    .header-logo {
        position: static;
        transform: none;
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: flex;
    }


    .contact-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-img {
        max-width: 250px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 20px;
    }

    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 20px;
    }

    .about-number {
        padding-top: 0;
    }

    .about-text-card {
        padding: 40px 30px;
    }

    .about-stat {
        font-size: 4rem;
    }

    .about-description {
        font-size: 1.5rem;
    }

    .work-card {
        width: 85vw;
        height: 60vh;
    }

    .work-card-inner {
        padding: 40px;
    }

    .work-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .work-description {
        font-size: 1.1rem;
    }

    .works-bg-text {
        font-size: 25vw;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-image {
        height: 250px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .footer-social {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .footer-text {
        height: 22.5vw;
    }

    .footer-large-text {
        font-size: 30vw;
        margin-top: 0;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
