:root {
            --primary: #cc682e; /* Green accent from NOCMA/AgriTech projects */
            --dark: #1e1e24;    /* Dark background */
            --darker: #110614;  /* Section background */
            --light: #f4f4f9;   /* Text color */
            --gray: #a8a8b3;    /* Subtext color */
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'roboto', sans-serif;
            background-color: var(--dark);
            background-image: image-set(src="img/bg.jpg");
            color: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        /* --- NAVIGATION --- */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 5%;
            background-color: var(--darker);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .nav-links { display: flex; gap: 2rem; }
        .nav-links a { font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
        .nav-links a:hover { color: var(--primary); }

        /* --- HERO SECTION --- */
        .hero {
            height: 90vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            background: linear-gradient(rgba(30,30,36,0.5), rgba(30,30,36,0.5)), url('img/bg.jpg'); 
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
        }

        .hero h1 span { color: var(--primary); }
        
        .hero p {
            font-size: 1.2rem;
            color: var(--gray);
            max-width: 600px;
            margin-bottom: 2rem;
        }

        .btn {
            padding: 12px 30px;
            background-color: var(--primary);
            color: var(--darker);
            font-weight: 600;
            border-radius: 5px;
            transition: var(--transition);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
        }

        /* --- SERVICES SECTION (Requested) --- */
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            width: 60px;
            height: 4px;
            background-color: var(--primary);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }

        .services { padding: 5rem 10%; background-color: var(--darker); }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .service-card {
            background-color: var(--dark);
            border-radius: 10px;
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.05);
            display: flex;
            flex-direction: column;
        }

        .service-card-image {
            width: 100%;
            height: 180px;
            background: linear-gradient(135deg, var(--primary), rgba(204, 104, 46, 0.5));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .service-card-content {
            padding: 2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .service-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary);
        }

        .service-card i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        .service-card h3 { margin-bottom: 1rem; }
        .service-card p { font-size: 0.9rem; color: var(--gray); }

        /* --- SKILLS OVERVIEW --- */
        .skills { padding: 4rem 10%; background-color: var(--dark); }
        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
        }
        
        .tag {
            background-color: var(--darker);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            border: 1px solid var(--primary);
            color: var(--light);
        }

        /* --- PORTFOLIO (WEB) --- */
        .portfolio { padding: 5rem 10%; background-color: var(--darker); }
        
        .project-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .project-card {
            background-color: var(--dark);
            border-radius: 10px;
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.05);
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary);
        }

        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background-color: #333; /* Placeholder color */
        }

        .project-info {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .project-info h3 { margin-bottom: 0.5rem; color: var(--primary); }
        .project-info .role { font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 1rem; display: block;}
        .project-info p { font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }
        .tech-stack { font-size: 0.8rem; color: var(--primary); }

        /* --- GRAPHIC DESIGN GALLERY --- */
        .graphics { padding: 5rem 10%; background-color: var(--dark); }
        
        .design-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }


        .design-item {
            height: 250px;
            width: 250px;
            background-color: #1e1e24; /* Fill extra space with #dadada */
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .design-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
            margin: auto;
            background: transparent;
            position: relative;
            z-index: 1;
        }

        .design-item:hover .overlay { opacity: 1; }
        
        .overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(46, 204, 113, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: var(--transition);
            color: var(--darker);
            font-weight: bold;
            text-align: center;
            padding: 1rem;
        }

        /* --- CONTACT --- */
        footer {
            padding: 4rem 10%;
            background-color: var(--darker);
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .socials { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
        .socials a {
            font-size: 1.5rem;
            color: var(--gray);
            transition: var(--transition);
        }
        .socials a:hover { color: var(--primary); }

        /* --- GALLERY MODAL --- */
        .gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            overflow: hidden;
        }

        .gallery-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-modal-content {
            position: relative;
            width: 90%;
            max-width: 800px;
            height: auto;
            max-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-modal-image {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            width: auto;
            height: auto;
            animation: fadeIn 0.3s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .gallery-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: var(--light);
            cursor: pointer;
            background: rgba(204, 104, 46, 0.3);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            z-index: 10;
        }

        .gallery-modal-close:hover {
            background: var(--primary);
            color: var(--darker);
        }

        .gallery-slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            color: var(--light);
            cursor: pointer;
            background: rgba(204, 104, 46, 0.3);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            user-select: none;
            z-index: 10;
        }

        .gallery-slider-nav:hover {
            background: var(--primary);
            color: var(--darker);
        }

        .gallery-prev {
            left: 10px;
        }

        .gallery-next {
            right: 10px;
        }

        .gallery-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(204, 104, 46, 0.6);
            color: var(--light);
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            z-index: 10;
        }

        .gallery-item-wrapper {
            position: relative;
            cursor: pointer;
        }

        .gallery-item-wrapper:active {
            transform: scale(0.98);
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .project-grid, .design-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.5rem; }
            .nav-links { display: none; }
            .services-grid {
                display: flex;
                gap: 1.5rem;
                overflow-x: auto;
                overflow-y: hidden;
                scroll-behavior: smooth;
                padding-bottom: 1rem;
                -webkit-overflow-scrolling: touch;
            }
            .services-grid::-webkit-scrollbar {
                height: 8px;
            }
            .services-grid::-webkit-scrollbar-track {
                background: rgba(255,255,255,0.1);
                border-radius: 10px;
            }
            .services-grid::-webkit-scrollbar-thumb {
                background: var(--primary);
                border-radius: 10px;
            }
            .service-card {
                flex: 0 0 280px;
                min-width: 280px;
            }
            .project-grid {
                display: flex;
                gap: 1.5rem;
                overflow-x: auto;
                overflow-y: hidden;
                scroll-behavior: smooth;
                padding-bottom: 1rem;
                -webkit-overflow-scrolling: touch;
            }
            .project-grid::-webkit-scrollbar {
                height: 8px;
            }
            .project-grid::-webkit-scrollbar-track {
                background: rgba(255,255,255,0.1);
                border-radius: 10px;
            }
            .project-grid::-webkit-scrollbar-thumb {
                background: var(--primary);
                border-radius: 10px;
            }
            .project-card {
                flex: 0 0 280px;
                min-width: 280px;
            }

            /* Mobile gallery feed layout */
            .design-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }

            .design-item {
                width: 100%;
                height: auto;
                max-height: 500px;
                border-radius: 12px;
                aspect-ratio: 3/4;
            }

            .design-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .graphics {
                padding: 3rem 5%;
            }

            .gallery-modal-close {
                top: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                font-size: 1.5rem;
            }

            .gallery-slider-nav {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .gallery-prev {
                left: 5px;
            }

            .gallery-next {
                right: 5px;
            }

            .gallery-counter {
                bottom: 15px;
                padding: 8px 16px;
                font-size: 0.85rem;
            }

            .gallery-modal-image {
                max-height: 80vh;
            }
        }
        
        @media (max-width: 480px) {
            .design-item {
                max-height: 400px;
                aspect-ratio: 3/4;
            }

            .gallery-slider-nav {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }

            .gallery-modal-close {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }
        }