/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --section-padding: 100px;
    
    /* Sizing */
    --hero-logo-size: 200px;
    --social-icon-size: 3rem;
    --social-icon-container: 70px;
    --max-container-width: 1200px;
    --max-form-width: 700px;
    --max-statement-width: 600px;
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    opacity: 0;
    animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000000 !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                      url('assets/photo/AFF_Artisan_Auto_Detail_by_AP_Imagery_019.jpg');
    background-position: center 0;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.hero-logo {
    max-width: var(--hero-logo-size);
    height: auto;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* ========================================
   PORTFOLIO SECTIONS
   ======================================== */
.portfolio {
    padding: var(--section-padding) 0;
    background-color: var(--secondary-color);
}

.portfolio.videos-section {
    padding: 0;
}

.portfolio.photos-section {
    padding-bottom: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.portfolio-category {
    margin-bottom: 4rem;
}

.portfolio-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

/* Portfolio Statement */
.portfolio-statement {
    max-width: var(--max-statement-width);
    margin: 0 auto var(--spacing-lg);
    background-color: transparent;
    padding-bottom: 0;
}

.portfolio-statement p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--white);
    background-color: var(--accent-color);
    padding: 1.5rem var(--spacing-md);
    margin: var(--spacing-xs) 0;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
    position: relative;
    transition: var(--transition);
}

.portfolio-statement p:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.portfolio-statement p::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 25px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 20px solid var(--accent-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    min-height: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

.video-thumbnail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-thumbnail:hover .play-button {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    /* min-height: 100vh; */
    margin-bottom: 1rem;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-content {
    padding: 2rem;
}

.contact .section-title {
    margin-bottom: var(--spacing-md);
}

.contact-arrow {
    width: 150px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
}

.contact .social-links {
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   MODALS & OVERLAYS
   ======================================== */

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
    font-size: 1rem;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 107, 107, 0.8);
}

/* Video Player Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.video-modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: var(--accent-color);
}

.video-thumbnail {
    cursor: pointer;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #000000 !important;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    color: var(--white);
    font-weight: 500;
}

.footer .design-credit a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer .design-credit a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.footer .design-credit a:hover::after {
    width: 100%;
}

.footer .design-credit a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    background-color: var(--primary-color);
    text-decoration: none;
    font-size: var(--social-icon-size);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--social-icon-container);
    height: var(--social-icon-container);
    border-radius: var(--radius-lg);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link .nav-text {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .contact {
        margin-bottom: 5rem;
    }
    
    .contact-arrow {
        width: 100px;
        margin: 0 auto 1.5rem;
    }
    
    .contact .section-title {
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .contact {
        margin-bottom: 3rem;
    }
    
    .contact-arrow {
        width: 80px;
        margin: 0 auto 1rem;
    }
    
    .contact .section-title {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }
    
    .social-links a {
        font-size: 2rem;
        width: calc(var(--social-icon-container) * 0.85);
        height: calc(var(--social-icon-container) * 0.85);
    }
}
