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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(30, 30, 30, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 10px;
}

.navbar li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 500;
}

.navbar li a:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
}

.navbar li a.active {
    background-color: #4CAF50;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    text-align: center;
    padding: 80px 20px 50px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #cccccc;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #999999;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #252525;
}

.about h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #4CAF50;
}

.about p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 15px;
    background-color: #444;
    border-radius: 20px;
    display: inline-block;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.skill-category li:hover {
    background-color: #4CAF50;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: #1e1e1e;
}

.projects h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #4CAF50;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 30px;
    align-items: start;
}

.project-card {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #4CAF50;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: #66BB6A;
}

.project-status {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

.status-badge.released {
    background-color: #4CAF50;
    color: white;
}

.status-badge.demo {
    background-color: #2196F3;
    color: white;
}

.status-badge.competition {
    background-color: #FF9800;
    color: white;
}

.status-badge.open-source {
    background-color: #9C27B0;
    color: white;
}

.status-badge.in-development {
    background-color: #FF6F00;
    color: white;
}

.platform-badge {
    padding: 4px 10px;
    background-color: #555;
    color: white;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    display: inline-block;
    margin: 2px;
    white-space: nowrap;
}

.project-card p {
    margin-bottom: 20px;
    color: #cccccc;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Push tech tags to bottom */
    padding-top: 20px;
}

.tech-tag {
    background-color: #444;
    color: #4CAF50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    border: 1px solid #4CAF50;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    display: inline-block;
}

/* Featured Project Card */
.project-card.featured {
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    position: relative;
    padding-top: 50px; /* Add padding instead of margin to accommodate the badge */
}

.project-card.featured::before {
    content: "★ Featured";
    position: absolute;
    top: 15px;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.project-features {
    margin: 20px 0;
}

.project-features ul {
    list-style: none;
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.project-features li {
    margin: 8px 0;
    font-size: 0.9em;
    color: #e0e0e0;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    margin-bottom: 20px;
    color: #999;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.social-links a:hover {
    color: #66BB6A;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .navbar li {
        margin: 5px 0;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 100px 20px 50px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .project-card {
        padding: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #66BB6A;
}
