/* =============================================================================
   YouKids Studio - Main Stylesheet
   ============================================================================= */

/* =============================================================================
   Variables
   ============================================================================= */
:root {
    --primary-color: #e8431a;
    --secondary-color: #ff6716;
    --text-dark: #0a0a0a;
    --text-light: #ffffff;
    --gray-light: #f3f3f7;
    --overlay-dark: rgba(10, 10, 10, 0.7);
    --overlay-light: rgba(214, 214, 214, 0.7);

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-width: 1140px;
    --header-height: 116px;
    --header-height-small: 70px;

    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

/* =============================================================================
   Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--gray-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-title.centered {
    text-align: center;
}

/* =============================================================================
   Header
   ============================================================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.5s ease;
    background-color: transparent;
}

#header.transparent {
    background-color: transparent;
}

#header.solid {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height-small);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    position: relative;
    min-width: 150px;
}

.logo img {
    height: 70%;
    width: auto;
}

/* Navigation */
#nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

#nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#header.solid #nav a {
    color: var(--text-dark);
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

#nav a:hover::after {
    width: 100%;
}

#nav a.external-link svg {
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

#nav a.external-link:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

#header.solid .mobile-menu-toggle span {
    background-color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--text-light);
    z-index: 1001;
    transition: right var(--transition-speed) ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 60px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu nav ul {
    list-style: none;
}

.mobile-menu nav a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-light);
}

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/banner2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-dark);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
    animation: fadeInUp 1s ease;
    max-width: 600px;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #d13717;
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 67, 26, 0.3);
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-link .arrow {
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}

/* =============================================================================
   About Section
   ============================================================================= */
#about {
    padding-top: 120px;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 5px;
}

.image-wrapper img {
    width: 100%;
    transition: transform 0.5s ease;
}

.zoom-reveal:hover img {
    transform: scale(1.05);
}

/* =============================================================================
   Software/Fancy Boxes Section
   ============================================================================= */
.fancy-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.fancy-box {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.fancy-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.fancy-box:hover .fancy-box-bg {
    transform: scale(1.1);
}

.fancy-box-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: var(--overlay-dark);
    color: var(--text-light);
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.fancy-box:hover .fancy-box-content {
    opacity: 1;
}

.fancy-box-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.fancy-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.fancy-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =============================================================================
   Animation Process Section
   ============================================================================= */
#process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.fancy-list {
    list-style: none;
    padding: 0;
}

.fancy-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.fancy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* =============================================================================
   Video Section
   ============================================================================= */
.video-section {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-dark);
}

.video-content {
    position: relative;
    z-index: 1;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    transition: transform var(--transition-speed) ease;
}

.play-button:hover {
    transform: scale(1.05);
    color: var(--text-light);
}

.play-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(232, 67, 26, 0.3);
    transition: all var(--transition-speed) ease;
}

.play-button:hover .play-icon {
    background-color: #d13717;
    box-shadow: 0 8px 30px rgba(232, 67, 26, 0.5);
}

.play-icon svg {
    margin-left: 3px;
}

.play-button span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   Team Gallery Section
   ============================================================================= */
.gallery-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
}

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

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

/* =============================================================================
   Contact Form Section
   ============================================================================= */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    border-width: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}

.form-status {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================================================
   Scroll to Top Button
   ============================================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 67, 26, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

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

.scroll-to-top:hover {
    background-color: #d13717;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 67, 26, 0.4);
}

/* =============================================================================
   Footer
   ============================================================================= */
#footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-widget p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget a {
    color: var(--text-light);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 1024px) {
    .fancy-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    /* Layout */
    .row {
        flex-direction: column;
    }

    .col-3,
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .process-row .col-3 {
        margin-bottom: 0;
    }

    .process-row .col-3:last-of-type {
        margin-bottom: 30px;
    }

    .section {
        padding: 40px 0;
    }

    #about {
        padding-top: 40px;
    }

    /* Header */
    #header {
        height: 60px;
    }

    #header.solid {
        height: 60px;
    }

    .header-inner {
        height: 60px;
        padding: 10px 0;
    }

    .logo {
        height: 40px;
        min-width: auto;
    }

    #nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    /* Hero */
    .hero {
        height: 45vh;
        min-height: 350px;
        background-attachment: scroll;
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 15px;
    }

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

    .hero-title .mobile-break {
        display: block;
    }

    /* Software Boxes */
    .fancy-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fancy-box {
        height: 300px;
    }

    /* Video */
    .video-section {
        height: 400px;
    }

    /* Gallery */
    .gallery-slider {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    /* Contact Form */
    .contact-form {
        padding: 30px 20px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    /* Header */
    .container {
        padding: 0 15px;
    }

    .logo {
        height: 35px;
    }

    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Process */
    .fancy-list li {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .fancy-list li::before {
        width: 10px;
        height: 10px;
        top: 8px;
    }

    /* Video */
    .play-icon {
        width: 60px;
        height: 60px;
    }

    .play-button span {
        font-size: 0.9rem;
    }

    /* Contact Form */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
