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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    opacity: 0.5;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 120px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    text-align: center;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

/* ===================================
   Services Section
   =================================== */
.services {
    background-color: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card i {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.7;
}

/* ===================================
   AI Solution Section
   =================================== */
.ai-solution {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    text-align: center;
}

.btn-primary {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 48px;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
    opacity: 1;
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
    background-color: #000000;
}

.portfolio-category {
    margin-bottom: 80px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-slider {
    position: relative;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
}

.portfolio-item iframe {
    border: none;
    border-radius: 16px;
    display: block;
}

.video-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.video-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.video-placeholder p {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-btn i {
    font-size: 20px;
}

/* ===================================
   Clients Section
   =================================== */
.clients {
    background-color: #000000;
    padding: 100px 40px;
}

.clients-slider-wrapper {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
}

.clients-slider {
    width: 100%;
    overflow: hidden;
}

.clients-track {
    display: flex;
    gap: 80px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.client-logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.client-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
    text-align: center;
}

.client-logo-item:hover .client-text {
    opacity: 1;
}

/* Pause animation on hover */
.clients-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.contact-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-item a {
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* AI Estimate Button */
.estimate-button-wrapper {
    margin-top: 60px;
    text-align: center;
}

.btn-estimate {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-estimate i {
    font-size: 20px;
}

.btn-estimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-estimate:active {
    transform: translateY(0);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
}

.footer p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.5;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Hide mobile line breaks on desktop */
.mobile-br {
    display: none;
}

@media (max-width: 1024px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px 24px;
    }

    .nav-menu {
        gap: 24px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* Show mobile line breaks on tablet and mobile */
    .mobile-br {
        display: inline;
    }

    .section {
        padding: 80px 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 40px 24px;
    }

    .portfolio-slider {
        padding: 0 40px;
    }

    .portfolio-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
    }

    .estimate-button-wrapper {
        margin-top: 50px;
    }

    .btn-estimate {
        padding: 16px 36px;
        font-size: 17px;
    }

    .category-title {
        font-size: 24px;
    }

    .client-logo-item {
        width: 150px;
        height: 60px;
    }

    .clients-track {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .nav-menu {
        gap: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn i {
        font-size: 16px;
    }

    .estimate-button-wrapper {
        margin-top: 40px;
    }

    .btn-estimate {
        padding: 14px 30px;
        font-size: 16px;
        gap: 10px;
    }

    .btn-estimate i {
        font-size: 18px;
    }

    .client-logo-item {
        width: 120px;
        height: 50px;
    }

    .clients-track {
        gap: 30px;
    }

    .client-text {
        font-size: 14px;
    }
}