* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #6366f1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #121212;
}

header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
}

header h1 {
    font-size: 7rem;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    margin-bottom: 5px;
    line-height: 1;
}

header p {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);    
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

p {
    color: #b0b0b0;
}

nav {
    background-color: #1a1a1a;
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.5s ease;
}

nav a:hover {
    color: var(--accent);
    opacity: 1;
}

nav a.active {
    color: var(--accent) !important;
    opacity: 1 !important;
}

section {
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section + section {
    border-top: 1px solid #2a2a2a;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #2a2a2a;
}

footer p {
    font-size: 0.85rem;
    color: #666;
}

/* Stats Counter */
.stats-counter {
    margin-top: 0px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.digit {
    display: inline-block;
}

.digit-change {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
}

/* Videos Section */
.view-work-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-work-btn:hover {
    background-color: #5558e3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

#featuredVideos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
    scroll-behavior: smooth;
}

#featuredVideos::-webkit-scrollbar {
    height: 8px;
}

#featuredVideos::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

#featuredVideos::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

#featuredVideos .video-item {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.video-item {
    margin-bottom: 20px;
}

.video-thumbnail-link {
    display: block;
    text-decoration: none;
    position: relative;
    margin-bottom: 12px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.video-client-pfp {
    flex-shrink: 0;
}

.video-client-pfp img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-client-link {
    text-decoration: none;
}

.video-client-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 4px;
}

.video-client-link:hover .video-client-name {
    color: #ffffff;
}

.video-meta {
    font-size: 0.85rem;
    color: #888;
}

/* Portfolio Page */
.portfolio-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-header p {
    color: #b0b0b0;
}

.portfolio-controls {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls, .filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portfolio-controls label {
    color: #b0b0b0;
    font-weight: 600;
}

.sort-btn {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: var(--accent);
}

.sort-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
}

#clientFilter {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Testimonials Section */
.testimonial-carousel {
    position: relative;
    margin-top: 20px;
    min-height: 200px;
}

.testimonial-item {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-header {
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.client-info:hover {
    opacity: 0.8;
}

.client-pfp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent);
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.client-subs {
    font-size: 0.85rem;
    color: #888;
}

.testimonial-text {
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent);
}

/* Contact Section */
.contact-links {
    margin-top: 20px;
}

.contact-links a {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.contact-links a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    nav {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    nav a {
        display: inline-block;
        margin: 6px 12px;
        padding: 8px 4px;
        font-size: 0.85rem;
    }

    /* Line 1 = first 3 links */
    nav a:nth-child(-n+3) {
        order: 1;
    }

    /* Line 2 = last 2 links */
    nav a:nth-child(n+4) {
        order: 2;
    }

    header h1 {
        font-size: 3.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #featuredVideos .video-item {
        min-width: 280px;
        max-width: 280px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-carousel {
        min-height: 250px;
    }

    .contact-links a {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
    }

    section {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    #featuredVideos .video-item {
        min-width: 250px;
        max-width: 250px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item h3 {
        font-size: 0.95rem;
    }
}

