 :root {
     --bg-grey: #E8EBEF;
     --bg-blue: #1271ac;
     --text-dark: #1A1A1A;
     --text-grey: #808080;
        }

        /*NIGTH MODE*/
        .theme-checkbox {
            display: none;
        }


        .theme-switch { /*SWITHCH BUTTON*/
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 9999;
            display: inline-block;
            width: 60px;
            height: 34px;
            cursor: pointer;
        }

        .slider {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #CBD5E1;
            transition: .4s;
            border-radius: 34px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .slider:before {
            position: absolute;
            content: "☀️";
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }


            .theme-checkbox:checked + .theme-switch .slider {
                background-color: var(--bg-blue);
            }

            .theme-checkbox:checked + .theme-switch .slider:before {
                transform: translateX(26px);
                content: "🌙";
            }

        /* DARK MODE COLORS */
        body:has(.theme-checkbox:checked) {   
            --bg-grey: #272e3d;       
            --bg-blue: #38BDF8;       
            --text-dark: #F8FAFC;     
            --text-grey: #94A3B8;     
        }

        body:has(.theme-checkbox:checked),
        body:has(.theme-checkbox:checked) .about-section,
        body:has(.theme-checkbox:checked) .skills-section,
        body:has(.theme-checkbox:checked) .projects-section,
        body:has(.theme-checkbox:checked) .minimal-footer {
            background: var(--bg-grey) !important;
        }

        body:has(.theme-checkbox:checked) .about-card,
        body:has(.theme-checkbox:checked) .about-grid,
        body:has(.theme-checkbox:checked) .skill-box,
        body:has(.theme-checkbox:checked) .project-card,
        body:has(.theme-checkbox:checked) .task-info,
        body:has(.theme-checkbox:checked) .mock-browser {
            background: #1E293B !important; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
            border-color: #334155 !important;
        }

        body:has(.theme-checkbox:checked) .task-category,
        body:has(.theme-checkbox:checked) .modal-box h2,
        body:has(.theme-checkbox:checked) .btn-contact {
            color: var(--text-dark) !important;
        }

        body:has(.theme-checkbox:checked) .btn-contact {
            background-color: #1E293B !important;
            border: 1px solid var(--text-dark);
        }

        body, html {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            font-family: 'Inter', sans-serif;
            background: linear-gradient(110deg, var(--bg-grey) 45%, var(--bg-blue) 45%, var(--bg-blue) 75%, #FFFFFF 75%);
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /*HEADER & NAVIGATION */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 5%;
            width: 100%;
            box-sizing: border-box;
            position: relative;
            z-index: 100;
        }

        .logo {
            color: var(--text-dark);
            font-family: 'Montserrat', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -1.5px;
        }

        #menu-toggle {
            display: none;
        }

        .hamburger {
            display: none;
            font-size: 1.8rem;
            color: var(--text-dark);
            cursor: pointer;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
            align-items: center;
            margin: 0;
            padding: 0;
            transition: all 0.3s ease;
        }

        .nav-links a {
            color: #FFFFFF;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .btn-contact {
            background-color: white;
            color: black !important;
            padding: 0.6rem 1.5rem;
            border-radius: 30px;
            font-size: 0.85rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        /* MAIN CONTENT */
        .container {
            display: flex;
            flex: 1;
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 5%;
            box-sizing: border-box;
            position: relative;
        }

        .left-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-bottom: 5vh; 
            z-index: 10;
        }

        .greeting {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(3.5rem, 6vw, 5.5rem); 
            line-height: 1.05;
            margin: 0 0 1rem 0;
            letter-spacing: -1.5px;
            color: var(--text-dark);
        }

        .role {
            font-size: 1.1rem;
            color: var(--text-grey);
            font-weight: 600;
            margin-bottom: 3rem;
        }

        .socials { display: flex; gap: 1rem; }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: linear-gradient(145deg, #ffffff, #d1d1d1);
            box-shadow: 4px 4px 8px #c4c4c4, -4px -4px 8px #ffffff;
            color: #333;
            text-decoration: none;
            font-size: 1.2rem;
            border-radius: 6px;
            transition: transform 0.2s;
        }

        .social-btn:hover { transform: translateY(-3px); }

        .right-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-end; 
            align-items: center;
            position: relative;
        }

        .hero-img {
            max-height: 80vh;
            max-width: 100%;
            object-fit: contain;
            display: block;
        }

        @media (max-width: 1024px) {
            body { background: linear-gradient(105deg, var(--bg-grey) 50%, var(--bg-blue) 50%); }

            .container {
                display: block; 
                min-height: calc(100vh - 120px); 
            }

            .left-col {
                width: 55%; 
                padding-top: 8vh; 
                display: block; 
            }

            .greeting { 
                margin-top: 35%;
                font-size: 3rem; 
                margin-bottom: 0.5rem; }

            h1 { font-size: 3.5rem; line-height: 1.05; 
                margin-bottom: 1rem; 
                letter-spacing: -1.5px; 
                }

            .role { 
                font-size: 1rem; 
                margin-bottom: 2rem; 
                display: block;
                }

            .socials { 
                gap: 1rem; 
                }

            .right-col {
                position: absolute;
                bottom: 0; 
                right: -15%; 
                width: 100%; 
                height: 100%;
                z-index: 5; 
                justify-content: flex-end;
            }

            .hero-img {
                width: 100%; 
                max-height: 85vh; 
                object-fit: contain;
                object-position: bottom right; 
            }

            /* 3 BUTTONS */
            .hamburger { display: block; }
            
            .nav-links {
                position: absolute;
                top: 80px;
                right: 5%;
                background-color: #1271ac; 
                flex-direction: column;
                align-items: flex-start;
                padding: 1.5rem;
                border-radius: 8px;
                gap: 1.5rem;
                box-shadow: 0 10px 20px rgba(0,0,0,0.25);
                
                
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                z-index: 100;
            }

            /* MAGIC DAW HAHA */
            #menu-toggle:checked ~ .nav-links {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }

       @media (max-width: 768px) {
            body { 
                background: linear-gradient(100deg, var(--bg-grey) 55%, var(--bg-blue) 55%); 
                }
            header { 
                padding: 2.5rem 5%; 
                }

            .left-col { 
                width: 65%; 
                padding-top: 5vh; 
                }

            .greeting { 
                font-size: 1rem; 
                margin-bottom: 0.2rem; 
                margin-top: 35%; 
                }

            h1 { 
                font-size: 2.8rem; 
                line-height: 1; 
                margin-bottom: 0.8rem; 
                }

            .role { 
                font-size: 0.85rem; 
                margin-bottom: 1.5rem; 
                }

            .socials { 
                gap: 0.8rem; 
                flex-wrap: wrap; 
                }

            .social-btn { 
                width: 40px; 
                height: 40px; 
                font-size: 1rem; 
                }
            
            .right-col { 
                right: -20%;
                width: 115%; 
                height: 100%;
            }
            .hero-img { 
                max-height: 85vh; 
            }
        }

        /* ABOUT ME */
        .about-section {
            width: 100%;
            background-color: #FFFFFF; 
            padding: 100px 5%;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }

        .about-content {
            max-width: 1000px;
            width: 100%;
            text-align: center;
        }

        .section-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
        }

       
        .section-title::after {
            content: '';
            position: absolute;
            width: 50%;
            height: 4px;
            background-color: var(--bg-blue);
            bottom: -10px;
            left: 25%;
            border-radius: 2px;
        }

        .about-card {
            background: linear-gradient(145deg, #f0f3f8, #ffffff);
            padding: 3rem 4rem;
            border-radius: 20px;
            box-shadow: 10px 10px 30px rgba(0,0,0,0.05), -10px -10px 30px #ffffff;
            text-align: left;
            border-left: 5px solid var(--bg-blue); /* Accent color mo */
        }

        .about-card p {
            font-size: 1.1rem;
            color: var(--text-grey);
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .about-card p:last-child {
            margin-bottom: 0;
        }

        .about-card strong {
            color: var(--bg-blue);
        }


        /* ABOUT ME (DESKTOP) */
        .about-section {
            width: 100%;
            background-color: #FFFFFF;
            padding: 100px 5%;
            box-sizing: border-box;
            display: flex;;
            justify-content: center;
        }

        .about-content {
            max-width: 1100px;
            width: 100%;
            text-align: center;
        }

        .section-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 4rem;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            width: 50%;
            height: 4px;
            background-color: var(--bg-blue);
            bottom: -10px;
            left: 25%;
            border-radius: 2px;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            text-align: left;
            background: linear-gradient(145deg, #f0f3f8, #ffffff);
            padding: 4rem;
            border-radius: 20px;
            box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
        }

        .about-text p {
            font-size: 1.1rem;
            color: var(--text-grey);
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }
        .about-text strong { color: var(--bg-blue); }

        /* TIMELINE & LOGO FORMATTING */
        .timeline-title {
            font-family: 'Montserrat', sans-serif;
            color: var(--text-dark);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .timeline-title i { color: var(--bg-blue); }

        .timeline-item {
            position: relative;
            padding-left: 2rem; 
            border-left: 2px solid var(--bg-blue);
            margin-bottom: 2rem;
        }
        .timeline-item:last-child { margin-bottom: 0; }

        .timeline-dot {
            position: absolute;
            left: -6px;
            top: 15px; 
            width: 10px;
            height: 10px;
            background-color: var(--bg-blue);
            border-radius: 50%;
        }

        
        .timeline-item-content {
            display: flex;
            align-items: center; 
            gap: 1rem;
        }

        .timeline-logo {
            width: 60px;
            height: 60px;
            border-radius: 50%; 
            object-fit: cover;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            background-color: white; 
            padding: 3px;
        }

      
        .timeline-info h4 { margin: 0 0 0.3rem 0; font-size: 1.05rem; color: var(--text-dark); }
        .timeline-org { margin: 0; font-size: 0.9rem; color: var(--text-grey); font-weight: 600; }
        .timeline-date { font-size: 0.8rem; color: #a0a0a0; font-style: italic; display: block; margin-top: 0.3rem; }

        @media (max-width: 1024px) {
            
            .about-grid {
                grid-template-columns: 1fr; 
                gap: 3rem;
                padding: 3rem; 
            }
        }

        @media (max-width: 768px) {
            
            .about-grid {
                grid-template-columns: 1fr; 
                gap: 2.5rem;
                padding: 2rem 1.5rem; 
            }
        }


        /*SKILLS SECTION */
        .skills-section {
            width: 100%;
            background-color: var(--bg-grey); 
            padding: 100px 5%;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }

        .skills-content {
            max-width: 1000px;
            width: 100%;
            text-align: center;
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2.5rem;
            margin-bottom: 4rem;
        }

        .skill-box {
            width: 110px;
            height: 110px;
            background: #ffffff;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .skill-box:hover {
            transform: translateY(-10px);
            box-shadow: 10px 10px 25px rgba(0,0,0,0.1);
        }

        .skill-box i {
            font-size: 4rem;
        }

        .skill-img {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }

        .learning-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.8rem;
            color: var(--text-dark);
            margin-bottom: 2rem;
        }

        .learning-box {
            border: 2px dashed var(--bg-blue); /* Dashed border para alam na inaaral pa lang */
            background: transparent;
        }

        /*DESKTOP*/
        .skills-section {
            width: 100%;
            background-color: var(--bg-grey);
            padding: 100px 5%;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }

        .skills-content {
            max-width: 1000px;
            width: 100%;
            text-align: center;
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2.5rem;
            margin-bottom: 4rem;
        }

        .skill-box {
            width: 110px;
            height: 110px;
            background: #ffffff;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden; 
            padding: 15px; 
            box-sizing: border-box;
        }

        .skill-box:hover {
            transform: translateY(-10px);
            box-shadow: 10px 10px 25px rgba(0,0,0,0.1);
        }

        .skill-img {
            max-width: 100%; 
            max-height: 100%; 
            object-fit: contain; 
            display: block;
        }

        .learning-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.8rem;
            color: var(--text-dark);
            margin-bottom: 2rem;
        }

        .learning-box {
            border: 2px dashed var(--bg-blue);
            background: transparent;
        }


        /*PORTFOLIO & PROJECTS*/


        .projects-section {
            width: 100%;
            background-color: #F8FAFC; 
            padding: 100px 5%;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }

        .projects-content {
            max-width: 1200px;
            width: 100%;
            text-align: center;
        }

        .task-category {
            text-align: left;
            font-family: 'Montserrat', sans-serif;
            font-size: 2rem;
            color: #0F172A; /* Slate 900 */
            margin-bottom: 2.5rem;
            border-bottom: 2px solid #E2E8F0;
            padding-bottom: 15px;
            font-weight: 800;
        }

        .task-category span {
            font-size: 1.1rem;
            color: #64748B;
            font-weight: 500;
            margin-left: 10px;
            background: #E2E8F0;
            padding: 5px 15px;
            border-radius: 20px;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
            margin-bottom: 4rem;
        }

    
        .project-card {
            background: #FFFFFF;
            border-radius: 24px;
            text-decoration: none;
            color: #0F172A;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025); /* Soft modern shadow */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #F1F5F9;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .task-thumbnail {
            width: 100%;
            height: 220px;
            object-fit: cover;
            background-color: #F1F5F9;
            border-bottom: 1px solid #F1F5F9;
            transition: transform 0.5s ease;
        }

        .task-info {
            padding: 2rem;
            text-align: left;
            background: #FFFFFF;
            z-index: 2;
        }

        .task-info h3 {
            font-family: 'Montserrat', sans-serif;
            margin: 0 0 0.5rem 0;
            font-size: 1.3rem;
            font-weight: 700;
            color: #0F172A;
        }

        .task-info p {
            margin: 0;
            font-size: 0.95rem;
            color: #64748B;
            font-weight: 500;
        }

        /* Hover Effects */
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            border-color: #CBD5E1;
        }

        .project-card:hover .task-thumbnail {
            transform: scale(1.08); 
        }

        
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.6); /* Semi-transparent dark slate */
            backdrop-filter: blur(8px); /* Ang sikreto ng Glassmorphism */
            -webkit-backdrop-filter: blur(8px); /* Para gumana sa Apple devices */
            z-index: 999; display: none; justify-content: center; align-items: center;
            opacity: 0; transition: opacity 0.3s ease;
        }

        .modal-overlay:target {
            display: flex; opacity: 1;
        }

        .modal-box {
            background: #FFFFFF;
            width: 90%; max-width: 1000px; height: 85vh;
            border-radius: 24px; padding: 2.5rem; position: relative;
            display: flex; flex-direction: column;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        
        @keyframes modalSlideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .close-btn {
            position: absolute; top: 20px; right: 30px;
            font-size: 2.5rem; color: #94A3B8; text-decoration: none;
            line-height: 1; transition: color 0.2s;
        }
        .close-btn:hover { color: #EF4444; }

        .modal-box h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: 2rem; color: #0F172A; margin-top: 0; margin-bottom: 1.5rem;
        }

        
        .css-tabs { display: flex; flex-wrap: wrap; flex: 1; overflow: hidden; gap: 10px; margin-bottom: 1rem; }
        .css-tabs input[type="radio"] { display: none; }
        
        .css-tabs label {
            padding: 12px 25px; background: #F1F5F9; cursor: pointer;
            font-weight: 600; border-radius: 50px; 
            color: #64748B; transition: all 0.3s ease;
            font-size: 0.95rem; display: flex; align-items: center; gap: 8px;
        }

        .css-tabs label:hover { background: #E2E8F0; color: #0F172A; }

        .css-tabs input[type="radio"]:checked + label {
            background: var(--bg-blue); color: white;
            box-shadow: 0 4px 6px -1px rgba(18, 113, 172, 0.3);
        }

        .tab-content {
            width: 100%; height: calc(100% - 70px); padding: 25px;
            background: #F8FAFC; border: 1px solid #E2E8F0;
            border-radius: 20px; display: none; overflow-y: auto; box-sizing: border-box;
        }

        /* Tab selectors */
        #tab-m1-output:checked ~ .output-content, #tab-m1-code:checked ~ .code-content,
        #tab-m2-output:checked ~ .output-content, #tab-m2-code:checked ~ .code-content,
        #tab-m3-output:checked ~ .output-content, #tab-m3-code:checked ~ .code-content,
        #tab-m4-output:checked ~ .output-content, #tab-m4-code:checked ~ .code-content,
        #tab-m5-output:checked ~ .output-content, #tab-m5-code:checked ~ .code-content,
        #tab-m6-output:checked ~ .output-content, #tab-m6-code:checked ~ .code-content,
        #tab-final-1-output:checked ~ .output-content, #tab-final-1-code:checked ~ .code-content { display: block; }

        .mock-browser { background: #FFFFFF; border: 1px solid #E2E8F0; padding: 20px; border-radius: 12px; min-height: 300px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .code-content { background: #0F172A; color: #E2E8F0; border-color: #0F172A; }
        .code-content pre { margin: 0; font-family: monospace; font-size: 1.05rem; white-space: pre-wrap; line-height: 1.5; }

            
        @media (max-width: 1024px) {
            .projects-grid {
                grid-template-columns: repeat(2, 1fr); 
            }
        }

        
        @media (max-width: 768px) {
          
            .projects-section {
                padding: 60px 5%; 
            }

            .projects-grid {
                grid-template-columns: 1fr; 
                gap: 1.5rem;
            }

           
            .task-category {
                font-size: 1.5rem; 
            }

            .task-category span {
                display: block;
                margin-top: 10px;
                margin-left: 0;
                width: fit-content;
            }

            .task-thumbnail {
                height: 180px; 
            }

            .task-info {
                padding: 1.5rem;
            }

            .modal-box {
                width: 95%;
                height: 90vh; 
                padding: 1.5rem; 
            }

            .close-btn {
                top: 10px;
                right: 15px;
            }

            .modal-box h2 {
                font-size: 1.5rem;
            }

            .css-tabs {
                flex-direction: column; 
                gap: 5px;
            }

            .css-tabs label {
                width: 100%;
                justify-content: center; 
            }
        }

       /* FOOTER */


        .minimal-footer {
            background-color: #F8FAFC;
            padding: 50px 5% 40px;
            text-align: center;
            border-top: 1px solid #E2E8F0; 
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .footer-socials {
            display: flex;
            gap: 20px;
        }

        .footer-socials a {
            color: #94A3B8;
            font-size: 1.3rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .footer-socials a:hover {
            color: #0F172A; 
            transform: translateY(-3px);
        }

        .minimal-footer p {
            margin: 0;
            font-size: 0.85rem;
            color: #94A3B8;
            font-weight: 500;
            letter-spacing: 0.5px;
        }