/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* AI Agency Section */
.agency-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.agency-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.agency-section .section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.agency-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.agency-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.agency-intro strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.agency-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Agency Cards Grid - 4 columns */
.agency-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.agency-card {
    background: var(--secondary-black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.agency-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.agency-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.agency-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.agency-card:hover .agency-card-image img {
    transform: scale(1.05);
}

.agency-card-label {
    padding: 1rem 1.25rem;
    background: var(--secondary-black);
}

.agency-card-label span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pure-white);
}

/* Connection Banner */
.connection-banner {
    background: linear-gradient(135deg, var(--light-gray) 0%, #eaeaea 100%);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.connection-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.connection-logo-wrap {
    flex-shrink: 0;
}

.connection-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(0);
}

.connection-text {
    flex: 1;
}

.connection-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.connection-text p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.connection-highlights {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--pure-white);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.highlight-item i {
    color: var(--accent-blue);
    font-size: 1.25rem;
}

.highlight-item span {
    font-size: 0.8rem;
    color: var(--primary-black);
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Scroll Animation Section */
.scroll-animation-section {
    position: relative;
    background: var(--pure-white);
    margin-top: -50px;
}

.scroll-hero {
    position: relative;
}

.scroll-container {
    height: 700vh;
    position: relative;
}

.visual-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visual-stage.active {
    opacity: 1;
    pointer-events: auto;
}

.core-object {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-black);
    text-shadow: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.1s linear;
    opacity: 0;
}

.layer.dev {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.25), rgba(66, 133, 244, 0.08));
    z-index: 1;
}
.layer.design {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.25), rgba(234, 67, 53, 0.08));
    z-index: 2;
}
.layer.modeling {
    background: linear-gradient(135deg, rgba(251, 188, 4, 0.25), rgba(251, 188, 4, 0.08));
    z-index: 3;
}
.layer.admin {
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.25), rgba(52, 168, 83, 0.08));
    z-index: 4;
}
.layer.marketing {
    background: linear-gradient(135deg, rgba(161, 66, 244, 0.25), rgba(161, 66, 244, 0.08));
    z-index: 5;
}

.content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    pointer-events: none;
}

.text-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    padding-right: 55%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    color: var(--primary-black);
}

.text-section.active {
    opacity: 1;
    transform: translateY(0);
}

.text-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.text-section p {
    font-size: 1.15rem;
    max-width: 500px;
    color: var(--medium-gray);
    line-height: 1.7;
}

.intro-section h2 {
    font-size: 4rem;
}

.highlight-text {
    background: linear-gradient(135deg, #4285f4 0%, #1e88e5 50%, #039be5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: block;
    color: var(--medium-gray);
}

.role-dev { color: #4285f4; }
.role-design { color: #ea4335; }
.role-modeling { color: #fbbc04; }
.role-admin { color: #34a853; }
.role-marketing { color: #a142f4; }

.final-message {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 0 20px;
}

.final-message.visible {
    opacity: 1;
}

.final-message h1 {
    font-size: 4rem;
    background: linear-gradient(to right, var(--primary-black), var(--medium-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.final-subtitle {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--medium-gray);
}
