/* ==================== */
/* Global Styles */
/* ==================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #0ea5e9;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --padding-sm: 0.5rem;
    --padding-md: 1rem;
    --padding-lg: 2rem;
    --padding-xl: 3rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    padding: var(--padding-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem var(--padding-lg);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--padding-md);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

/* ==================== */
/* Buttons */
/* ==================== */

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ==================== */
/* Featured Projects */
/* ==================== */

.featured-projects {
    padding: 4rem var(--padding-lg);
    background-color: var(--light-color);
}

.featured-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.project-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.project-card.placeholder {
    opacity: 0.6;
    background-color: var(--light-color);
}

.project-header {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-type {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.tag {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
}

.view-all {
    text-align: center;
}

/* ==================== */
/* Tech Stack Section */
/* ==================== */

.tech-stack {
    padding: 4rem var(--padding-lg);
}

.tech-stack h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.tech-item {
    text-align: center;
    padding: 2rem;
    border-radius: 0.75rem;
    background: var(--light-color);
    transition: var(--transition);
}

.tech-item:hover {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tech-item p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ==================== */
/* Contact Section */
/* ==================== */

.contact {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    padding: 4rem var(--padding-lg);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact > .container > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem var(--padding-lg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* ==================== */
/* Page Header */
/* ==================== */

.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem var(--padding-lg);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================== */
/* Projects Section */
/* ==================== */

.projects-section {
    padding: 4rem var(--padding-lg);
}

.project-detail {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.project-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.project-detail-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

.badge-active {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.project-overview h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-overview h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.project-overview p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    color: var(--success-color);
}

.tech-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.detail-item {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
}

.detail-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-item p {
    color: var(--dark-color);
    font-weight: 500;
}

.tech-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-large {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.platforms {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.project-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

.coming-soon-projects {
    text-align: center;
    padding: 3rem;
    background: var(--light-color);
    border-radius: 1rem;
}

.coming-soon-projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.project-placeholder {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    opacity: 0.5;
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-placeholder h3 {
    color: var(--dark-color);
}

/* ==================== */
/* About Section */
/* ==================== */

.about-section {
    padding: 4rem var(--padding-lg);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.expertise-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.expertise-section h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-color);
}

.expertise-section h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--dark-color);
    font-weight: 600;
}

.expertise-list {
    list-style: none;
    margin-bottom: 1rem;
}

.expertise-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.expertise-list li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.mission-section,
.values-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border-left: 5px solid var(--primary-color);
}

.mission-section h2,
.values-section h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==================== */
/* CTA Section */
/* ==================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem var(--padding-lg);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0 0;
        display: none;
    }

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

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

    .featured-projects h2,
    .tech-stack h2,
    .contact h2,
    .page-header h1 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .project-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer .container {
        flex-direction: column;
    }

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

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--padding-md);
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

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

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

    .project-detail {
        padding: 1.5rem;
    }

    .tech-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* Hero Summary & Meta */
/* ==================== */

.hero-summary {
    max-width: 760px;
    margin: 0 auto 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-meta {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-meta a {
    color: white;
    text-decoration: underline;
}

.hero-meta i {
    margin-right: 0.35rem;
}

/* ==================== */
/* Experience Section */
/* ==================== */

.experience {
    padding: 4rem var(--padding-lg);
    background-color: var(--light-color);
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.experience-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.experience-item {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 0;
}

.experience-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.experience-org {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-color);
}

.experience-item ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ==================== */
/* Education & Certifications */
/* ==================== */

.education {
    padding: 4rem var(--padding-lg);
}

.education h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.education-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.education-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.education-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.education-card h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.education-school {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.education-detail {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    font-size: 0.95rem;
}

.cert-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .experience h2,
    .education h2 {
        font-size: 2rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
