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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #0a0a0f;
            color: #ffffff;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Animated background particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(100, 255, 218, 0.3);
            border-radius: 50%;
            animation: float 20s infinite linear;
        }

        @keyframes float {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(100, 255, 218, 0.1);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: #64ffda;
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: #ffffff;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 1rem;
            border-radius: 8px;
        }

        .nav-links a:hover {
            color: #64ffda;
            background: rgba(100, 255, 218, 0.1);
        }

        /* Main Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 6rem 2rem 2rem;
        }

        /* Bento Grid */
        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-template-rows: repeat(6, minmax(200px, auto));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        /* Bento Card Base */
        .bento-card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 24px;
            border: 1px solid rgba(100, 255, 218, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 200px;
            height: fit-content;
        }

        .bento-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(100, 255, 218, 0.3);
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
        }

        .bento-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #64ffda, #00d9ff, #ff6b6b);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .bento-card:hover::before {
            opacity: 1;
        }

        /* Hero Card */
        .hero-card {
            grid-column: span 8;
            grid-row: span 2;
            background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-card h1 {
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(45deg, #64ffda, #00d9ff, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .hero-card p {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #64ffda, #00d9ff);
            color: #0a0a0f;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: fit-content;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
        }

        /* Profile Card */
        .profile-card {
            grid-column: span 4;
            grid-row: span 2;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .profile-photo {
            width: 300px;
            height: 300px;
            border-radius: 20px;
            overflow: hidden;
            border: 2px solid #64ffda;
            box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
            margin-bottom: 1rem;
        }

        .profile-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* About Card */
        .about-card {
            grid-column: span 6;
            grid-row: span 1;
            padding: 1.5rem;
        }

        .card-title {
            color: #64ffda;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* Stats Cards */
        .stats-card {
            grid-column: span 2;
            grid-row: span 1;
            padding: 1.5rem;
            text-align: center;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            color: #64ffda;
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 0.5rem;
        }

        /* Skills Card with scrollable content */
        .skills-card {
            grid-column: span 4;
            grid-row: span 2;
            padding: 2rem;
            max-height: 420px;
            overflow-y: auto;
        }

        .skills-card::-webkit-scrollbar {
            width: 4px;
        }

        .skills-card::-webkit-scrollbar-track {
            background: rgba(100, 255, 218, 0.1);
            border-radius: 2px;
        }

        .skills-card::-webkit-scrollbar-thumb {
            background: rgba(100, 255, 218, 0.4);
            border-radius: 2px;
        }

        .skills-card::-webkit-scrollbar-thumb:hover {
            background: rgba(100, 255, 218, 0.6);
        }

        .skill-category {
            margin-bottom: 2rem;
        }

        .skill-category h4 {
            color: #64ffda;
            font-size: 1rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .skill-items {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .skill-tag {
            background: rgba(100, 255, 218, 0.15);
            color: #64ffda;
            padding: 0.4rem 0.9rem;
            border-radius: 12px;
            font-size: 0.8rem;
            border: 1px solid rgba(100, 255, 218, 0.2);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: all 0.3s ease;
        }

        .skill-tag:hover {
            background: rgba(100, 255, 218, 0.25);
            border-color: rgba(100, 255, 218, 0.4);
            transform: translateY(-2px);
        }

        .skill-logo {
            width: 50px;
            height: 50px;
            object-fit: contain;
            display: inline-block;
            border-radius: 3px;
        }

         .project-logo {
            width: 100px;
            height: 100px;
            object-fit: contain;
            display: inline-block;
            border-radius: 3px;
            margin-right: 0.5rem;
        }

        .skill-logo:hover {
            transform: scale(1.1);
        }

        /* Expandable card option */
        .bento-card.expandable {
            overflow: visible;
            z-index: 10;
        }

        .bento-card.auto-height {
            height: auto;
            min-height: 200px;
        }

        /* Content wrapper for better overflow handling */
        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            overflow: hidden;
        }

        .card-content.scrollable {
            overflow-y: auto;
        }

        /* Projects Card with better content handling */
        .projects-card {
            grid-column: span 6;
            grid-row: span 2;
            padding: 2rem;
            min-height: 400px;
            height: fit-content;
        }

        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .projects-navigation {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .nav-btn {
            background: rgba(100, 255, 218, 0.1);
            border: 1px solid rgba(100, 255, 218, 0.2);
            color: #64ffda;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .nav-btn:hover {
            background: rgba(100, 255, 218, 0.2);
            transform: scale(1.1);
        }

        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .project-counter {
            font-size: 0.9rem;
            color: #64ffda;
            font-weight: 500;
            min-width: 40px;
            text-align: center;
        }

        .projects-container {
            overflow: hidden;
            border-radius: 16px;
        }

        .projects-grid {
            position: relative;
            height: 220px;
        }

        .projects-page {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            opacity: 0;
            transform: translateX(30px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .projects-page.active {
            opacity: 1;
            transform: translateX(0);
        }

        .projects-page.prev {
            transform: translateX(-30px);
        }

        /* CV Card */
        .cv-card {
            grid-column: span 2;
            grid-row: span 2;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cv-content {
            text-align: center;
            width: 100%;
        }

        .cv-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #ff6b6b;
        }

        .cv-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            align-items: center;
        }

        .cv-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 140px;
            justify-content: center;
            font-size: 0.9rem;
        }

        .cv-btn.primary {
            background: linear-gradient(45deg, #64ffda, #00d9ff);
            color: #0a0a0f;
        }

        .cv-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
        }

        .cv-btn.secondary {
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
            border: 1px solid rgba(100, 255, 218, 0.2);
        }

        .cv-btn.secondary:hover {
            background: rgba(100, 255, 218, 0.1);
            border-color: rgba(100, 255, 218, 0.4);
            transform: translateY(-2px);
        }

        .project-item {
            background: rgba(100, 255, 218, 0.05);
            border-radius: 16px;
            padding: 1.5rem;
            border: 1px solid rgba(100, 255, 218, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .project-item:hover {
            background: rgba(100, 255, 218, 0.1);
            transform: translateY(-2px);
        }

        .project-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .project-title {
            color: #64ffda;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .project-description {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 1rem;
        }

        .project-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .project-tag {
            background: rgba(0, 217, 255, 0.2);
            color: #00d9ff;
            padding: 0.2rem 0.6rem;
            border-radius: 8px;
            font-size: 0.7rem;
        }

        /* Achievements Card */
        .achievements-card {
            grid-column: span 4;
            grid-row: span 1;
            padding: 1.5rem;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .achievement-icon {
            font-size: 1.5rem;
        }

        .achievement-text h4 {
            color: #64ffda;
            font-size: 0.9rem;
            margin-bottom: 0.2rem;
        }

        .achievement-text p {
            font-size: 0.8rem;
            opacity: 0.7;
        }

        /* Contact Card */
        .contact-card {
            grid-column: span 4;
            grid-row: span 1;
            padding: 1.5rem;
        }

        .contact-items {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .contact-icon {
            font-size: 1.2rem;
            color: #64ffda;
        }

        .contact-info h4 {
            font-size: 0.9rem;
            color: #64ffda;
        }

        .contact-info p {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        /* Location Card */
        .location-card {
            grid-column: span 4;
            grid-row: span 1;
            padding: 1.5rem;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .location-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #ff6b6b;
        }

        .location-text {
            text-align: center;
        }

        .location-text h3 {
            color: #ff6b6b;
            margin-bottom: 0.5rem;
        }

        /* Interactive elements */
        .floating {
            animation: floating 3s ease-in-out infinite;
        }

        @keyframes floating {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        /* Modal styles remain the same */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
        }

        .modal-content {
            background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%);
            margin: 5% auto;
            padding: 0;
            border-radius: 24px;
            width: 90%;
            max-width: 900px;
            max-height: 80vh;
            overflow-y: auto;
            border: 1px solid rgba(100, 255, 218, 0.2);
        }

        .modal-header {
            padding: 2rem;
            border-bottom: 1px solid rgba(100, 255, 218, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            color: #64ffda;
            margin: 0;
        }

        .close-btn {
            background: none;
            border: none;
            color: #ffffff;
            font-size: 2rem;
            cursor: pointer;
            transition: color 0.3s ease;
            border-radius: 8px;
            padding: 0.5rem;
        }

        .close-btn:hover {
            color: #64ffda;
            background: rgba(100, 255, 218, 0.1);
        }

        .modal-body {
            padding: 2rem;
        }

        .project-detail-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, #64ffda, #00d9ff);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: #0a0a0f;
            margin-bottom: 2rem;
        }

        .project-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 2rem 0;
        }

        .detail-section h4 {
            color: #64ffda;
            margin-bottom: 1rem;
        }

        .detail-section ul {
            list-style: none;
            padding-left: 0;
        }

        .detail-section li {
            margin-bottom: 0.5rem;
            padding-left: 1rem;
            position: relative;
        }

        .detail-section li::before {
            content: '→';
            color: #64ffda;
            position: absolute;
            left: 0;
        }

        .project-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .project-link {
            background: linear-gradient(45deg, #64ffda, #00d9ff);
            color: #0a0a0f;
            padding: 0.8rem 1.5rem;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
        }

        /* Responsive Design with flexible heights */
        @media (max-width: 1024px) {
            .bento-grid {
                grid-template-columns: repeat(8, 1fr);
                grid-template-rows: repeat(10, minmax(180px, auto));
            }
            
            .hero-card { grid-column: span 6; }
            .profile-card { grid-column: span 2; }
            .about-card { grid-column: span 4; }
            .stats-card { grid-column: span 2; }
            .skills-card { grid-column: span 4; max-height: 380px; }
            .projects-card { grid-column: span 6; grid-row: span 2; }
            .cv-card { grid-column: span 2; grid-row: span 2; }
            .achievements-card { grid-column: span 4; }
            .contact-card { grid-column: span 4; }
            .location-card { grid-column: span 4; }
        }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            
            .bento-grid {
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(15, minmax(160px, auto));
                gap: 1rem;
            }
            
            .hero-card {
                grid-column: span 4;
                grid-row: span 2;
                padding: 2rem;
            }
            
            .hero-card h1 { font-size: 2.5rem; }
            
            .profile-card { grid-column: span 4; grid-row: span 1; }
            .about-card { grid-column: span 4; }
            .stats-card { grid-column: span 2; }
            .skills-card { 
                grid-column: span 4; 
                max-height: 300px;
                padding: 1.5rem;
            }
            .projects-card { 
                grid-column: span 4; 
                grid-row: span 3;
            }
            .cv-card { grid-column: span 4; grid-row: span 1; }
            .achievements-card { grid-column: span 4; }
            .contact-card { grid-column: span 4; }
            .location-card { grid-column: span 4; }
            
            .projects-page {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .projects-grid {
                height: auto;
                min-height: 280px;
            }
            
            .project-details {
                grid-template-columns: 1fr;
            }
            
            .cv-buttons {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .projects-navigation {
                gap: 0.5rem;
            }
            
            .project-counter {
                font-size: 0.8rem;
                min-width: 35px;
            }
            
            .nav-btn {
                width: 28px;
                height: 28px;
                font-size: 1rem;
            }
        }
        .hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .hamburger {
        display: block;
        color: white;
        z-index: 1000;
    }

    .nav-links {
        position: absolute;
        top: 60px; /* below navbar */
        right: 0;
        background-color: #0a192f; /* match your theme */
        flex-direction: column;
        align-items: flex-start;
        width: 200px;
        padding: 1rem;
        display: none; /* hidden by default */
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-links a {
        width: 100%;
        padding: 0.5rem 0;
    }
}
        .projects-page { display: none; pointer-events: none; }
.projects-page.active { display: grid; pointer-events: auto; }
