* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark-gray: #121212;
    --medium-gray: #1e1e1e;
    --light-gray: #333333;
    --red: #ff0000;
    --blue: #007bff;
    --white: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background-color: var(--dark-gray);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--red);
    background-color: var(--light-gray);
}

/* Page Sections */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Page */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red);
    box-shadow: 0 0 20px var(--red), 0 0 40px rgba(255, 0, 0, 0.3);
}

.greeting {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.name {
    font-size: 3rem;
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 2rem;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--red);
    min-height: 2rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--red);
    margin-left: 0.1rem;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.skills-section {
    margin-top: 3rem;
}

.skills-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--red);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background-color: var(--medium-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--red);
}

.skill-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

.skill-bar {
    background-color: var(--light-gray);
    height: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-percentage {
    font-size: 1rem;
    font-weight: bold;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--medium-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

.project-description {
    color: #ccc;
    line-height: 1.6;
}

.coming-soon {
    text-align: center;
    font-size: 1.8rem;
    color: var(--red);
    margin-top: 3rem;
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    padding: 3rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.copyright {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--red);
    transform: translateY(-3px);
}

/* Mobile Header with Separated Logo */
.mobile-header {
    display: none;
    background-color: var(--dark-gray);
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile header with logo */
    .mobile-header {
        display: block;
        text-align: left;
        padding: 1rem 20px;
    }
    
    .mobile-header .logo {
        font-size: 1.3rem;
        margin-left: 10px;
    }
    
    /* Hide logo from nav */
    .nav-container .logo {
        display: none;
    }
    
    /* Navigation at bottom with rounded corners */
    nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        padding: 0.8rem 0;
        border-radius: 50px;
        background-color: var(--dark-gray);
        box-shadow: 0 -4px 20px rgba(255, 0, 0, 0.3);
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .nav-links {
        gap: 0.8rem;
        justify-content: space-around;
        width: 100%;
        padding: 0 15px;
    }
    
    .nav-links li a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .nav-links li a.active {
        background-color: var(--red);
        color: var(--white);
    }
    
    /* Adjust page padding */
    .page {
        padding-top: 70px;
        padding-bottom: 120px;
    }
    
    /* About page adjustments */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-picture {
        width: 150px;
        height: 150px;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer adjustment for mobile */
    footer {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    nav {
        width: 95%;
        bottom: 15px;
    }
    
    .page {
        padding-bottom: 110px;
    }
    
    footer {
        padding-bottom: 130px;
    }
    
    .mobile-header .logo {
        font-size: 1.2rem;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    nav {
        top: 0;
        bottom: auto;
        border-radius: 0;
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .page {
        padding-top: 80px;
        padding-bottom: 40px;
    }
}
