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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../images/background.png');
            background-position: center;
            background-attachment: fixed;
            color: #ffffff;
            line-height: 1.6;
            overflow-x: hidden;
        }

        html {
            scroll-behavior: smooth;
            background-color: #161616;
        }

        ::-webkit-scrollbar {
            width: 8px; 
        }

        ::-webkit-scrollbar-track {
            background: #0a0a0a;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
            border-radius: 20px;
            border: 2px solid #0a0a0a; 
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); 
        }


        /* === THEME TRANSITION === */
        body, .navbar, .filter-btn, .modal-content, .footer,
        input, button, a, h1, h2, h3, p, span, label {
            transition: background 0.4s ease-in-out, color 0.4s ease-in-out,
                        border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
        }

        /* === MOBILE NAV RIGHT === */
        .mobile-nav-right {
            display: none;
            align-items: center;
            gap: 10px;
        }

        /* === THEME BUTTON === */
        .theme-btn {
            background: transparent;
            border: none;
            color: #ccc;
            font-size: 1.3rem;
            cursor: pointer;
            transition: color 0.3s ease, transform 0.3s ease;
            margin-left: -10px;
            display: flex;
            align-items: center;
        }
        .theme-btn:hover { color: #667eea; transform: scale(1.1); }

        /* === MOBILE DROPDOWN === */
        .mobile-dropdown {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 999;
            background: rgba(0, 0, 0, 0);
            pointer-events: none;
            transition: background 0.35s ease;
        }
        .mobile-dropdown.open {
            background: rgba(0, 0, 0, 0.45);
            pointer-events: all;
        }
        .mobile-dropdown-card {
            position: absolute;
            top: 10px; left: 50%;
            transform: translateX(-50%) translateY(-20px) scale(0.95);
            width: calc(100% - 30px);
            max-width: 420px;
            background: rgba(18, 18, 18, 0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 24px;
            padding: 20px 24px 28px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            opacity: 0;
            transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .mobile-dropdown.open .mobile-dropdown-card {
            opacity: 1;
            transform: translateX(-50%) translateY(0px) scale(1);
        }
        .mobile-dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
        }
        .mobile-dropdown-logo {
            font-size: 1.1rem; font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .mobile-dropdown-close {
            background: transparent; border: none;
            color: #aaa; font-size: 1.2rem;
            cursor: pointer; padding: 4px;
            transition: color 0.2s ease;
        }
        .mobile-dropdown-close:hover { color: #fff; }
        .mobile-dropdown-links {
            display: flex; flex-direction: column; gap: 4px;
        }
        .mobile-nav-link {
            display: block; text-align: center;
            padding: 14px 0; font-size: 1.25rem;
            font-weight: 600; color: #667eea;
            text-decoration: none; border-radius: 12px;
            opacity: 0; transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
        }
        .mobile-dropdown.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
        .mobile-dropdown.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
        .mobile-dropdown.open .mobile-nav-link:nth-child(2) { transition-delay: 0.10s; }
        .mobile-dropdown.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
        .mobile-dropdown.open .mobile-nav-link:nth-child(4) { transition-delay: 0.20s; }
        .mobile-dropdown.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }
        .mobile-nav-link:hover { background: rgba(102, 126, 234, 0.12); }
        .mobile-nav-cta {
            margin-top: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            color: #fff !important; border-radius: 30px !important;
        }
        .mobile-nav-cta:hover { opacity: 0.9; }

        @media (max-width: 768px) {
            .mobile-dropdown { display: block; }
            .mobile-nav-right { display: flex; }
            .menu-toggle { display: flex; }
        }

        /* === LIGHT MODE === */
        body.light-mode {
            background: url('../images/background light.png') no-repeat center center fixed;
            background-size: cover;
            color: #2d2250;
        }

        body.light-mode::before {
            content: '';
            position: fixed; inset: 0;
            background:
                radial-gradient(ellipse at 15% 20%, rgba(168, 148, 234, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 75%, rgba(122, 176, 255, 0.15) 0%, transparent 55%);
            pointer-events: none; z-index: 0;
        }

        body.light-mode .navbar {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(20px);
            border-color: rgba(160, 130, 220, 0.25);
            box-shadow: 0 8px 32px rgba(100, 80, 180, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
        }
        body.light-mode .nav-links a { color: #4a3b7a; }
        body.light-mode .nav-links a:hover { color: #667eea; }
        body.light-mode .menu-toggle span { background: #4a3b7a; }
        body.light-mode .theme-btn { color: #4a3b7a; }
        body.light-mode .theme-btn:hover { color: #667eea; }

        body.light-mode .header-section p { color: #6b5c9a; }

        body.light-mode .filter-btn {
            background: rgba(255,255,255,0.5);
            border-color: rgba(160,130,220,0.3);
            color: #5a4a88;
            backdrop-filter: blur(8px);
        }
        body.light-mode .filter-btn:hover,
        body.light-mode .filter-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff; border-color: transparent;
        }

        body.light-mode .portfolio-item-inner { background: #f0ecff; }

        body.light-mode .portfolio-title{
            color: #ffffff !important;
        }

        body.light-mode .modal { background: rgba(220, 210, 245, 0.97); }
        body.light-mode .modal-content {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(160,130,220,0.2);
        }
        body.light-mode .modal-title { color: #1e1540; }
        body.light-mode .modal-description { color: #5a4a88; }
        body.light-mode .modal-info { border-color: rgba(160,130,220,0.2); }
        body.light-mode .info-item p { color: #5a4a88; }
        body.light-mode .close-modal {
            background: rgba(160,130,220,0.15);
            color: #4a3b7a;
        }
        body.light-mode .close-modal:hover { color: #1e1540; }

        html.light-mode ::-webkit-scrollbar-track { background: #e0daf0; }
        html.light-mode ::-webkit-scrollbar-thumb { border-color: #e0daf0; }

        body.light-mode .footer {
            background: rgba(220, 210, 245, 0.6);
            backdrop-filter: blur(12px);
            border-color: rgba(160, 130, 220, 0.2);
        }
        body.light-mode .footer p { color: #7060a8; }

        /* Light mode mobile dropdown */
        body.light-mode .mobile-dropdown.open { background: rgba(0,0,0,0.25); }
        body.light-mode .mobile-dropdown-card {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-color: rgba(160,130,220,0.3);
            box-shadow: 0 20px 60px rgba(100,80,180,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
        }
        body.light-mode .mobile-dropdown-close { color: #666; }
        body.light-mode .mobile-dropdown-close:hover { color: #333; }
        body.light-mode .mobile-nav-link { color: #667eea; }
        body.light-mode .mobile-nav-link:hover { background: rgba(102,126,234,0.08); }
        body.light-mode .mobile-dropdown-logo {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 80px);
            max-width: 1300px;
            padding: 8px 24px;
            background: rgba(15, 15, 15, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 100;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 50px;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.3rem;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none;
            margin-left: 15px;
        }

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

        .nav-links a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.95rem;
        }

        .nav-links a:hover {
            color: #667eea;
        }

        .nav-cta {
            padding: 8px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 30px;
            color: #fff !important;
            font-weight: 500;
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

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

        .menu-toggle span {
            width: 25px;
            height: 2px;
            background: #fff;
            transition: all 0.3s ease;
        }

        /* Header Section */
        .header-section {
            padding: 150px 60px 80px;
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
        }

        .header-section h1 {
            font-size: 5rem;
            font-weight: 700;
            margin-bottom: -5px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-section p {
            font-size: 1.1rem;
            color: #888;
            max-width: 600px;
            margin: 0 auto -50px;
        }

        /* Filter Section */
        .filter-section {  
            padding: 0 60px 30px;
            max-width: 1400px;
            margin: 0 auto;
            margin-top: 60px;
        }

        .filter-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 8px 20px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 30px;
            color: #888;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.90rem;
            font-family: inherit;
        }

        .filter-btn:hover, .filter-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border-color: transparent;
            transform: translateY(-2px);
        }

        /* Portfolio Grid */
        .portfolio-section {
            padding: 0 60px 100px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .portfolio-grid {
            display: block;
            width: 100%;
        }

        @media (max-width: 1200px) {
            .grid-sizer, .portfolio-item { width: 50%; }
        }

        .grid-sizer {
            width: 33.333%;
        }

        .portfolio-item {
            position: relative;
            width: 33.333%;
            margin-bottom: 0px;
            break-inside: avoid;
            border-radius: 10px;
            cursor: pointer;
            padding: 15px;
        }

        .portfolio-item-inner {
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            background: #1a1a1a;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .portfolio-item:hover .portfolio-item-inner {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4); 
        }

        .portfolio-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        .portfolio-item-content {
            padding: 25px;
            position: relative; 
            background: linear-gradient(to top, #1a1a1a 80%, transparent);
        }

        .portfolio-item:hover {
            z-index: 2;
        }

        .photo-thumbnail {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center top;
            transition: transform 0.4s ease;
        }

        .portfolio-item:hover .photo-thumbnail {
            transform: scale(1.05);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
        }

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

        .portfolio-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0px;
        }

        .portfolio-category {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 15px;
        }

        .portfolio-tags {
            display: flex;
            gap: 8px;
            margin-top: -10px;
            flex-wrap: wrap;
        }

        .tag {
            background: rgba(102, 126, 234, 0.15); 
            color: #667eea;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        /* Placeholder colors for thumbnails */
        .item-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .item-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
        .item-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
        .item-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
        .item-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
        .item-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
        .item-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
        .item-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
        .item-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.95);
            z-index: 200;
            padding: 80px 40px 40px 40px;
            overflow-y: auto;
        }

        .modal.active {
            display: block;
        }

        .modal-content {
            max-width: 1200px;
            width: 100%;
            background: #1a1a1a;
            border-radius: 30px;
            padding: 80px 60px 60px 60px;
            position: relative;
            margin: 0 auto;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: #888;
            cursor: pointer;
            transition: color 0.3s ease;
            background: rgba(0,0,0,0.5);
            border: none;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            border-radius: 50%;
        }

        .close-modal:hover {
            color: #fff;
        }

        .modal-title {
            font-size: 2.5rem;
            margin-bottom: 40px;
            text-align: center;
        }

        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .gallery-image {
            width: 100%;
            height: auto;
            min-height: auto;
            object-fit: contain;
            cursor: pointer;
            transition: transform 0.3s ease;
            background-color: transparent;
        }

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

        .modal-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            padding-top: 40px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .info-item h4 {
            color: #667eea;
            font-size: 0.9rem;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .info-item p {
            color: #aaa;
        }

        /* Lightbox for full image view */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.98);
            z-index: 300;
            justify-content: center;
            align-items: center;
            padding: 40px;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

        .lightbox-close {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 2.5rem;
            color: #fff;
            cursor: pointer;
            background: rgba(0,0,0,0.5);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 100px 20px;
            display: none;
        }

        .empty-state.show {
            display: block;
        }

        .empty-state i {
            font-size: 4rem;
            color: #333;
            margin-bottom: 20px;
        }

        .empty-state p {
            color: #666;
            font-size: 1.1rem;
        }

        /* Mobile */
    @media (max-width: 768px) {
        .navbar { 
            top: 15px;
            width: calc(100% - 30px);
            padding: 10px 18px;
            border-radius: 50px;
        }

        .nav-links { 
            display: none !important; 
        }

        .mobile-nav-right { 
            display: flex; 
        }

        .menu-toggle { 
            display: flex !important; 
        }

        .header-section {
            padding: 100px 20px 30px !important;
        }
        .header-section h1 {
            font-size: 2.5rem !important;
            margin-bottom: -5px !important;
        }
        .header-section p {
            font-size: 1rem !important;
            margin-bottom: -20px !important;
        }

        /* Filter Scroll */
        .filter-buttons {
            justify-content: flex-start !important;
            flex-wrap: nowrap !important;
            overflow-x: auto;
            padding: 10px 0;
            gap: 10px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; 
        }
        .filter-buttons::-webkit-scrollbar { display: none; }
        .filter-btn {
            white-space: nowrap;
            padding: 8px 18px !important;
            font-size: 0.85rem !important;
        }

        .portfolio-section {
            padding: 0 15px 60px !important;
        }
        
        .portfolio-grid {
            display: block;
            width: 100%;
        }

        .grid-sizer, .portfolio-item { 
            width: 100% !important; 
        }
        
        .portfolio-item {
            padding: 0 0 20px 0 !important;
        }

        .portfolio-overlay {
            padding: 20px; 
        }

        .portfolio-title { 
            font-size: 1.2rem;
            margin-bottom: -3px;
        }

        .portfolio-category { 
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .tag {
            padding: 4px 10px;
            font-size: 0.7rem;
        }

        .modal {
            padding: 30px;
            background: rgba(0, 0, 0, 0.9);
        }

        .modal.active {
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }

        .modal-content {
            padding: 30px 20px 50px 20px;
            margin: 20px auto;
            width: 100%;
            height: 100%;
            min-height: 100vh;
            max-height: none;
            background: #1a1a1a;
            border-radius: 15px;
            overflow-y: auto; 
            display: block;
        }

        .modal-title {
            font-size: 1.5rem;
            text-align: left; 
        }

        .close-modal { 
            top: 10px; 
            right: 10px; 
            width: 35px; 
            height: 35px; 
            background: rgba(0,0,0,0.8); 
        }

        .photo-gallery {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .modal-info {
            gap: 5px;
            padding-top: 20px;
            margin-top: 30px ; 
            border-top: 1px solid rgba(255,255,255,0.1);
            grid-template-columns: 1fr 1fr ; 
        }
        
        .info-item h4 {
            font-size: 1.2rem; 
            color: #667eea;
            margin-bottom: 4px;
        }
        
        .info-item p {
            font-size: 0.9rem;
            color: #ddd;
            font-weight: 400;
        }
    }

        html {
            scrollbar-gutter: stable;
        }

        /* Footer */
        .footer {
            padding: 30px 40px;
            background: #0f0f0f;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer p {
            color: #666;
            font-size: 0.95rem;
        }

        /* === HERO COVER PHOTOGRAPHY === */
.hero-photo-cover {
    position: relative;
    width: 100%;
    height: 100vh;
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('../images/portfolio/IMG_8399.jpg'); 
    
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-photo-content {
    z-index: 2;
    padding: 0 20px;
    margin-top: 50px; 
}

.hero-photo-content h1 {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: -15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-photo-content p {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto;
}

/* Biar tetep cakep pas dibuka di HP */
@media (max-width: 768px) {
    .hero-photo-cover {
        height: 60vh;
        background-attachment: scroll; 
    }
    .hero-photo-content h1 {
        font-size: 2.5rem;
    }
    .hero-photo-content p {
        font-size: 1rem;
    }
}