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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #fafafa;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212121;
    line-height: 1.2;
}

.highlight {
    color: #1976d2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #424242;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #616161;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.btn-secondary:hover {
    background-color: #1976d2;
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #212121;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    color: #616161;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: white;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-image .material-icons {
    font-size: 2.5rem;
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212121;
}

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

.project-description {
    color: #616161;
    line-height: 1.8;
    margin-bottom: auto;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1565c0;
}

.project-link .material-icons {
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: 
        "text image"
        "skills skills";
    gap: 4rem;
    align-items: center;
}

.about-text {
    grid-area: text;
    animation: fadeInLeft 0.8s ease-out;
}

.about-image {
    grid-area: image;
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out;
}

.skills {
    grid-area: skills;
}

.about-description {
    font-size: 1.1rem;
    color: #616161;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #212121;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.skill-item .material-icons {
    color: #1976d2;
    font-size: 1.5rem;
}

.skill-item span:last-child {
    font-weight: 500;
    color: #424242;
}

.about-avatar {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    background-color: #212121;
    padding: 3rem 0;
    color: white;
}

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

.footer-text {
    color: #bdbdbd;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #42a5f5;
}

.footer-link .material-icons {
    font-size: 1.2rem;
}

.github-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Project Page Styles */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212121;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1976d2;
}

/* Project Hero */
.project-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    text-align: center;
}

.project-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 1rem;
}

.project-hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.project-hero-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-hero-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Project Section */
.project-section {
    padding: 4rem 0;
}

.project-section:nth-child(even) {
    background-color: #f9f9f9;
}

.project-overview {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon .material-icons {
    color: white;
    font-size: 28px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Screenshots */
.screenshots-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Technical Details */
.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1976d2;
}

.tech-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 1rem;
}

.tech-detail-description {
    color: #666;
    line-height: 1.7;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "image"
            "skills";
        gap: 2rem;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-avatar {
        width: 200px;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .project-hero-title {
        font-size: 2rem;
    }
    
    .project-hero-tech {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-details {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .tech-detail-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-hero {
        padding: 6rem 0 3rem;
    }
    
    .project-hero-title {
        font-size: 1.75rem;
    }
    
    .project-hero-subtitle {
        font-size: 1rem;
    }
    
    .project-section {
        padding: 3rem 0;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus,
.project-link:focus,
.footer-link:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .project-image {
        background: #000;
    }
    
    .project-card {
        border: 2px solid #000;
    }
}
