        :root {
            --primary: #5D5CDE;
            --primary-light: #7F7EE6;
            --primary-dark: #4948B6;
            --accent: #FF6B6B;
            --text: #333333;
            --text-light: #666666;
            --background: #FFFFFF;
            --background-alt: #F5F5F5;
            --card-bg: #FFFFFF;
            --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
            --nav-shadow: 0 4px 20px rgba(0,0,0,0.08);
            --border: rgba(0,0,0,0.1);
            --transition-speed: 0.3s;
        }

        .dark {
            --primary: #6665E5;
            --primary-light: #8584EA;
            --primary-dark: #5251C4;
            --accent: #FF7B7B;
            --text: #EEEEEE;
            --text-light: #AAAAAA;
            --background: #181818;
            --background-alt: #222222;
            --card-bg: #252525;
            --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
            --nav-shadow: 0 4px 20px rgba(0,0,0,0.2);
            --border: rgba(255,255,255,0.1);
        }
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", sans-serif, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        body {
            background-color: var(--background);
            color: var(--text);
            font-size: 16px;
            line-height: 1.6;
            transition: background-color var(--transition-speed), color var(--transition-speed);
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 {
            margin-bottom: 1rem;
            line-height: 1.2;
            font-weight: 700;
        }

        h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
        }

        h2 {
            font-size: 2.25rem;
            position: relative;
            display: inline-block;
            margin-bottom: 2rem;
        }

        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            height: 4px;
            width: 60%;
            background: var(--primary);
            border-radius: 5px;
        }

        h3 {
            font-size: 1.5rem;
        }

        p {
            margin-bottom: 1.5rem;
            color: var(--text-light);
        }

        section {
            padding: 6rem 0;
        }

        .container {
            width: 85%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all var(--transition-speed);
            border: none;
            cursor: pointer;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: all 0.6s;
            z-index: -1;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: var(--background);
            box-shadow: var(--nav-shadow);
            z-index: 1000;
            transition: all var(--transition-speed);
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 0;
            transition: padding 0.3s ease;
        }

        .scrolled .nav-content {
            padding: 1rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        .logo span {
            font-weight: 300;
            color: var(--text);
            margin-left: 5px;
        }

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

        .nav-links li {
            margin-left: 2.5rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: 1rem;
            transition: color var(--transition-speed);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            height: 2px;
            width: 0;
            background: var(--primary);
            transition: width var(--transition-speed);
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            cursor: pointer;
        }

        .hamburger span {
            height: 2px;
            width: 100%;
            background-color: var(--text);
            transition: all 0.3s ease;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            margin-left: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color var(--transition-speed);
        }

        .theme-toggle:hover {
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            padding: 8rem 0 6rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -300px;
            right: -300px;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
            opacity: 0.1;
            z-index: -1;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -200px;
            left: -200px;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
            opacity: 0.1;
            z-index: -1;
        }

        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }

        .hero-text {
            flex: 1;
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
            animation: float 6s ease-in-out infinite;
        }

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

        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
        }

        .hero h1 {
            line-height: 1.2;
            margin-bottom: 0.5rem;
        }

        .hero h1 span {
            color: var(--primary);
            position: relative;
            display: inline-block;
        }

        .hero h1 span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 8px;
            background-color: var(--primary);
            opacity: 0.2;
            z-index: -1;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 2rem;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .hero-social {
            display: flex;
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .hero-social a {
            color: var(--text-light);
            font-size: 1.5rem;
            transition: color var(--transition-speed), transform var(--transition-speed);
        }

        .hero-social a:hover {
            color: var(--primary);
            transform: translateY(-3px);
        }

        /* About Section */
        .about {
            background-color: var(--background-alt);
        }

        .about-content {
            display: flex;
            gap: 4rem;
            align-items: center;
        }

        .about-image {
            flex: 1;
        }

        .about-image img {
            width: 100%;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
            transition: transform var(--transition-speed);
        }

        .about-image img:hover {
            transform: scale(1.03);
        }

        .about-text {
            flex: 1;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .stat {
            text-align: center;
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            transition: transform var(--transition-speed);
        }

        .stat:hover {
            transform: translateY(-5px);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .stat-title {
            font-weight: 500;
            color: var(--text-light);
        }

        /* Skills Section */
        .skills-content {
            text-align: center;
        }

        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .skill {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
            transition: all var(--transition-speed);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .skill:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .skill-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .skill-name {
            font-weight: 600;
        }

        /* Projects Section */
        .projects {
            background-color: var(--background-alt);
        }

        .projects-content {
            text-align: center;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .project {
            background: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform var(--transition-speed);
            height: 100%;
        }

        .project:hover {
            transform: translateY(-10px);
        }

        .project-image {
            height: 200px;
            overflow: hidden;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 1s;
        }

        .project:hover .project-image img {
            transform: scale(1.1);
        }

        .project-content {
            padding: 1.5rem;
            text-align: left;
        }

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

        .project-tag {
            padding: 0.3rem 0.8rem;
            background-color: rgba(93, 92, 222, 0.1);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .project-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .project-description {
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

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

        .project-link {
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--primary);
            text-decoration: none;
            transition: color var(--transition-speed);
        }

        .project-link:hover {
            color: var(--primary-dark);
        }

        /* Contact Section */
        .contact-content {
            display: flex;
            gap: 4rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .contact-icon {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .contact-text h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .contact-text a {
            color: var(--text-light);
            text-decoration: none;
            transition: color var(--transition-speed);
        }

        .contact-text a:hover {
            color: var(--primary);
        }

        .contact-form {
            flex: 1;
            background: var(--card-bg);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: var(--card-shadow);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 1rem;
            font-size: 1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--background);
            color: var(--text);
            transition: all var(--transition-speed);
        }

        .form-control:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(93, 92, 222, 0.1);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        /* Footer */
        footer {
            background-color: var(--background-alt);
            padding: 3rem 0;
            text-align: center;
        }

        .footer-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .footer-social a {
            width: 45px;
            height: 45px;
            background: var(--card-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--text-light);
            transition: all var(--transition-speed);
            box-shadow: var(--card-shadow);
        }

        .footer-social a:hover {
            transform: translateY(-5px);
            color: var(--primary);
        }

        .copyright {
            margin-top: 2rem;
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-speed);
            z-index: 999;
        }

        .back-to-top.active {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--primary-dark);
            transform: translateY(-5px);
        }

        /* Responsive Design */
        @media screen and (max-width: 992px) {
            h1 {
                font-size: 2.5rem;
            }

            h2 {
                font-size: 2rem;
            }

            .hero-content,
            .about-content,
            .contact-content {
                flex-direction: column;
            }

            .about-stats {
                grid-template-columns: repeat(3, 1fr);
            }

            .projects-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }

            .hero-image {
                order: -1;
            }
        }

        @media screen and (max-width: 768px) {
            section {
                padding: 4rem 0;
            }

            h1 {
                font-size: 2.2rem;
            }

            .hamburger {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 75px;
                left: 0;
                width: 100%;
                height: 0;
                background: var(--background);
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                overflow: hidden;
                transition: all 0.4s ease;
                box-shadow: var(--nav-shadow);
            }

            .nav-links.active {
                height: calc(100vh - 75px);
                padding: 2rem 0;
            }

            .nav-links li {
                margin: 1.5rem 0;
            }

            .about-stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media screen and (max-width: 576px) {
            h1 {
                font-size: 1.8rem;
            }

            h2 {
                font-size: 1.6rem;
            }

            .container {
                width: 90%;
            }

            .about-stats {
                grid-template-columns: 1fr;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 1rem;
            }

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

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .skills-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Loading animation */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--background);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            transition: opacity 0.5s, visibility 0.5s;
        }

        .loading.hide {
            opacity: 0;
            visibility: hidden;
        }

        .loader {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(93, 92, 222, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Animated background */
        .animated-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .animated-bg span {
            position: absolute;
            display: block;
            width: 20px;
            height: 20px;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0.05;
            animation: move 8s linear infinite;
        }

        @keyframes move {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.05;
                border-radius: 50%;
            }
            100% {
                transform: translateY(-1000px) rotate(360deg);
                opacity: 0;
                border-radius: 10%;
            }
        }
