<style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(45deg, #0c0c0c, #1a1a2e, #16213e, #0f3460);
            background-size: 400% 400%;
            animation: galaxyMove 15s ease-in-out infinite;
            color: white;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Galaxy animation */
        @keyframes galaxyMove {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Stars effect */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(2px 2px at 20px 30px, #eee, transparent),
                radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
                radial-gradient(1px 1px at 90px 40px, #fff, transparent),
                radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
                radial-gradient(2px 2px at 160px 30px, #fff, transparent);
            background-repeat: repeat;
            background-size: 200px 100px;
            animation: sparkle 20s linear infinite;
            pointer-events: none;
            z-index: -1;
        }

        @keyframes sparkle {
            from { transform: translateX(0); }
            to { transform: translateX(-200px); }
        }

        /* Navigation Bar */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: linear-gradient(90deg, rgba(26, 26, 46, 0.95), rgba(15, 52, 96, 0.95));
            backdrop-filter: blur(15px);
            padding: 1rem 2rem;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        nav li {
            cursor: pointer;
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
        }

        nav li:hover, nav li.active {
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
        }

        /* Page Container */
        .page {
            display: none;
            min-height: 100vh;
            padding: 140px 2rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .page.active {
            display: block;
            animation: fadeIn 0.6s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Home Page */
        .home-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            text-align: left;
            min-height: 80vh;
            gap: 3rem;
        }

        .home-content {
            flex: 1;
            max-width: 600px;
        }

        .photo-container {
            flex-shrink: 0;
        }

        .name-title {
            font-size: 4rem;
            font-weight: bold;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 2rem;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { text-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
            to { text-shadow: 0 0 30px rgba(78, 205, 196, 0.5); }
        }

        .about-section {
            max-width: 800px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
            padding: 2rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .about-section h2 {
            color: #4ecdc4;
            margin-bottom: 1rem;
            font-size: 2rem;
        }

        .about-section p {
            line-height: 1.8;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Profile Photo Styles */
        .profile-photo {
            width: 350px;
            height: 350px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
            transition: all 0.3s ease;
            animation: photoGlow 3s ease-in-out infinite alternate;
        }

        .profile-photo:hover {
            transform: scale(1.05);
            box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
        }

        @keyframes photoGlow {
            from { box-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
            to { box-shadow: 0 0 30px rgba(255, 107, 107, 0.4); }
        }

        /* Education Page */
        .education-container {
            display: grid;
            gap: 2rem;
        }

        .education-item {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(69, 183, 209, 0.1));
            padding: 2rem;
            border-radius: 15px;
            border-left: 4px solid #ff6b6b;
            backdrop-filter: blur(10px);
            transition: transform 0.3s ease;
        }

        .education-item:hover {
            transform: translateX(10px);
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
        }

        .education-item h3 {
            color: #4ecdc4;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .education-item .degree {
            color: #ff6b6b;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .education-item .duration {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1rem;
        }

        .education-item .score {
            background: linear-gradient(45deg, #45b7d1, #96ceb4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: bold;
        }

        /* Projects Page */
        .projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2.5rem;
        }

        .project-card {
            background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
            padding: 3rem;
            border-radius: 20px;
            border: 1px solid rgba(78, 205, 196, 0.3);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            min-height: 280px;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
        }

        .project-card h3 {
            color: #ff6b6b;
            margin-bottom: 1.5rem;
            font-size: 1.4rem;
            line-height: 1.3;
        }

        .project-card .duration {
            color: #4ecdc4;
            font-weight: bold;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .project-card .description {
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }

        .project-card .tools {
            background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(69, 183, 209, 0.2));
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            color: #96ceb4;
            font-weight: bold;
            font-size: 1rem;
        }

        /* Skills Page */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
        }

        .skill-category {
            background: linear-gradient(135deg, rgba(150, 206, 180, 0.1), rgba(255, 107, 107, 0.1));
            padding: 3rem;
            border-radius: 20px;
            border: 1px solid rgba(150, 206, 180, 0.3);
            backdrop-filter: blur(10px);
            min-height: 250px;
        }

        .skill-category h3 {
            color: #45b7d1;
            margin-bottom: 2rem;
            font-size: 1.6rem;
            text-align: center;
        }

        .skill-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            justify-content: center;
        }

        .skill-tag {
            background: linear-gradient(45deg, #4ecdc4, #45b7d1);
            color: #0c0c0c;
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .skill-tag:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
        }

        /* Contact Page */
        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .contact-card {
            background: linear-gradient(135deg, rgba(69, 183, 209, 0.1), rgba(255, 107, 107, 0.1));
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(69, 183, 209, 0.3);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: block;
            position: relative;
        }

        .contact-card:hover {
            transform: translateY(-10px) rotate(2deg);
            box-shadow: 0 15px 40px rgba(69, 183, 209, 0.3);
        }

        .contact-card i {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .contact-card h3 {
            color: #96ceb4;
            margin-bottom: 1rem;
        }

        .contact-card p {
            color: rgba(255, 255, 255, 0.9);
            word-break: break-all;
        }

        .contact-card a {
            color: #4ecdc4;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-card a:hover {
            color: #ff6b6b;
        }

        /* Page Titles */
        .page-title {
            text-align: center;
            font-size: 3rem;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            nav {
                padding: 0.8rem 1rem;
            }
            
            nav ul {
                gap: 0.8rem;
                justify-content: center;
            }

            nav li {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }

            .name-title {
                font-size: 2.5rem;
            }

            .page {
                padding: 180px 1rem 2rem; /* Increased top padding for mobile */
            }

            .projects-container,
            .skills-container {
                grid-template-columns: 1fr;
            }

            .home-container {
                flex-direction: column;
                text-align: center;
                gap: 2rem;
            }
            
            .profile-photo {
                width: 280px;
                height: 280px;
            }

            .page-title {
                font-size: 2.5rem;
                margin-bottom: 2rem;
            }

            .about-section {
                padding: 1.5rem;
            }

            .about-section h2 {
                font-size: 1.8rem;
            }

            .project-card,
            .skill-category {
                padding: 2rem;
            }

            .projects-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .project-card {
                min-height: auto;
            }
        }

        @media (max-width: 480px) {
            nav ul {
                gap: 0.5rem;
            }

            nav li {
                padding: 0.5rem 0.8rem;
                font-size: 0.8rem;
            }

            .page {
                padding: 200px 1rem 2rem; /* Even more padding for very small screens */
            }

            .name-title {
                font-size: 2rem;
            }

            .profile-photo {
                width: 250px;
                height: 250px;
            }

            .page-title {
                font-size: 2rem;
            }

            .home-container {
                gap: 1.5rem;
            }
        }
    </style>