
@charset "utf-8";
/* CSS Document */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, #023618 0%, #0D522A 50%, #173E27 100%);
            color: var(--text-light);
            padding: 3rem 0 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
            opacity: 0.4;
        }

        .footer::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            position: relative;
            z-index: 2;
        }

        .footer-left p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            margin: 0;
        }

        .footer-right {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .footer-right a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .footer-right a:hover {
            color: var(--text-light);
            transform: translateY(-1px);
        }

        .footer-right a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -3px;
            left: 0;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }

        .footer-right a:hover::after {
            width: 100%;
        }

        /* Footer Mobile Responsiveness */
        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }

            .footer-right {
                justify-content: center;
                gap: 1.5rem;
            }

            .footer-right a {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .footer-right {
                flex-direction: column;
                gap: 1rem;
            }
        }

        :root {
            /* --primary-color: #6366f1; */
            /* --primary-color: #6e2b25; */
            /* --primary-color: #962114; */
            --primary-color: #023618;
            --secondary-color: #8b5cf6;
            --accent-color: #f59e0b;
            --accent-pink: #ec4899;
            --accent-cyan: #06b6d4;
            --text-primary: #0f172a;
            --text-secondary: #64748b;
            --text-light: #ffffff;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-dark: #0f172a;
            --bg-card: rgba(255, 255, 255, 0.95);
            --gradient-primary: linear-gradient(135deg, #6e2b25 0%, #E6866C 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            /* --gradient-elegant: linear-gradient(135deg, #d17a22 0%, #742d45 50%, #C2AA91 100%); */
            --gradient-elegant: linear-gradient(135deg, #962114 0%, #6E2B25 50%, #E6866C 100%);
            /* --gradient-elegant: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --glass: rgba(255, 255, 255, 0.15);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

        body {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            line-height: 1.7;
            color: var(--text-primary);
            scroll-behavior: smooth;
            overflow-x: hidden;
            background: var(--bg-primary);
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        nav.scrolled {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: var(--shadow-lg);
            padding: 0.75rem 0;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            background: var(--gradient-elegant);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2.5rem;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-links a:hover {
            color: var(--primary-color);
            transform: translateY(-1px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background: var(--gradient-primary);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(-50%);
            border-radius: 1px;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Mobile Menu */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
        }

        .hamburger {
            width: 25px;
            height: 3px;
            background: var(--text-primary);
            margin: 3px 0;
            transition: all 0.3s ease;
            border-radius: 1px;
        }

        .mobile-menu-toggle.active .hamburger:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .mobile-menu-toggle.active .hamburger:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active .hamburger:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100vh;
            background: rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-nav-links {
            list-style: none;
            text-align: center;
        }

        .mobile-nav-links li {
            margin: 2rem 0;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-menu.active .mobile-nav-links li {
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
        .mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

        .mobile-nav-links a {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 2.5rem;
            font-weight: 500;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.3s ease;
            background: var(--gradient-elegant);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .mobile-nav-links a:hover {
            transform: scale(1.05);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gradient-elegant);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            animation: float 25s ease-in-out infinite;
            opacity: 0.7;
        }

        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.267) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.267) 0%, transparent 50%);
            animation: pulse 4s ease-in-out infinite alternate;
        }

        /* Floating Shapes */
        .floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .shape-1 {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation: floatShape1 20s ease-in-out infinite;
        }

        .shape-2 {
            width: 120px;
            height: 120px;
            top: 60%;
            right: 15%;
            background: rgba(255, 255, 255, 0.08);
            animation: floatShape2 25s ease-in-out infinite reverse;
        }

        .shape-3 {
            width: 60px;
            height: 60px;
            top: 30%;
            right: 25%;
            background: rgba(255, 255, 255, 0.12);
            animation: floatShape3 18s ease-in-out infinite;
        }

        .shape-4 {
            width: 100px;
            height: 100px;
            bottom: 25%;
            left: 20%;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 20px;
            animation: floatShape4 22s ease-in-out infinite;
        }

        .shape-5 {
            width: 40px;
            height: 40px;
            top: 15%;
            right: 40%;
            background: rgba(255, 255, 255, 0.15);
            animation: floatShape5 16s ease-in-out infinite reverse;
        }

        .shape-6 {
            width: 140px;
            height: 140px;
            bottom: 15%;
            right: 10%;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 30px;
            animation: floatShape6 28s ease-in-out infinite;
        }

        @keyframes floatShape1 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
            50% { transform: translateY(-15px) translateX(-10px) rotate(180deg); }
            75% { transform: translateY(-40px) translateX(15px) rotate(270deg); }
        }

        @keyframes floatShape2 {
            0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
            33% { transform: translateY(25px) translateX(-20px) scale(1.1); }
            66% { transform: translateY(-20px) translateX(25px) scale(0.9); }
        }

        @keyframes floatShape3 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            50% { transform: translateY(-25px) translateX(-30px) rotate(180deg); }
        }

        @keyframes floatShape4 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            25% { transform: translateY(20px) translateX(-15px) rotate(45deg); }
            50% { transform: translateY(-10px) translateX(30px) rotate(90deg); }
            75% { transform: translateY(15px) translateX(-20px) rotate(135deg); }
        }

        @keyframes floatShape5 {
            0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
            50% { transform: translateY(-35px) translateX(20px) scale(1.2); }
        }

        @keyframes floatShape6 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            33% { transform: translateY(-15px) translateX(10px) rotate(60deg); }
            66% { transform: translateY(10px) translateX(-25px) rotate(120deg); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(1deg); }
        }

        @keyframes pulse {
            0% { opacity: 0.5; }
            100% { opacity: 0.8; }
        }

        .hero-content {
            text-align: center;
            color: var(--text-light);
            z-index: 2;
            position: relative;
            max-width: 900px;
            padding: 0 2rem;
        }

        .hero-subtitle {
            font-size: 2.0rem;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 0.2s forwards;
            margin-bottom: 1rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .hero h1 {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 0.4s forwards;
            line-height: 1.1;
            letter-spacing: -1px;
        }

        .hero .subtitle {
            font-size: 1.5rem;
            margin-bottom: 3rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 0.6s forwards;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 400;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            padding: 1.2rem 3rem;
            background: rgba(255, 255, 255, 0.2);
            color: var(--text-light);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            transform: translateY(30px);
            opacity: 0;
            animation: fadeInUp 1s ease 0.8s forwards;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
            letter-spacing: 0.5px;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.25);
            /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); */
            box-shadow: 0 20px 40px rgba(230, 134, 108, 0.3);
            border-color: rgba(255, 255, 255, 0.4);
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 50px;
            border: 2px solid rgba(255, 255, 255, 0.6);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .scroll-indicator:hover {
            border-color: rgba(255, 255, 255, 0.9);
        }

        .scroll-indicator::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 50%;
            width: 6px;
            height: 6px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            transform: translateX(-50%);
            animation: scroll 2s infinite;
        }

        @keyframes scroll {
            0% { transform: translateX(-50%) translateY(0); opacity: 1; }
            100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
        }

        /* Section Styles */
        section {
            padding: 8rem 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section-title {
            text-align: center;
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 3.5rem;
            font-weight: 600;
            margin-bottom: 4rem;
            background: var(--gradient-elegant);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            width: 60px;
            height: 4px;
            background: var(--gradient-primary);
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        /* About Section */
        .about {
            background: var(--bg-secondary);
            position: relative;
        }

        .about::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
        }

        .about-content {
            display: grid;

            grid-template-columns: 1fr 1.5fr;
            gap: 6rem;
            align-items: center;
            position: relative;
        }

        .about-image {
            width: 100%;
            height: 500px;
            background: url('images/FullSizeRender.jpg') center/cover;
            border-radius: 30px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-2xl);
            transform: rotate(-2deg);
            transition: transform 0.4s ease;
        }

        .about-image:hover {
            transform: rotate(0deg) scale(1.02);
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(110, 43, 37, 0.3) 0%, rgba(150, 33, 20, 0.2) 100%);
            transition: opacity 0.3s ease;
        }

        .about-image:hover::before {
            opacity: 0.7;
        }

        .about-image::after {

        }

        .about-text h3 {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--text-primary);
            font-weight: 500;
            line-height: 1.3;
        }

        .about-text p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .skills {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 3rem;
        }

        .skill-tag {
            padding: 0.75rem 1.5rem;
            background: var(--bg-card);
            color: var(--primary-color);
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 600;
            /* border: 1px solid rgba(99, 102, 241, 0.2);  */
            border: 1px solid rgba(110, 43, 37, 0.2);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .skill-tag:hover {
            background: var(--primary-color);
            color: var(--text-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Portfolio Section */
        .portfolio {
            background: var(--bg-primary);
        }

        .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 3rem;
        position: relative;
        }

        .portfolio-item {
            background: var(--bg-card);
            border-radius: 25px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(20px);
            opacity: 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            cursor: pointer;
        }

        .portfolio-item.animate {
            transform: translateY(0);
            opacity: 1;
        }

        .portfolio-item:hover {
            transform: translateY(-15px);
            box-shadow: var(---2shadowxl);
        }

        .portfolio-image {
            width: 100%;
            height: 180px;
            background: var(--gradient-primary);
            position: relative;
            overflow: hidden;
            background-size: cover;
            background-position: center;
        }

        .portfolio-item:nth-child(1) .portfolio-image {
            background-image: url('images/llm.png');
        }

        .portfolio-item:nth-child(2) .portfolio-image {
            background-image: url('images/cea.jpg');
        }

        .portfolio-item:nth-child(3) .portfolio-image {
            background-image: url('images/er.jpg');
        }

        .portfolio-item:nth-child(4) .portfolio-image {
            background-image: url('images/docu_web.jpg');
        }

        .portfolio-item:nth-child(5) .portfolio-image {
            background-image: url('images/adm.png');
        }

        .portfolio-item:nth-child(6) .portfolio-image {
            background-image: url('images/EWS.jpg');
        }
        .portfolio-item:nth-child(7) .portfolio-image {
            background-image: url('images/etl.jpeg');
        }
        .portfolio-item:nth-child(8) .portfolio-image {
            background-image: url('images/secure-website-login-illustration-svg-download-png-1625538.webp');
        }
        .portfolio-item:nth-child(9) .portfolio-image {
            background-image: url('images/docu_web.jpg');
        }

        .portfolio-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
            transition: all 0.3s ease;
        }

        .portfolio-item:hover .portfolio-image::before {
            background: linear-gradient(135deg, rgba(110, 43, 37, 0.4) 0%, rgba(230, 134, 108, 0.3) 100%);
            /* background: var(--gradient-primary); */
        }

        .portfolio-content {
            padding: 2rem;
        }

        .portfolio-content h4 {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
            font-weight: 600;
        }
        .portfolio-content h5 {
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 1.0rem;
            margin-bottom: 1rem;
            color:#6E2B25;
            font-weight: 500;
        }

        .portfolio-content p {
            display: -webkit-box;
            -webkit-line-clamp: 1;       /* show only one line */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            margin-bottom: 2rem !important; /* increase from 0.5 or 0 */
            line-height: 1.6;
        }
        /* NEW: hidden expandable section */
        .portfolio-content .hidden {
            display: none;
        }

        .portfolio-expand {
        display: none;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        color: var(--text-secondary);
        animation: fadeIn 0.4s ease;
        margin-bottom: 1.5rem;
        }
        /* NEW: small expand icon on hover */
        .expand-icon {
        position: absolute;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
        color: #6E2B25;
        opacity: 0;
        transition: all 0.3s ease;
        cursor: pointer;
        z-index: 2;
        }

        /* ensure positioning context */
        .portfolio-item {
        position: relative;
        height: auto; 
        }

        /* reveal and animate icon on hover */
        .portfolio-item:hover .expand-icon {
        opacity: 1;
        transform: scale(1.15) rotate(0deg);
        animation: pulseRotate 1.2s ease-in-out infinite alternate;
        }
        .portfolio-item:hover .portfolio-content p {
        color: var(--text-primary);
        }

    /* -------- show-more divider + collapse button styling -------- */
        /* show-more divider */
        .show-more-divider {
        grid-column: 1 / -1; /* span full width of grid */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 2rem 0 1rem;
        color: var(--text-secondary);
        transition: all 0.3s ease;
        user-select: none;
        gap: 0.75rem;
        text-align: center;
        }

        .show-more-divider .line {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        transition: background 0.3s ease;
        }

        .show-more-divider .icon {
        font-size: 1.5rem;
        font-weight: 700;
        transition: transform 0.3s ease;
        }

        .show-more-divider:hover .line {
        background: var(--primary-color);
        }
        .show-more-divider:hover .icon {
        color: var(--primary-color);
        transform: rotate(90deg);
        }

        /* collapse button mode */
        .show-more-divider.collapse-mode {
        flex-direction: column;
        gap: 1rem;
        }
        .show-more-divider.collapse-mode .line { display: none; }

        .show-more-divider .collapse-btn {
        background: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        padding: 0.7rem 1.6rem;
        border-radius: 999px;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 600;
        transition: all 0.3s ease;
        }
        .show-more-divider .collapse-btn:hover {
        background: var(--primary-color);
        color: var(--text-light);
        box-shadow: var(--shadow-md);
        }

        /* animations */
        .portfolio-item.hidden {
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        }
        .portfolio-item.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 1000px;
        transition: all 0.4s ease;
        }

    /* ensure the grid layout does not break when hidden items removed */
    .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    }

    /* responsive fallback (optional) */
    @media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: repeat(1, 1fr); }
    }



        .cta-link {
        display: inline-block;
        margin-top: 0.5rem;
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        }

        .cta-link:hover {
        text-decoration: underline;
        }

        /* NEW: subtle fade-in animation */
        @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
        }


        .portfolio-tech {
            display: flex;
            gap: 0.75 rem;
            flex-wrap: wrap;
            margin-top: 0.75rem; 
        }

        .tech-tag {
            padding: 0.4rem 1rem;
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .tech-tag:hover {
            background: var(--primary-color);
            color: var(--text-light);
        }
    /* ============ Learning Section ============ */
       .learning-section {
        background: var(--bg-primary);
        padding: 4rem 2rem;
        }
        .learning-item {
        background: var(--text-light);
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        transition: all 0.3s ease;
        margin-bottom: 1.5rem;
        }
        .learning-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.25rem 1.75rem;
        cursor: pointer;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-primary);
        }
        .learning-header .icon {
        transition: transform 0.3s ease;
        color: var(--primary-color);
        }
        .learning-header.active .icon {
        transform: rotate(90deg);
        }
        .learning-body {
        display: none;
        padding: 1.5rem 2rem;
        background: var(--bg-primary);
        animation: fadeIn 0.3s ease;
        }
        .edu-card, .cert-card {
        background: var(--bg-secondary);
        padding: 1rem 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        cursor: pointer;
        transition: box-shadow 0.3s ease;
        position: relative;
        }
        .edu-card:hover, .cert-card:hover { box-shadow: var(--shadow-lg); }
        .edu-header, .cert-header {
        display: flex;
        flex-direction: column;       /* Stack title, meta, and icon */
        align-items: flex-start;      /* Keep left-aligned */
        position: relative;
        padding-right: 1.5rem;        /* give room for icon */
        }

        .inner-icon {
        position: absolute;
        right: 0.5rem;
        top: 0.8rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        }
        .edu-card.active .inner-icon,
        .cert-card.active .inner-icon {
        transform: rotate(90deg);
        }
        .edu-content, .cert-content {
        display: none;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        }
        .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
        }
        .tech-tag {
        background: var(--bg-card);
        color: var(--text-secondary);
        padding: 0.3rem 0.75rem;
        border-radius: 15px;
        font-size: 0.8rem;
        }
        .cert-controls {
        text-align: center;
        margin-top: 1rem;
        }
        .control-btn {
        background: var(--text-light);
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        border-radius: 25px;
        padding: 0.5rem 1.5rem;
        font-weight: 600;
        cursor: pointer;
        }
        .control-btn:hover {
        background: var(--primary-color);
        color: var(--text-light);
        }
        .hidden { display: none; }
        @keyframes fadeIn { from {opacity:0;transform:translateY(10px);} to {opacity:1;transform:translateY(0);} }



        /* Contact Section */
        .contact {
            /* background: linear-gradient(135deg, #3b4cb8 0%, #4a2c65 50%, #9c35a8 100%); */
            background: var(--gradient-elegant);
            color: var(--text-light);
            position: relative;
            overflow: hidden;
        }

        .contact::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)"/></svg>');
            animation: contactFloat 30s ease-in-out infinite;
            opacity: 0.6;
        }

        .contact::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
            animation: contactPulse 6s ease-in-out infinite alternate;
        }

        /* Contact Floating Shapes */
        .contact-floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .contact-shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
        }

        .contact-shape-1 {
            width: 70px;
            height: 70px;
            top: 15%;
            left: 8%;
            animation: contactFloatShape1 24s ease-in-out infinite;
        }

        .contact-shape-2 {
            width: 110px;
            height: 110px;
            top: 65%;
            right: 12%;
            background: rgba(255, 255, 255, 0.06);
            animation: contactFloatShape2 28s ease-in-out infinite reverse;
        }

        .contact-shape-3 {
            width: 55px;
            height: 55px;
            top: 25%;
            right: 30%;
            background: rgba(255, 255, 255, 0.1);
            animation: contactFloatShape3 20s ease-in-out infinite;
        }

        .contact-shape-4 {
            width: 90px;
            height: 90px;
            bottom: 20%;
            left: 18%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 25px;
            animation: contactFloatShape4 26s ease-in-out infinite;
        }

        .contact-shape-5 {
            width: 35px;
            height: 35px;
            top: 12%;
            right: 45%;
            background: rgba(255, 255, 255, 0.12);
            animation: contactFloatShape5 18s ease-in-out infinite reverse;
        }

        .contact-shape-6 {
            width: 130px;
            height: 130px;
            bottom: 12%;
            right: 8%;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 35px;
            animation: contactFloatShape6 32s ease-in-out infinite;
        }

        @keyframes contactFloatShape1 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            25% { transform: translateY(-25px) translateX(15px) rotate(90deg); }
            50% { transform: translateY(-10px) translateX(-8px) rotate(180deg); }
            75% { transform: translateY(-35px) translateX(12px) rotate(270deg); }
        }

        @keyframes contactFloatShape2 {
            0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
            33% { transform: translateY(20px) translateX(-15px) scale(1.05); }
            66% { transform: translateY(-15px) translateX(20px) scale(0.95); }
        }

        @keyframes contactFloatShape3 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            50% { transform: translateY(-20px) translateX(-25px) rotate(180deg); }
        }

        @keyframes contactFloatShape4 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            25% { transform: translateY(15px) translateX(-12px) rotate(30deg); }
            50% { transform: translateY(-8px) translateX(25px) rotate(60deg); }
            75% { transform: translateY(12px) translateX(-18px) rotate(90deg); }
        }

        @keyframes contactFloatShape5 {
            0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
            50% { transform: translateY(-30px) translateX(15px) scale(1.15); }
        }

        @keyframes contactFloatShape6 {
            0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
            33% { transform: translateY(-12px) translateX(8px) rotate(45deg); }
            66% { transform: translateY(8px) translateX(-20px) rotate(90deg); }
        }

        @keyframes contactFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-15px) rotate(0.5deg); }
            66% { transform: translateY(-10px) rotate(-0.5deg); }
        }

        @keyframes contactPulse {
            0% { opacity: 0.4; }
            100% { opacity: 0.7; }
        }

        .contact-content {
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }

        .contact .section-title {
            color: var(--text-light);
            background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .contact-form {
            display: grid;
            gap: 2rem;
            margin-top: 3rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .form-group {
            display: grid;
            gap: 0.75rem;
            text-align: left;
        }

        .form-group label {
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group textarea {
            padding: 1.2rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-light);
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            font-size: 1rem;
            font-weight: 400;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            resize: vertical;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.12);
            /* border-color: var(--primary-color); */
            border-color: #6E2B25;
            /* box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); */
            box-shadow: 0 20px 40px rgba(230, 134, 108, 0.3);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .submit-btn {
            padding: 1.2rem 3rem;
            background: var(--gradient-primary);
            color: var(--text-light);
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 1rem;
            letter-spacing: 0.5px;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(230, 134, 108, 0.3);
        }

        /* Animation Classes */
        .fade-in {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-in.animate {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-in-left {
            opacity: 0;
            transform: translateX(-60px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide-in-left.animate {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-in-right {
            opacity: 0;
            transform: translateX(60px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide-in-right.animate {
            opacity: 1;
            transform: translateX(0);
        }

        /* Mobile Responsiveness */
        @media (max-width: 1024px) {
            .portfolio-grid {
                grid-template-columns: repeat(2, 1.5fr);
                gap: 3rem;
            }

            .about-content {
                grid-template-columns: 1fr;
                gap: 4rem;
            }

            .hero h1 {
                font-size: 4rem;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .hero h1 {
                font-size: 3rem;
            }

            .hero .subtitle {
                font-size: 1.1rem;
            }

            .section-title {
                font-size: 2.5rem;
            }

            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .container {
                padding: 0 1.5rem;
            }

            section {
                padding: 5rem 0;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .about-text h3 {
                font-size: 2rem;
            }

            .skills {
                margin-top: 2rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .nav-container {
                padding: 0 1rem;
            }

            .container {
                padding: 0 1rem;
            }
        }
/* NEW: modal overlay styling */
.portfolio-modal {
  display: none;               /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
}

.portfolio-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 2rem 3rem;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  box-shadow: var(--shadow-2xl);
  position: relative;
  animation: slideUp 0.4s ease forwards;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* animation keyframes: gentle pulse + small rotation */
@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(8deg);
  }
  100% {
    transform: scale(1.15) rotate(-8deg);
  }
}
/* === CAFE CORNER SECTION === */
/* .cafe-corner-section {
  background: #fff; 
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
} */

.cafe-corner-section {
  background: #faf7f2 url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-size: 300px 300px;   /* subtle texture */
}
.cafe-corner-section h2 {
  text-align: center;
  margin-bottom: 0.25rem; /* tighter spacing above subtitle */
}

.cafe-corner-section .section-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cafe-corner-section .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}
.cafe-corner-section .section-subtitle {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 5rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}
/* === POLAROID GALLERY GRID === */
.cafe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1000px) {
  .cafe-gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === INDIVIDUAL POLAROID === */
.cafe-gallery figure {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 0.6rem;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  width: 100%;
  max-width: 200px;
  transform-origin: top center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: swing 3.5s ease-in-out infinite alternate;
  overflow: hidden;
}

/* --- Random pin colors per card --- */
.cafe-gallery figure:nth-child(7n) { --pin-color: #e06c75; }
.cafe-gallery figure:nth-child(7n+1) { --pin-color: #e5c07b; }
.cafe-gallery figure:nth-child(7n+2) { --pin-color: #98c379; }
.cafe-gallery figure:nth-child(7n+3) { --pin-color: #61afef; }
.cafe-gallery figure:nth-child(7n+4) { --pin-color: #c678dd; }
.cafe-gallery figure:nth-child(7n+5) { --pin-color: #56b6c2; }
.cafe-gallery figure:nth-child(7n+6) { --pin-color: #d19a66; }

/* --- The little round pin --- */
.cafe-gallery figure::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  background: var(--pin-color, #e06c75);
  border-radius: 50%;
  box-shadow: -0.1rem -0.1rem 0.25rem rgba(0, 0, 0, 0.4) inset,
              0.1rem 0.15rem 0.25rem rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0.2rem 0.15rem 0.2rem rgba(0, 0, 0, 0.4));
  z-index: 2;
}

/* === IMAGE STYLING === */
.cafe-gallery figure img {
  aspect-ratio: 4 / 5;      /* Instagram-style portrait ratio */
  width: 100%;
  object-fit: cover;        /* Crop to fill while preserving focus */
  display: block;
  border-radius: 8px;       /* Soft edges for modern look */
  margin-top: 0.7rem;       /* Space between pin and image */
  margin-bottom: 10px;      /* Space before caption */
  z-index: 1;          
}

/* === CAPTION STYLING === */
.cafe-gallery figure figcaption {
  font-family: 'Kalam', cursive;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #fff;
  padding: 0.3rem 0.5rem;
  margin-top: 0.4rem;
  min-height: 1.5rem;             /* ensures consistent spacing */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === POLAROID HOVER === */
.cafe-gallery figure:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* === SWING ANIMATION === */
@keyframes swing {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}

/* === SHOW MORE DIVIDER === */
.show-more-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.show-more-divider .line {
  width: 40px;
  height: 1px;
  background: var(--text-secondary);
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.show-more-divider:hover .line {
  background: var(--primary-color);
}

.show-more-divider:hover .icon {
  color: var(--primary-color);
}

.show-more-divider:hover {
  transform: scale(1.1);
}


/* Spotlight / Recognition strip */
.spotlight {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding: 0.6rem 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
  z-index: 10;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.spotlight .container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.spotlight-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 56px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms ease;
}

/* reveal state (toggled by JS) */
.spotlight-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* label */
.spotlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.12em;
  margin: 0;
}

/* the items area */
.spotlight-items {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  margin-left: 1rem;
}

/* single item */
.spotlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  color: var(--text-primary);
}

/* subtle hover — no motion unless hovered */
.spotlight-item:hover,
.spotlight-item:focus {
  background: rgba(0,0,0,0.03);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  outline: none;
}

/* icon */
.spotlight-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: var(--primary-color);
  opacity: 0.95;
}

/* text block */
.spotlight-text { min-width: 0; }
.spotlight-title {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotlight-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA */
.spotlight-cta {
  font-size: 0.92rem;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.spotlight-cta:hover,
.spotlight-cta:focus {
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

/* Responsiveness: stack on small screens */
@media (max-width: 860px) {
  .spotlight-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .spotlight-items { width: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 0.35rem; margin-left: 0; }
  .spotlight-item { padding: 0.5rem 0.6rem; border-radius: 6px; }
  .spotlight-label { margin-bottom: 0.2rem; }
  .spotlight-cta { align-self: flex-end; }
}
/* Achievements Modal */

.ach-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease forwards;
}

.ach-modal.active {
  display: flex;
}

.ach-modal-content {
  background: var(--bg-card);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  max-width: 650px;
  width: 92%;
  box-shadow: var(--shadow-2xl);
  position: relative;
  animation: slideUp 0.35s ease forwards;
}

.ach-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.ach-close:hover {
  color: var(--primary-color);
}

.ach-title {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.6rem;
}

.ach-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.ach-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ach-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ach-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.ach-item h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.ach-item p {
  margin-top: 0.3rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* small animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.ach-item h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.ach-item h4 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
}

