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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    height: 60px;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6366f1;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6366f1;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

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

/* Content Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-alt {
    background: #f8fafc;
    max-width: 100%;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* About & Skills Grid */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

img.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

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

/* Cards */
.skill-card, .project-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-image {
    font-size: 25px;
    color: #0c0000;
}

/* Contact */
#contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    max-width: 100%;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive (THE UPDATED SECTION) */
@media (max-width: 768px) {
    .hamburger { 
        display: flex; 
        z-index: 1001; 
    }

    .nav-links {
        position: fixed;
        right: -25% !important; 
        
        /* FIX: Start exactly at the bottom of the 60px header */
        top: 60px; 
        
        /* FIX: Fill the rest of the screen height */
        height: calc(100vh - 60px); 
        
        width: 25% !important;
        min-width: 120px;
        
        /* Adjust padding so "Home" has a nice gap from the top */
        padding-top: 30px; 
        
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; 
        gap: 1.5rem; 
        
        transition: 0.4s ease-in-out;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0 !important;
    }

    /* Optional: Ensure the links are readable in the narrow 25% column */
    .nav-links a {
        font-size: 0.9rem;
        display: block;
        width: 100%;
    }
}
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .about-content { 
        grid-template-columns: 1fr; 
    }
ul{
    text-align: center;
}
