* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Pacifico:ital,wght@0,400;0,700;1,400&display=swap');


:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --accent-bg: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --accent-color: #4a9eff;
    --hover-color: #66b3ff;
    --border-color: #444444;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 25%, 
        #1a1a1a 50%, 
        #3a3a3a 75%, 
        #1a1a1a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(74, 158, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(102, 179, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 30%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(58, 58, 58, 0.3) 0%, transparent 30%);
    animation: background-shift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes background-shift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(20px) translateY(-20px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateX(-15px) translateY(15px) scale(0.95);
        opacity: 0.9;
    }
    75% {
        transform: translateX(25px) translateY(-10px) scale(1.02);
        opacity: 0.85;
    }
}

/* Navigation */
.navbar {
    background-color: var(--secondary-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color:white;
    font-weight: bold;
font-family: 'Cinzel', serif;    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    margin-right:10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--accent-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--secondary-bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-content h1 img {
    height: 2em;
    width: auto;
    max-width: 2.5em;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.5s ease;
    filter: drop-shadow(0 2px 8px rgba(74, 158, 255, 0.3));
    margin-right: 0.5em;
}

.hero-content h1:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Typing animation enhancement for logo */
.typing-text img {
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 8px rgba(74, 158, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 12px rgba(74, 158, 255, 0.5));
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid - Horizontal Layout */
.portfolio-preview {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Portfolio Card Styles */
.portfolio-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 250px;
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

.portfolio-card p {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.portfolio-card a {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.portfolio-card a:hover {
    background-color: var(--hover-color);
}

.portfolio-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 250px;
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item h3 {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.portfolio-item p {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category-content-section {
    background-color: var(--primary-bg);
    min-height: 60vh;
    padding: 2rem 0;
}

/* Category Gallery Grid - Full Width Horizontal */
.category-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.gallery-item {
    flex: 0 0 calc(20% - 0.8rem);
    height: 180px;
    width: 140px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 120px;
    object-fit: fill;
}

.gallery-item-title {
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
}

/* Header Sections */
.portfolio-header,
.category-header-section {
    background-color: var(--secondary-bg);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.category-header-content h1,
.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-header-content p,
.portfolio-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.back-button {
    position: fixed;
    top: 90px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(45, 45, 45, 0.95) 0%, 
        rgba(58, 58, 58, 0.95) 50%, 
        rgba(68, 68, 68, 0.95) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.1) 0%, 
        rgba(102, 179, 255, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.back-button::after {
    content: '←';
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.back-button:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(74, 158, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(58, 58, 58, 0.98) 0%, 
        rgba(74, 74, 74, 0.98) 50%, 
        rgba(84, 84, 84, 0.98) 100%);
    border-color: rgba(74, 158, 255, 0.3);
}

.back-button:hover::before {
    opacity: 1;
}

.back-button:hover::after {
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
}

.back-button:active {
    transform: translateY(-1px) scale(1.02);
    transition-duration: 0.1s;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(74, 158, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* Enhanced tooltip */
.back-button-tooltip {
    content: 'Back';
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, 
        rgba(45, 45, 45, 0.95) 0%, 
        rgba(58, 58, 58, 0.95) 100%);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
}

.back-button-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent rgba(58, 58, 58, 0.95) transparent transparent;
}

.back-button:hover .back-button-tooltip {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

/* Responsive adjustments for back button */
@media (max-width: 768px) {
    .back-button {
        top: 85px;
        left: 15px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        z-index: 1001;
    }
    
    .back-button::after {
        font-size: 1.6rem;
    }
    
    .back-button-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .back-button {
        top: 80px;
        left: 10px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        z-index: 1001;
    }
    
    .back-button::after {
        font-size: 1.4rem;
    }
}

/* Add subtle animation when page loads */
@keyframes back-button-entrance {
    0% {
        opacity: 0;
        transform: translateX(-20px) translateY(-10px) scale(0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateX(5px) translateY(0) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.back-button {
    animation: back-button-entrance 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s both;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-text h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.learn-more-section {
    background-color: var(--secondary-bg);
    padding: 3rem 2rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close:hover {
    color: var(--accent-color);
}

#modalCaption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-secondary);
    padding: 10px 0;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
}

/* Directory Showcase Styles */
.directory-showcase {
    padding: 4rem 2rem;
    background-color: var(--primary-bg);
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.showcase-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.channel-section {
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.channel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.channel-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.channel-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.category-showcase-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 250px;
    background-color: var(--accent-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

.category-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.showcase-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-showcase-card:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-info {
    padding: 1rem;
}

.showcase-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.showcase-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-count {
    background-color: var(--accent-color);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-showcase-card:hover .showcase-overlay {
    opacity: 1;
}

.view-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Category Modal Styles */
.category-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content-large {
    background-color: var(--secondary-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--accent-bg);
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.8rem;
}

.close-modal {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.modal-gallery-item {
    flex: 0 0 calc(20% - 0.8rem);
    min-width: 150px;
    background-color: var(--accent-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.modal-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.overlay {
    padding-left:10px;
}

.modal-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-primary);
    padding: 1rem 0.5rem 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.modal-gallery-item:hover .modal-item-overlay {
    transform: translateY(0);
}

.modal-item-overlay h4 {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
    opacity: 0;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.7);
    }
    100% {
        transform: scale(1.5);
        box-shadow: 0 0 0 10px rgba(74, 158, 255, 0);
    }
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: trail-fade 0.5s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Brush Stroke Effect */
.brush-stroke {
    position: relative;
    display: inline-block;
}

.brush-stroke::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--hover-color));
    animation: brush-draw 2s ease-out 0.5s forwards;
}

@keyframes brush-draw {
    to {
        width: 100%;
    }
}

/* Glow Effects */
.glow-on-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--hover-color), var(--accent-color));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: glow-rotate 3s linear infinite;
}

.glow-on-hover:hover::before {
    opacity: 0.7;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Animation */
.float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card Animations */
.portfolio-card,
.category-showcase-card {
    animation: card-entrance 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

@keyframes card-entrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background-color: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Interactive Hover Enhancements */
.portfolio-card:hover,
.category-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        0 0 20px rgba(74, 158, 255, 0.3);
}

/* Enhanced Background Animation with Gradients */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 25%, 
        #1a1a1a 50%, 
        #3a3a3a 75%, 
        #1a1a1a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(74, 158, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(102, 179, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 30%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(58, 58, 58, 0.3) 0%, transparent 30%);
    animation: background-shift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes background-shift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(20px) translateY(-20px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateX(-15px) translateY(15px) scale(0.95);
        opacity: 0.9;
    }
    75% {
        transform: translateX(25px) translateY(-10px) scale(1.02);
        opacity: 0.85;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .dropdown-content {
        position: relative;
        display: block;
        background-color: var(--accent-bg);
        box-shadow: none;
        border-radius: 0;
        margin-top: 1rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        opacity: 1;
        max-height: 300px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-logo img {
        height: 32px;
        max-width: 120px;
    }
    
    /* Portfolio cards responsive */
    .portfolio-card,
    .portfolio-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 200px;
    }
    
    .category-showcase-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 200px;
    }
    
    .gallery-item {
        flex: 0 0 calc(33.33% - 0.67rem);
        min-width: 120px;
        height: 140px;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 90px;
    }
    
    .modal-gallery-item {
        flex: 0 0 calc(33.33% - 0.67rem);
        min-width: 120px;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .category-content-section {
        padding: 1rem 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-content h1 img {
        height: 1.5em;
        max-width: 2em;
        margin-right: 0;
        margin-bottom: 0.5em;
    }
    
    .portfolio-preview h2 {
        font-size: 2rem;
    }
    
    .showcase-header h2 {
        font-size: 2rem;
    }
    
    .channel-header h3 {
        font-size: 1.5rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: none;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    #modalCaption {
        bottom: 10px;
        width: 95%;
        font-size: 0.9rem;
    }
    
    .modal-content-large {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 28px;
        max-width: 100px;
    }
    
    .portfolio-card,
    .portfolio-item {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .category-showcase-card {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .gallery-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 100px;
        height: 120px;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 80px;
    }
    
    .modal-gallery-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 100px;
    }
    
    .content-container {
        padding: 0.5rem;
    }
    
    .portfolio-preview,
    .about-section {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        gap: 0.6rem;
    }
    
    .hero-content h1 img {
        height: 1.2em;
        max-width: 1.8em;
        margin-bottom: 0.3em;
    }
    
    .portfolio-preview h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .showcase-header h2 {
        font-size: 1.8rem;
    }
    
    .channel-header h3 {
        font-size: 1.3rem;
    }
    
    .category-header-content h1,
    .portfolio-header h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        gap: 1rem;
    }
    
    .channel-section {
        padding: 1rem;
    }
    
    .directory-showcase {
        padding: 2rem 1rem;
    }
    
    /* Image responsive fixes */
    .portfolio-card img,
    .portfolio-item img {
        height: 150px;
    }
    
    .showcase-image-container {
        height: 120px;
    }
    
    /* Better touch targets */
    .portfolio-card a,
    .back-button,
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .dropdown-content a {
        padding: 1rem 16px;
        font-size: 1rem;
    }
}

/* Image loading and error handling */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.portfolio-card img,
.portfolio-item img,
.gallery-item img,
.showcase-image,
.modal-gallery-item img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Fallback for broken images */
img[src=""],
img:not([src]),
img[src="images/placeholder.png"] {
    background-color: var(--accent-bg);
    background-image: linear-gradient(45deg, var(--border-color) 25%, transparent 25%), 
                      linear-gradient(-45deg, var(--border-color) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, var(--border-color) 75%), 
                      linear-gradient(-45deg, transparent 75%, var(--border-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

img[src=""]:after,
img:not([src]):after,
img[src="images/placeholder.png"]:after {
    content: "No Image";
}

/* Enhanced mobile navigation interactions */
@media (max-width: 768px) {
    .dropdown-btn {
        position: relative;
    }
    
    .dropdown-btn:after {
        content: '▼';
        position: absolute;
        right: -20px;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-btn:after {
        transform: rotate(180deg);
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better touch feedback */
    .portfolio-card:active,
    .gallery-item:active,
    .category-showcase-card:active {
        transform: scale(0.98);
    }
}
