/* Smaller font for product name in affiliate table */
.affiliate-product-name {
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    display: block;
}
/* Affiliate product image responsive sizing */
.affiliate-product-img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .affiliate-product-img {
        max-width: 60px;
    }
}
/* ========================================
   Affiliate Links Table
   ======================================== */
.affiliate-links-table-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 32px 0;
    overflow-x: visible;
}

.affiliate-links-table {
    background: var(--dark-gray);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    border-collapse: separate;
    border-spacing: 0;
    min-width: 320px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    /* overflow: hidden; */
    word-break: break-word;
    white-space: normal;
    margin: 0 auto;
    table-layout: fixed;
    transition: max-width 0.3s;
}

.affiliate-links-table thead tr th {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 20px;
}

.affiliate-links-table th, .affiliate-links-table td {
    padding: 16px 24px;
    color: var(--white);
}

.affiliate-links-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.affiliate-links-table tbody tr:first-child td {
    padding-top: 24px;
}

.affiliate-links-table tbody tr td {
    padding-bottom: 24px;
}

.affiliate-links-table tr:nth-child(even) {
    background: var(--medium-gray);
}

.affiliate-links-table tr:nth-child(odd) {
    background: var(--dark-gray);
}

.affiliate-links-table td:nth-child(2) {
    text-align: center;
    vertical-align: middle;
}

.affiliate-links-table td:nth-child(2) img {
    display: block;
    margin: 0 auto;
    max-width: 60px;
    height: auto;
}
.affiliate-links-table thead tr th {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 20px;
}

.affiliate-links-table tbody tr:first-child td {
    padding-top: 24px;
}
.affiliate-links-table td:nth-child(2) {
    text-align: center;
    vertical-align: middle;
}

.affiliate-links-table td:nth-child(2) img {
    display: block;
    margin: 0 auto;
}
/* ========================================
   Affiliate Links Table
   ======================================== */
.affiliate-links-table-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 32px 0;
}

.affiliate-links-table {
    background: var(--dark-gray);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    border-collapse: separate;
    border-spacing: 0;
    min-width: 320px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    table-layout: auto;
    transition: max-width 0.3s;
}
}
.affiliate-links-table th, .affiliate-links-table td {
    padding: 16px 24px;
    color: var(--white);
}
.affiliate-links-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
}
.affiliate-links-table tr:nth-child(even) {
    background: var(--medium-gray);
}
.affiliate-links-table tr:nth-child(odd) {
    background: var(--dark-gray);
}
/* ========================================
   Variables & Reset
   ======================================== */
:root {
    html, body {
        overflow-x: hidden !important;
    }
        overflow-x: auto;
    --primary-color: #ff6b35;
    --secondary-color: #ff8c42;
    --dark-bg: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #cccccc;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

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

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-brand a {
    display: block;
    line-height: 0;
}

.nav-brand .logo {
    height: 90px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-brand .logo {
    height: 55px;
}

.nav-brand .logo:hover {
    opacity: 0.8;
}

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

.nav-link {
    color: var(--white);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    padding: 8px 15px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.lang-btn.active {
    background: var(--gradient);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 66, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

@keyframes grid-animation {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: var(--gradient);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: scaleY(0.3); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
}

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

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--dark-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 80% 80%;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--medium-gray);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.image-placeholder svg {
    width: 150px;
    height: 150px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

/* ========================================
   Portfolio Section
   ======================================== */
.portfolio {
    background-color: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--medium-gray);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: none;
}

.portfolio-image .image-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.portfolio-overlay {
    background: var(--medium-gray);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--text-light);
    margin-bottom: 0;
}

.view-project {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
    pointer-events: auto;
}

.view-project:hover {
    transform: translateX(5px);
}

/* ========================================
   Instagram Feed Section
   ======================================== */
.instagram-feed {
    background-color: var(--dark-bg);
    padding: 100px 0;
}

.instagram-handle {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.instagram-handle:hover {
    color: var(--secondary-color);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--medium-gray);
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.instagram-post img,
.instagram-post video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    transition: var(--transition);
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
}

.instagram-stat svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.instagram-cta {
    text-align: center;
}

.instagram-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.instagram-cta .btn svg {
    stroke: currentColor;
}


.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.fullscreen-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-content video {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
}

.fullscreen-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 30px;
    text-align: center;
}

.fullscreen-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.fullscreen-info p {
    color: var(--text-light);
    font-size: 1.2rem;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.fullscreen-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.fullscreen-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background-color: var(--dark-gray);
}

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

.service-card {
    background: var(--medium-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background-color: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 2;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    stroke-width: 2;
}

.contact-form {
    background: var(--medium-gray);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--medium-gray);
    padding: 0 5px;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--dark-gray);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
}

.footer p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .affiliate-links-table {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        font-size: 0.85rem;
        word-break: break-word;
        white-space: normal;
    }
    .affiliate-links-table th, .affiliate-links-table td {
        padding: 8px 4px;
        font-size: 0.85rem;
        word-break: break-word;
        white-space: normal;
    }
    .affiliate-links-table td:nth-child(2) img {
        max-width: 60px;
        height: auto;
    }
    .hamburger {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }

    .nav-right.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 40px;
    }

    .language-switcher {
        margin-left: 0;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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