/* ===== MODERN TIKTALK DESIGN ===== */

@font-face {
    font-family: 'UniSans';
    src: url('assets/fonts/UniSans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LED Counter';
    src: url('assets/fonts/led_counter-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors from Logo */
    --primary-red: #FF4D4D;
    --primary-dark: #E63939;
    --text-black: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;

    /* Neutral Colors */
    --white: #ffffff;
    --background: #fafafa;
    --background-alt: #f5f5f5;
    --border-light: #e5e5e5;
    --border-medium: #d0d0d0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'UniSans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.accent {
    color: var(--primary-red);
}

/* ===== LOGO ===== */
.logo {
    position: relative;
}

.logo-dotted {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'LED Counter', monospace;
    line-height: 1;
    letter-spacing: 8px;
}

.logo-tik-dots,
.logo-talk-dots {
    font-size: 1.5rem;
    color: var(--text-black);
    font-weight: normal;
}

.dot-red {
    color: var(--primary-red);
    letter-spacing: 0;
    font-size: 1.2rem;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 800;
    line-height: 1;
}

.logo-tik,
.logo-talk {
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--text-black);
}

.logo-talk {
    color: var(--primary-red);
}

.footer-logo .logo-tik,
.footer-logo .logo-talk {
    color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-black);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'LED Counter', monospace;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: normal;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-black);
    border: 2px solid var(--text-black);
}

.btn-secondary:hover {
    background: var(--text-black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: 'LED Counter', monospace;
    font-size: 3.5rem;
    font-weight: normal;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}

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

/* ===== FLIP PHONE MOCKUP (MODERN) ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Carousel Styles */
.phone-carousel {
    position: relative;
    width: 350px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    animation: fadeSlide 12s ease-in-out infinite;
}

.carousel-slide:nth-child(2).active {
    animation-delay: 4s;
}

.carousel-slide:nth-child(3).active {
    animation-delay: 8s;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: floatPhone 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.carousel-slide a:hover img {
    transform: scale(1.05) translateY(-5px);
}

@keyframes fadeSlide {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

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

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'LED Counter', monospace;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--background);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    font-family: 'LED Counter', monospace;
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    padding: 100px 0;
    background: var(--background);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.product-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.new {
    background: #10b981;
}

.product-phone-img {
    max-width: 180px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-family: 'LED Counter', monospace;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

.product-description {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    padding: 6px 14px;
    background: var(--background);
    color: var(--text-gray);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.price {
    font-family: 'LED Counter', monospace;
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--primary-red);
}

/* ===== ACCESSORIES SECTION ===== */
.accessories {
    padding: 100px 0;
    background: var(--white);
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.accessory-card {
    padding: 2rem 1.5rem;
    background: var(--background);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.accessory-card:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.accessory-card:hover h4,
.accessory-card:hover p {
    color: white;
}

.accessory-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.accessory-card h4 {
    font-family: 'LED Counter', monospace;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

.accessory-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--background);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat h3 {
    font-family: 'LED Counter', monospace;
    font-size: 3rem;
    font-weight: normal;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.info-item h4 {
    font-family: 'LED Counter', monospace;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    letter-spacing: 0.05em;
}

.info-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== WIDGETS ===== */
.widget-container {
    width: 100%;
    min-height: 500px;
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* Widget Typography Overrides */
.widget-container h1,
.widget-container h2,
.widget-container h3,
.widget-container h4,
.widget-container h5,
.widget-container h6 {
    font-family: 'LED Counter', monospace !important;
    font-weight: normal !important;
    letter-spacing: 0.05em !important;
    color: var(--text-black) !important;
}

.widget-container button,
.widget-container .btn,
.widget-container [class*="button"],
.widget-container input[type="submit"],
.widget-container input[type="button"] {
    font-family: 'LED Counter', monospace !important;
    background: var(--primary-red) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
    letter-spacing: 0.05em !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}

.widget-container button:hover,
.widget-container .btn:hover,
.widget-container [class*="button"]:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
}

.widget-container input,
.widget-container select,
.widget-container textarea {
    font-family: 'UniSans', 'Inter', sans-serif !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
}

.widget-container input:focus,
.widget-container select:focus,
.widget-container textarea:focus {
    outline: none !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1) !important;
}

/* Widget Card Styling */
.widget-container [class*="card"],
.widget-container [class*="item"],
.widget-container [class*="product"] {
    background: var(--background) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-light) !important;
    transition: var(--transition) !important;
}

.widget-container [class*="card"]:hover,
.widget-container [class*="item"]:hover,
.widget-container [class*="product"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-red) !important;
}

/* Widget Price Styling */
.widget-container [class*="price"],
.widget-container [class*="cost"],
.widget-container [class*="amount"] {
    font-family: 'LED Counter', monospace !important;
    color: var(--primary-red) !important;
    font-weight: normal !important;
    font-size: 1.5rem !important;
}

/* Widget Links */
.widget-container a {
    color: var(--primary-red) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

.widget-container a:hover {
    color: var(--primary-dark) !important;
}

/* Widget Body Text */
.widget-container p,
.widget-container span:not([class*="price"]):not([class*="amount"]) {
    font-family: 'UniSans', 'Inter', sans-serif !important;
    color: var(--text-gray) !important;
    line-height: 1.6 !important;
}

/* Widget Badges/Tags */
.widget-container [class*="badge"],
.widget-container [class*="tag"],
.widget-container [class*="label"] {
    background: var(--primary-red) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 24px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.contact-widget-container {
    width: 100%;
    min-height: 400px;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    display: block;
}

/* Contact widget content styling */
.contact-widget-container * {
    font-family: 'UniSans', 'Inter', sans-serif !important;
}

.contact-widget-container h1,
.contact-widget-container h2,
.contact-widget-container h3,
.contact-widget-container h4 {
    font-family: 'LED Counter', monospace !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form h3 {
    font-family: 'LED Counter', monospace;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-black);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'LED Counter', monospace;
    margin-bottom: 1.25rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Hide all nav items except cart on mobile by default */
    .nav-links li:not(:last-child) {
        display: none;
    }

    /* Show all items when menu is active */
    .nav-links.active li:not(:last-child) {
        display: block;
    }

    /* Cart icon always visible on mobile */
    .nav-links li:last-child {
        position: fixed;
        right: 60px;
        top: 20px;
        display: block !important;
        padding: 0;
        border: none;
        z-index: 1001;
    }

    /* Hide the dropdown menu by default */
    .nav-links:not(.active) {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-links li:last-child a {
        font-size: 1.3rem;
        padding: 8px;
        color: var(--text-black);
    }

    .cart-count {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
    }

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

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

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

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

    .phone-carousel {
        width: 250px;
        height: 300px;
    }

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

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

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 80px;
    }

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

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

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

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--primary-red);
    color: white;
}
