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

    /* Professional Dark Theme */
    :root {
        --bg-color: #1a1a2e;
        --sidebar-bg: #16213e;
        --text-color: #e0e0e0;
        --highlight-color: #0f3460;
        --accent-color: #ff6b6b;
        --link-hover-color: #4e9af1;
        --border-color: rgba(255, 255, 255, 0.1);
        --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    body {
        font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--text-color);
        background-color: var(--bg-color);
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .container {
        display: flex;
        min-height: 100vh;
    }

    /* Sidebar Navigation */
    .sidebar {
        width: 280px;
        background: var(--sidebar-bg);
        padding: 2.5rem 0;
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
        border-right: 1px solid var(--border-color);
        box-shadow: var(--box-shadow);
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .profile-section {
        text-align: center;
        padding: 0 2rem 2.5rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: var(--highlight-color);
        border: 3px solid var(--accent-color);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 3rem;
        color: var(--text-color);
        font-weight: bold;
    }

    .profile-name {
        color: white;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .nav-menu {
        list-style: none;
        padding: 2rem 0 0;
        width: 100%;
    }

    .nav-item {
        margin-bottom: 0.2rem;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 2.5rem;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        font-size: 1rem;
        font-weight: 500;
    }

    .nav-link:hover,
    .nav-link.active {
        color: white;
        background: var(--highlight-color);
        border-left-color: var(--accent-color);
    }
    
    /* Main Content */
    .main-content {
        flex: 1;
        margin-left: 280px;
        padding: 2rem;
        overflow-y: auto;
    }

    .page {
        display: none;
        min-height: 100vh;
        padding: 2rem 3rem;
    }

    .page.active {
        display: block;
    }

    /* Home Page */
    .hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: calc(100vh - 4rem);
        gap: 4rem;
    }

    .hero-content {
        flex: 1.5;
        padding-left: 2rem;
    }

    .hero-title {
        font-size: 4rem;
        font-weight: 800;
        color: white;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        color: var(--accent-color);
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2.5rem;
        line-height: 1.8;
        max-width: 600px;
    }

    .btn-primary {
        background: var(--accent-color);
        color: white;
        padding: 1rem 2.5rem;
        border: none;
        border-radius: 5px;
        font-size: 1.1rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: transform 0.3s ease, background-color 0.3s ease;
        cursor: pointer;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        background: var(--link-hover-color);
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-photo {
        width: 380px;
        height: 380px;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid var(--highlight-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Shared Page Styling */
    .page-title {
        font-size: 2.8rem;
        font-weight: 700;
        color: white;
        margin-bottom: 2.5rem;
        border-bottom: 2px solid var(--accent-color);
        display: inline-block;
        padding-bottom: 0.5rem;
    }

    /* About Page */
    .about-content {
        max-width: 1000px;
        color: var(--text-color);
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .skills-section,
    .education-section,
    .projects-section {
        margin-top: 3.5rem;
    }

    .skills-category {
        margin-bottom: 2.5rem;
    }

    .skills-category h3 {
        font-size: 1.5rem;
        color: var(--link-hover-color);
        margin-bottom: 1.5rem;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .skill-item {
        background: var(--highlight-color);
        padding: 1rem 1.5rem;
        border-radius: 5px;
        color: white;
        text-align: center;
        font-size: 1rem;
        border: 1px solid var(--border-color);
        transition: transform 0.3s ease;
    }

    .skill-item:hover {
        transform: translateY(-3px);
    }

    .education-item,
    .project-item {
        background: var(--highlight-color);
        padding: 2rem;
        border-radius: 10px;
        margin-bottom: 2rem;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .education-item:hover,
    .project-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .education-item h4,
    .project-item h4 {
        color: var(--link-hover-color);
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .education-item p,
    .project-item p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    /* Contact Page */
    .contact-content {
        max-width: 800px;
        color: var(--text-color);
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .contact-item {
        background: var(--highlight-color);
        padding: 2.5rem;
        border-radius: 10px;
        text-align: center;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

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

    .contact-item h3 {
        color: var(--link-hover-color);
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

    .contact-item p {
        color: rgba(255, 255, 255, 0.9);
    }

    .contact-item a {
        color: var(--accent-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .contact-item a:hover {
        color: var(--link-hover-color);
        text-decoration: underline;
    }

    .hobbies {
        margin-top: 3.5rem;
    }

    .hobbies-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hobby-item {
        background: var(--highlight-color);
        padding: 0.8rem 1.5rem;
        border-radius: 5px;
        color: white;
        border: 1px solid var(--border-color);
        transition: transform 0.3s ease;
    }

    .hobby-item:hover {
        transform: scale(1.05);
    }


    /* Mobile Responsive Design */
    @media (max-width: 768px) {
        .container {
            flex-direction: column;
        }

        .sidebar {
            width: 100%;
            height: auto;
            position: relative;
            padding: 1.5rem 0;
            border-right: none;
            border-bottom: 1px solid var(--border-color);
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .profile-section {
            padding: 0 1rem;
            border-bottom: none;
        }

        .profile-img {
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            margin: 0;
            border: 2px solid var(--accent-color);
        }

        .profile-name {
            display: none;
        }

        .nav-menu {
            display: flex;
            justify-content: space-around;
            padding: 0;
            flex: 1;
        }

        .nav-link {
            padding: 1rem;
            border-left: none;
            border-bottom: 3px solid transparent;
            text-align: center;
        }
        
        .nav-link:hover,
        .nav-link.active {
            border-left-color: transparent;
            border-bottom-color: var(--accent-color);
        }

        .main-content {
            margin-left: 0;
            padding: 1rem;
        }

        .page {
            padding: 1rem;
        }

        .hero {
            flex-direction: column;
            text-align: center;
            padding-left: 0;
            padding-top: 2rem;
            min-height: auto;
        }

        .hero-photo {
            width: 200px;
            height: 200px;
            margin-top: 2rem;
            border: 3px solid var(--highlight-color);
        }

        .hero-content {
            padding-left: 0;
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.2rem;
        }
        
        .hero-description {
            font-size: 1rem;
        }

        .page-title {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

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

        .contact-info {
            grid-template-columns: 1fr;
        }

        .education-item,
        .project-item,
        .contact-item {
            padding: 1.5rem;
        }

        .hobbies-list {
            justify-content: center;
        }
    }