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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
}

img{
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-links li.active a {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -80px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image hover effect */
.hero-content img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(187, 134, 252, 0.5);
}

.hero-text {
    max-width: 600px;
    transition: transform 0.3s ease;
}

/* Text hover effect */
.hero-text:hover {
    transform: translateY(-5px);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-text .title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    color: #bb86fc;
}

.hero-text .intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.cta-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
}

.section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: #111111;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #bb86fc;
}

/* Skills Section */
.skills {
    background: #0a0a0a;
}

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

.skill-category {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #bb86fc;
}

.skill-category h3 {
    color: #bb86fc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.project-filters {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 0.5rem;           
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #bb86fc;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1 1 auto;        
    max-width: 200px;      
    text-align: center;    
}

.filter-btn:hover,
.filter-btn.active {
    background: #6200ea;
}

.projects {
    background: #111111;
}

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

.project-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border: 1px solid #333;

    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #bb86fc;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

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

.project-tech {
    color: #bb86fc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description{
    margin-bottom: 20px;
}

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

.project-link {
    padding: 0.5rem 1rem;
    background: #bb86fc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #6200ea;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(187, 134, 252, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bb86fc;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.submit-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #bb86fc;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content img {
        margin-bottom: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    /* Fix for mobile navigation links - remove underlines but keep active state */
    .nav-links a {
        text-decoration: none !important;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: color 0.3s ease;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-links li.active a {
        text-decoration: none !important;
        color: #bb86fc;
        font-weight: bold;
    }
    
    .nav-links a:hover {
        text-decoration: none !important;
        color: #bb86fc;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        margin-top: 80px;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

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

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