/* --- General Reset --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Ubuntu', sans-serif;
        }

        html {
            scroll-behavior: smooth; /* CRITICAL for smooth scrolling */
        }

        body {
            background-color: #f4f4f9;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

/* --- LAYOUT: 80% Width Logic --- */
        .container {
            width: 100%;
            padding-left: 20px;
            padding-right: 20px;
        }

        @media screen and (min-width: 768px) {
            .container {
                width: 80%;
                max-width: 1600px;
                margin: 0 auto;
                padding: 0;
            }
        }

/* --- Navbar Styles --- */
        nav {
            background-color: #1e1e1e;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-content {
            width: 100%;
            max-width: 1100px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .logo {
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .logo img { height: 75px; width: auto; }

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

        .nav-links a:not(.nav-btn):not(.social-icon) {
            text-decoration: none;
            color: #fff;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.3s ease;
        }

        .nav-links a:not(.nav-btn):not(.social-icon):hover { color: #3a99e6; }

        .social-icon {
            display: flex; align-items: center; text-decoration: none;
            font-size: 1.8rem; color: #fff; transition: transform 0.3s ease;
        }
        .social-icon:hover i {
            background: linear-gradient(#0077b5 100%);
            -webkit-background-clip: text; -moz-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: transparent; transform: scale(1.1);
        }

        .nav-btn {
            background-color: #3a99e6; color: white !important; padding: 10px 25px;
            border-radius: 50px; font-weight: bold; text-decoration: none;
            animation: pulse-animation 2s infinite;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }
        .nav-btn:hover { background-color: #524bd6; transform: translateY(-3px); animation: none; }

        @keyframes pulse-animation {
            0% { box-shadow: 0 0 0 0 rgba(10, 134, 206, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
        }

/* --- MAIN CONTENT & GALLERY --- */
        .main-content {
            width: 100%; 
            max-width: 1100px;
            padding-top: 50px; 
            padding-bottom: 50px; 
            flex: 1; 
        }

        .folio-icon {
            margin: 0;
            width: 50px;
            display: block;
        }

        .portfolio-header { 
            margin-bottom: 20px; 
        }

        .portfolio-title-wrapper { 
            display: flex; 
            align-items: center; 
            gap: 15px; 
            margin-bottom: 10px; 
        }

        .portfolio-icon-main { font-size: 2.5rem; color: #055194; }
        .portfolio-title-text { font-size: 2.5rem; font-weight: 700; color: #187ac9; }
        .portfolio-subtitle { font-size: 1.2rem; color: #777; font-weight: 300; margin-left: 4px; }

        .gallery-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px;
        }
        .gallery-item {
            position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
            border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer;
        }
        .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .gallery-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;background: rgba(5, 81, 148, 0.75); display: flex; flex-direction: column;
            /*background: #055194; display: flex; flex-direction: column; */
            justify-content: center; align-items: center; text-align: center; padding: 20px;
            opacity: 0; transition: opacity 0.3s ease;
        }
        .gallery-text {
            color: white; font-weight: bold; font-size: 1.2rem; margin-bottom: 5px;
            transform: translateY(20px); transition: transform 0.3s ease;
        }
        .gallery-subtext {
            color: #eee; font-size: 0.9rem; transform: translateY(20px); transition: transform 0.3s ease 0.1s;
        }
        .gallery-item:hover .gallery-overlay { opacity: 1; }
        .gallery-item:hover img { transform: scale(1.1); }
        .gallery-item:hover .gallery-text, .gallery-item:hover .gallery-subtext { transform: translateY(0); }

        @media screen and (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
        @media screen and (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(1, 1fr); } }

/* --- VIDEO SECTION --- */
        .video-section { margin-bottom: 60px; }
        .video-wrapper {
            width: 100%; border-radius: 12px; overflow: hidden;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2); background-color: #000; position: relative;
        }
        .video-wrapper video { width: 100%; display: block; object-fit: cover; }

/* --- AI SECTION --- */
        .ai-section {
            background: white; padding: 35px; border-radius: 15px;
            box-shadow: 0 10px 30px rgba(108, 99, 255, 0.08); margin-bottom: 50px;
            border: 1px solid rgba(108, 99, 255, 0.1);
        }
        .ai-input-group { margin-bottom: 20px; }
        .ai-label { display: block; font-weight: 700; margin-bottom: 8px; color: #333; }
        .ai-input, .ai-textarea {
            width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px;
            font-family: 'Ubuntu', sans-serif; font-size: 1rem; background-color: #fafafa;
        }
        .ai-input:focus, .ai-textarea:focus { border-color: #6c63ff; outline: none; background-color: white; }
        .ai-btn {
            background: linear-gradient(45deg, #6c63ff, #8b80ff); color: white; border: none;
            padding: 14px 35px; border-radius: 50px; font-weight: bold; cursor: pointer;
            font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
        }
        .ai-result {
            margin-top: 30px; padding: 30px; background: #f8f9fa;
            border-left: 5px solid #6c63ff; border-radius: 8px; display: none;
        }
        .ai-result.active { display: block; animation: fadeIn 0.6s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* --- BACK TO TOP BUTTON --- */
        .to-top-btn {
            position: fixed; bottom: 100px; right: 30px; width: 50px; height: 50px;
            background-color: #3a99e6; color: white; border-radius: 50%;
            text-decoration: none; display: flex; justify-content: center; align-items: center;
            font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); z-index: 100;
            opacity: 0; pointer-events: none; transition: all 0.4s ease;
        }
        .to-top-btn.show-btn { opacity: 1; pointer-events: auto; }
        .to-top-btn:hover { transform: translateY(-5px); background-color: #3a99e6; }

/* --- Footer --- */
        .footer {
            background-color: #ffffff; 
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            margin-top: auto; padding-top: 20px; 
            padding-bottom: 20px;
      }

        .container footer-content {
            text-align: right;
        }

        .footer-content { 
            align-items: right; 
      }

        .footer-copy {
            align-items: right;
      }

        .footer-links { 
            list-style: none; 
            display: flex; gap: 25px; 
      }

        .footer-links a { 
            text-decoration: none; 
            color: #3a99e6; font-size: 0.9rem; 
            transition: color 0.3s;
            font-size: .5rem; 
      }
        .footer-links a:hover { 
            color: #3a99e6; 
            text-decoration: underline; 
      }