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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #ecf0f1;
}

/* Navigation */
nav {
    margin-top: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    opacity: 0.8;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-size: 1rem;
}

/* Projects Section */
#projects {
    background-color: white;
}

.project {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    padding: 2.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.project h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-status {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tech-tags {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.demo-link {
    color: #667eea;
    font-weight: bold;
    margin-top: 1rem;
}

.demo-link a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.demo-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Tech Stack Section */
#tech-stack {
    background-color: #f8f9fa;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tech-category h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.tech-category li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.tech-category li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Approach Section */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.principle h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Contact Section */
#contact {
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    margin-top: 2rem;
}

.contact-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

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

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    nav a {
        margin-right: 1rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-button {
        display: block;
        margin: 0.5rem auto;
        max-width: 200px;
    }
}
