/* All of your original CSS is now in this separate file, with new styles for the admin panel. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B82F6;
    --secondary: #93C5FD;
    --dark: #0A0A0A;
    --light: #FFFFFF;
    --gray: #888;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(147, 197, 253, 0.1), transparent 50%),
        rgba(0, 0, 0, 0.92);
    z-index: 2;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 20px; /* Add padding for mobile */
}

.hero h1 {
    font-size: clamp(3rem, 15vw, 6rem); /* Adjusted clamp for better mobile scaling */
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light), var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    font-size: 1.2rem; /* Adjusted for mobile */
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-divider {
    height: 50px;
    width: 1px;
    background: var(--glass-border);
}

.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-height: 48px;
}

.stat p {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sections */
section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}


.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* YouTube Section */
.youtube-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 100px;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.youtube-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.youtube-text p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.youtube-showcase {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.youtube-showcase:hover {
    transform: translateY(-10px);
}

.video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--primary);
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.video-preview img,
.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Section */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow tabs to wrap on small screens */
}
.tab-btn {
    padding: 12px 30px; background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50px; color: var(--light); cursor: pointer;
    transition: all 0.3s ease; font-size: 14px; font-weight: 500;
}
.tab-btn:hover { background: rgba(59, 130, 246, 0.1); border-color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.portfolio-item {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
    overflow: hidden; cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
}

.portfolio-item.hiding {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.portfolio-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2); }
.portfolio-thumbnail {
    height: 200px;
    background-color: var(--secondary);
    position: relative;
}
.portfolio-info { padding: 25px; }
.portfolio-info h3 { margin-bottom: 10px; font-size: 1.3rem; }
.portfolio-info p { color: var(--gray); font-size: 0.9rem; margin-bottom: 15px; }
.portfolio-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { padding: 5px 12px; background: rgba(59, 130, 246, 0.2); border-radius: 20px; font-size: 0.8rem; color: var(--primary); }

/* Reviews Section */
.review-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
	flex: 0 0 calc(33.333% - 20px);
	width: calc(33.333% - 20px);
	box-sizing: border-box;
}
.review-card:hover { transform: scale(1.05); background: rgba(59, 130, 246, 0.05); }
.stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 15px; }
.review-text { color: var(--light); margin-bottom: 20px; font-style: italic; line-height: 1.8; }
.review-footer { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.review-pfp { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review-author { color: var(--light); font-size: 1rem; font-weight: 600; }
.review-author-title { color: var(--gray); font-size: 0.9rem; }

/* Contact Section */
.contact-section { text-align: center; padding: 100px 50px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent); border-radius: 30px; }
.contact-button {
    display: inline-flex; align-items: center; gap: 15px; padding: 20px 40px; background: var(--primary);
    color: white; border-radius: 50px; text-decoration: none; font-size: 1.1rem;
    font-weight: 600; transition: all 0.3s ease; margin-top: 30px;
    cursor: default;
}
.contact-button:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3); }

/* Footer */
footer { text-align: center; padding: 50px; border-top: 1px solid var(--glass-border); color: var(--gray); }
.social-links { display: flex; justify-content: center; gap: 25px; margin-top: 20px; }
.social-links a { color: var(--gray); transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary); }
.social-links svg { width: 24px; height: 24px; }

/* Video Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px); animation: fadeIn 0.3s ease;
}
.modal-content {
    position: relative; margin: auto; padding: 0; width: 90%;
    max-width: 960px; top: 50%; transform: translateY(-50%);
}
.modal-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; border: none; }
.close-btn {
    color: #aaa; position: absolute; top: -40px; right: 0px;
    font-size: 35px; font-weight: bold; transition: 0.3s;
}
.close-btn:hover, .close-btn:focus { color: white; text-decoration: none; cursor: pointer; }

/* Reviews Carousel Styles */
.reviews-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 50px;
}
.reviews-viewport {
    width: 100%;
    overflow: hidden;
    padding-top: 25px;
}
.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
}
.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.carousel-arrow.prev-arrow { left: -15px; }
.carousel-arrow.next-arrow { right: -15px; }
.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.carousel-arrow.pulse {
    animation: pulse-glow 2s infinite;
}
.reviews-carousel-container.pulse-off .pulse {
    animation: none;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Animations */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/*
================================
Admin Panel & Login Page Styles
================================
*/
/* ... (Admin styles are unchanged and remain here) ... */
.admin-body {
    padding: 20px;
}
.admin-container, .login-container {
    max-width: 1200px;
    margin: 40px auto;
}
.login-container {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.admin-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.admin-card h1, .admin-card h2 {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--light), var(--gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.admin-btn {
    padding: 12px 30px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.portfolio-item-list .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.portfolio-item-list .item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.delete-btn, .delete-review-btn {
    background: #be123c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}
.delete-btn:hover, .delete-review-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.admin-header h1 {
    margin: 0;
    padding: 0;
    border: none;
}
.item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.review-order-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.arrow-btn {
    background: var(--glass-border);
    border: none;
    color: var(--light);
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    transition: background 0.3s ease;
}
.arrow-btn:hover:not(:disabled) {
    background: var(--primary);
}
.arrow-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
.review-item-details {
    flex-grow: 1;
}
.custom-select-wrapper {
    position: relative;
}
.custom-select-wrapper::after {
    content: '▼';
    font-size: 0.8em;
    color: var(--gray);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

/*
================================
MOBILE RESPONSIVENESS FIXES
================================
*/
@media (max-width: 768px) {
    /* --- General Layout --- */
    nav {
        padding: 15px 20px; /* Reduce nav padding */
    }
    .nav-links {
        display: none; /* Hide nav links on mobile */
    }
    section {
        padding: 60px 20px; /* Reduce padding for all sections */
    }
    .section-title {
        font-size: 2.2rem; /* Make section titles smaller */
    }
    .section-subtitle {
        font-size: 1rem;
    }

    /* --- Hero Section --- */
    .hero-stats {
        gap: 20px;
        /* The flex-wrap property will handle stacking */
    }
    .stat h3 {
        font-size: 2rem;
    }
    .stat-divider {
        display: none; /* Hide dividers on mobile */
    }

    /* --- YouTube Section --- */
    .youtube-section {
        padding: 40px 20px;
    }
    .youtube-content {
        grid-template-columns: 1fr; /* Stack YouTube content vertically */
        gap: 40px;
    }
    .youtube-text h2 {
        font-size: 1.8rem;
    }

    /* --- Portfolio Section --- */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column portfolio grid */
        gap: 20px;
    }

    /* --- Reviews Carousel Section --- */
    .reviews-carousel-container {
        padding: 0; /* Remove side padding */
    }
    .review-card {
        /* On mobile, make cards take up more of the viewport width */
        width: calc(85vw - 20px);
        flex: 0 0 calc(85vw - 20px);
    }
    .carousel-arrow {
        /* Make arrows smaller and position them slightly inset */
        width: 35px;
        height: 35px;
    }
    .carousel-arrow.prev-arrow {
        left: 5px;
    }
    .carousel-arrow.next-arrow {
        right: 5px;
    }
    
    /* --- Contact Section --- */
    .contact-section {
        padding: 60px 20px;
    }
    .contact-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

