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

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

html {
    scroll-behavior: smooth;
}

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

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

.navbar .container {
    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: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.experience-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.experience-list li {
    padding-left: 2rem;
    position: relative;
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.experience-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.about-email-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-email-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Projects Section */
.projects {
    padding: 60px 0;
}

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

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: #666;
}

.project-download {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.playstore-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.playstore-link:hover {
    background-color: #667eea;
    color: white;
    transform: scale(1.05);
}

/* Gradio Demo Section */
.gradio-demo {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.gradio-demo h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gradio-demo p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

gradio-app {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.download-link:hover {
    color: #764ba2;
    text-decoration: underline;
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact > .container > p:nth-of-type(1) {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contact-email {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    background-color: white;
}

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

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    position: relative;
}

.char-count {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.btn-submit,
.btn-download {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit {
    background-color: #667eea;
    color: white;
}

.btn-submit:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
}

.btn-download {
    background-color: #3498db;
    color: white;
}

.btn-download:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-download:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-weight: 500;
}

.contact-email {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

/* Media Section (YouTube & Publications) */
.media-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.media-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.media-item > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.youtube-item .youtube-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.youtube-item .youtube-container iframe {
    max-width: 100%;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.publication-item .publication-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.publication-item .publication-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.publication-link {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.publication-link:hover {
    background-color: #5568d3;
}

/* GitHub Section */
.github {
    padding: 60px 0;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.github h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.github > .container > p {
    color: #ecf0f1;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.github-link {
    display: inline-block;
    background-color: #667eea;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.github-link:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
}

.github-icon {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .youtube-item .youtube-container iframe {
        height: 300px;
    }

    .media-section h2 {
        font-size: 2rem;
    }

    .github h2 {
        font-size: 2rem;
    }

    .github-link {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

