/* ======================================
   GLOBAL STYLES & VARIABLES
   ====================================== */
   :root {
    --primary-color: #000000;
    --accent-color: #ff4757;
    --accent-hover: #ff6b81;
    --accent-glow: rgba(255, 71, 87, 0.3);
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    --card-bg: #f9f9f9;
    --text-primary: #333;
    --text-light: #666;
    --text-muted: #666;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.1);
    --border-color: #eee;
    --header-bg: rgba(255,255,255,0.95);
    --footer-bg: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --bg-light: #1a1a1a;
    --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --card-bg: #242424;
    --text-primary: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #888;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.5);
    --border-color: #333;
    --header-bg: rgba(26,26,26,0.95);
    --footer-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-gradient);
    color: var(--text-primary); 
    overflow-x: hidden; 
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ======================================
   NAVIGATION (SHARED)
   ====================================== */
header {
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    background: var(--header-bg); 
    backdrop-filter: blur(10px);
    position: sticky; 
    top: 0;
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo { 
    font-size: 1.2rem; 
    font-weight: 800; 
    text-decoration: none; 
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo span { 
    color: var(--accent-color); 
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a { 
    text-decoration: none; 
    color: var(--text-primary); 
    margin-left: 15px; 
    font-weight: 500; 
    transition: 0.3s;
    position: relative;
    font-size: 0.85rem;
}

nav a:hover, nav a.active { 
    color: var(--accent-color); 
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 767px) {
    .hamburger { display: flex; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 40px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s ease;
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }

    nav.open { right: 0; }

    nav a {
        margin-left: 0;
        font-size: 1.1rem;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-weight: 600;
    }

    nav a.active::after { bottom: -1px; }

    .theme-toggle {
        margin-left: 0;
        margin-top: 20px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }

    .nav-overlay.open { display: block; }
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.theme-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(15deg) scale(1.05);
}

.theme-toggle i {
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    color: #fff;
}

/* ======================================
   BUTTONS (SHARED)
   ====================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
    font-size: 0.95rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.5);
}

/* ======================================
   FOOTER (SHARED)
   ====================================== */
footer { 
    padding: 60px 5%; 
    background: var(--footer-bg);
    color: #fff; 
    text-align: center; 
}

.footer-content h2 { 
    font-size: 2rem; 
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-content > p {
    font-size: 1rem;
    color: #999;
}

.social-links { 
    margin: 30px 0; 
}

.social-links a { 
    color: #fff; 
    margin: 0 12px; 
    text-decoration: none; 
    font-size: 0.95rem; 
    transition: all 0.3s;
    font-weight: 500;
}

.social-links a:hover { 
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ======================================
   HOME PAGE - HERO SLIDER
   ====================================== */
.hero-slider {
    position: relative; 
    height: 70vh; 
    width: 100%; 
    overflow: hidden; 
    background: #000;
}

.slider-wrapper {
    display: flex; 
    height: 100%; 
    width: 100%;
}

.slide { 
    min-width: 100%; 
    height: 100%; 
    position: relative; 
}

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.5; 
}

.hero-text {
    position: absolute; 
    top: 50%; 
    left: 5%; 
    transform: translateY(-50%);
    color: white; 
    max-width: 90%; 
    z-index: 2;
    padding: 20px;
}

.hero-text h1 { 
    font-size: 2.5rem; 
    line-height: 1.1; 
    margin-bottom: 10px; 
}

.hero-text p { 
    font-size: 1rem; 
    margin-bottom: 20px; 
    color: #ccc; 
}

.control-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: none;
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10;
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1rem;
}

.control-btn:hover { 
    background: var(--accent-color); 
}

.prev-btn { left: 15px; } 
.next-btn { right: 15px; }

/* ======================================
   HOME PAGE - ABOUT SECTION WITH PROFILE
   ====================================== */
.about-section {
    padding: 60px 5%;
    background: var(--card-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-card {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 30px;
    aspect-ratio: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-ring {
    position: absolute;
    inset: -10px;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-image-wrapper:hover .profile-ring {
    opacity: 1;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--bg-light);
    padding: 25px 15px;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.about-content {
    max-width: 100%;
}

.about-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ======================================
   HOME PAGE - SERVICES SECTION
   ====================================== */
.services { 
    padding: 60px 5%; 
    background: var(--bg-light); 
}

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

.section-header h2 { 
    font-size: 2rem; 
    margin-bottom: 15px; 
}

.section-header p {
    font-size: 0.95rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--card-shadow); 
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 { 
    margin-bottom: 12px; 
    font-size: 1.3rem; 
}

.service-card p { 
    color: var(--text-light); 
    font-size: 0.9rem; 
}

/* ======================================
   PORTFOLIO PAGE - HEADER & FILTERS
   ====================================== */
.portfolio-header { 
    padding: 60px 5% 30px; 
    text-align: center; 
}

.portfolio-header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    letter-spacing: -2px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
}

.filter-container {
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    padding: 25px 0 40px; 
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px; 
    border: 2px solid var(--border-color); 
    background: var(--card-bg);
    cursor: pointer; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-glow);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.filter-btn.active { 
    background: var(--accent-color); 
    color: #fff; 
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.filter-btn.active::before {
    display: none;
}

/* ======================================
   PORTFOLIO PAGE - GRID & ITEMS
   ====================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; 
    padding: 0 5% 60px;
    min-height: 300px;
}

.portfolio-item {
    position: relative; 
    border-radius: 16px; 
    overflow: hidden;
    height: 320px; 
    background: var(--card-bg);
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.5s ease-out forwards;
}

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

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img { 
    transform: scale(1.1); 
}

/* Project Date Badge */
.project-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-date i {
    font-size: 0.75rem;
}

.overlay {
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(255,71,87,0.8) 100%);
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff; 
    padding: 25px; 
    text-align: center;
}

.portfolio-item:hover .overlay { 
    opacity: 1; 
}

.overlay h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s 0.1s;
}

.portfolio-item:hover .overlay h3 {
    transform: translateY(0);
}

.overlay .category-tag { 
    font-size: 0.65rem; 
    color: #fff; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: transform 0.4s 0.15s;
}

.portfolio-item:hover .overlay .category-tag {
    transform: translateY(0);
}

.overlay .description { 
    font-size: 0.8rem; 
    line-height: 1.5; 
    color: rgba(255,255,255,0.95); 
    font-weight: 400; 
    max-width: 90%;
    transform: translateY(20px);
    transition: transform 0.4s 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-item:hover .overlay .description {
    transform: translateY(0);
}

/* Video Styles */
.project-video {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    transition: opacity 0.4s;
}

.video-thumbnail {
    transition: opacity 0.4s;
}

.play-icon {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 60px; 
    height: 60px; 
    background: rgba(255, 71, 87, 0.95);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #fff; 
    font-size: 20px; 
    padding-left: 5px;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
    cursor: pointer;
    z-index: 10;
}

.play-icon:hover { 
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 71, 87, 1);
}

.video-playing .play-icon {
    opacity: 0;
    pointer-events: none;
}

.video-playing .video-thumbnail {
    opacity: 0;
}

.video-playing .project-video {
    opacity: 1;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 11;
}

.video-playing:hover .video-controls {
    opacity: 1;
}

.pause-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.pause-btn:hover {
    background: rgba(255, 71, 87, 0.9);
    border-color: var(--accent-color);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.portfolio-item.clicked::after {
    width: 500px;
    height: 500px;
}

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ======================================
   CONTACT PAGE
   ====================================== */
.contact-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.social-card {
    display: flex;
    align-items: center;
    padding: 18px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-card i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.social-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.social-card h3 { 
    font-size: 0.9rem; 
    margin-bottom: 2px; 
}

.social-card p { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin: 0; 
}

.form-card {
    background: var(--primary-color);
    padding: 35px 25px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

[data-theme="dark"] .form-card {
    background: #000;
}

.form-header { 
    margin-bottom: 25px; 
}

.form-header h2 { 
    font-size: 1.6rem; 
    margin-bottom: 10px; 
    color: #fff;
}

.form-header p { 
    color: #aaa; 
    font-size: 0.85rem; 
}

.form-group { 
    margin-bottom: 18px; 
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #888;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

/* Tablet and Above */
@media (min-width: 768px) {
    header {
        padding: 20px 8%;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav a {
        margin-left: 30px;
        font-size: 0.95rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        margin-left: 20px;
    }

    .theme-toggle i {
        font-size: 1.1rem;
    }

    .hero-slider {
        height: 85vh;
    }

    .hero-text {
        left: 8%;
        max-width: 700px;
        padding: 0;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .prev-btn { left: 20px; }
    .next-btn { right: 20px; }

    .about-section {
        padding: 100px 8%;
    }

    .about-container {
        grid-template-columns: 400px 1fr;
        gap: 80px;
    }

    .profile-image-wrapper {
        max-width: none;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .about-content h2 {
        font-size: 3rem;
        margin-bottom: 25px;
    }

    .about-content p {
        font-size: 1.05rem;
    }

    .skills-tags {
        gap: 12px;
        margin: 30px 0;
    }

    .skill-tag {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .services {
        padding: 100px 8%;
    }

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

    .section-header h2 {
        font-size: 2.5rem;
    }

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

    .service-card {
        padding: 40px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .service-icon i {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .portfolio-header {
        padding: 80px 8% 30px;
    }

    .portfolio-header h1 {
        font-size: 3.5rem;
    }

    .portfolio-header p {
        font-size: 1.1rem;
        padding: 0;
    }

    .filter-container {
        gap: 12px;
        padding: 30px 0 50px;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        padding: 0 8% 100px;
    }

    .portfolio-item {
        height: 380px;
    }

    .overlay {
        padding: 35px;
    }

    .overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .overlay .category-tag {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 18px;
    }

    .overlay .description {
        font-size: 0.7rem;
        line-height: 1.6;
    }

    .play-icon {
        width: 70px;
        height: 70px;
        font-size: 24px;
        padding-left: 6px;
    }

    .video-controls {
        padding: 20px;
    }

    .pause-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .project-date {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .contact-container {
        margin: 60px auto;
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }

    .contact-info h1 {
        font-size: 3.5rem;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .social-card {
        padding: 20px;
    }

    .social-card i {
        font-size: 1.5rem;
    }

    .social-card h3 {
        font-size: 0.95rem;
    }

    .social-card p {
        font-size: 0.8rem;
    }

    .form-card {
        padding: 40px;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 16px;
        font-size: 1rem;
    }

    footer {
        padding: 80px 8%;
    }

    .footer-content h2 {
        font-size: 2.3rem;
    }

    .footer-content > p {
        font-size: 1.1rem;
    }

    .social-links a {
        margin: 0 15px;
        font-size: 1rem;
    }

    .btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    nav a {
        margin-left: 10px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 8px;
    }

    .theme-toggle i {
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .portfolio-header h1 {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

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

    .portfolio-item {
        height: 280px;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}
/* TikTok dark mode fix */
[data-theme="dark"] .fa-tiktok {
    color: #ffffff !important;
}
/* ======================================
   PORTFOLIO ITEM SLIDER
   (Scoped to .portfolio-item only — does NOT affect hero slider)
   ====================================== */
.portfolio-item .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* All slides hidden by default */
.portfolio-item .slider-wrapper .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Active slide visible */
.portfolio-item .slider-wrapper .slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* slide-video-wrapper needs same treatment */
.portfolio-item .slider-wrapper .slide-video-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item .slider-wrapper .slide-video-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

/* Prev / Next arrow buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-btn:hover { background: var(--accent-color); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Dot indicators */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot.active { background: white; }
