/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #1a1b26;
    --card-bg: #2a2b3c;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --accent-purple: #a78bfa;
    --border-color: #3a3b4c;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-purple: #7c3aed;
    --border-color: #e2e8f0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* Variables for Colors (matched from screenshots) */

 :root {
    --bg-color: #1a1b26;
    --card-bg: #2a2b3c;
    --accent-purple: #a78bfa;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header and Nav */
header {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-icon {
    background-color: var(--accent-purple);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.logo span {
    margin-left: 0.5rem;
    font-weight: bold;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.theme-toggle {
    color: var(--text-secondary);
}
.header-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}
.send-message {
    background-color: var(--accent-purple);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}
.send-message:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}
.availability {
    color: #10b981;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
}
.welcome-badge {
    background-color: var(--card-bg);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #4a4b5e;
    overflow: hidden;
}
.profile-img {
    width: 105%;
    height: 125%;
    object-fit: cover;
}
.profile-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}
.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.highlight {
    color: var(--accent-purple);
}
.hero-text h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.primary-btn {
    background-color: var(--accent-purple);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.primary-btn:hover {
    transform: scale(1.05);
}
.secondary-btn {
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.secondary-btn:hover {
    transform: scale(1.05);
}
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}
.stat-number {
    font-size: 2rem;
    color: var(--accent-purple);
    display: block;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 4rem 2rem;
}
.about h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}
.about h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.about-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.about-text {
    flex: 1;
}
.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.about-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.highlight-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
}
.highlight-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.highlight-card span {
    font-size: 0.9rem;
}
.competencies {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    flex: 0.8;
}
.competencies h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.progress-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.progress-bar span:first-child {
    flex: 1;
}
.bar {
    background: #4a4b5e;
    height: 8px;
    flex: 2;
    border-radius: 4px;
    margin: 0 1rem;
}
.fill {
    background: var(--accent-purple);
    height: 100%;
    border-radius: 4px;
}
.progress-bar span:last-child {
    width: 40px;
    text-align: right;
    color: var(--accent-purple);
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    text-align: center;
}
.skills h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.skills h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.skills p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: left;
}
.skill-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tags span {
    background: #3a3b4c;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    text-align: center;
}
.projects h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.projects h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.projects p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: left;
}
.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.project-card h3 {
    font-size: 1rem;
    padding: 1rem 1rem 0;
}
.project-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0 1rem;
}
.project-card .tags {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-card .tags span {
    background: #3a3b4c;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    text-align: center;
}
.services h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.services h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.services p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: left;
}
.service-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.service-card ul {
    list-style: disc;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.service-card ul li {
    margin-bottom: 0.25rem;
}

/* Experience Section */
.experience {
    padding: 4rem 2rem;
}
.experience h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.experience h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.experience p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.experience-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.education, .work {
    flex: 1;
}
.experience h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}
.card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.card h4 {
    font-size: 1rem;
}
.card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}
.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}
.card ul {
    list-style: disc;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.education ul {
    list-style: disc;
    padding-left: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
}
.contact h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.contact h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent-purple);
    margin: 0.5rem auto 0;
}
.contact p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.contact-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}
.contact-form h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    background: #1a1b26;
    border: none;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
}
.contact-form textarea {
    height: 150px;
}
.contact-info {
    flex: 1;
}
.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.info-card {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.info-card .icon {
    margin-right: 1rem;
}
.info-card span {
    font-size: 0.9rem;
}
.availability-card {
    background: #2a2b3c;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}
.availability-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.availability-card span {
    color: #10b981;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #0f101a;
    padding: 2rem;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
}
.footer-logo .logo-icon {
    margin-right: 1rem;
}
.footer-logo p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.quick-links h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.quick-links ul li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.connect h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.connect p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.footer-bottom ul {
    display: flex;
    gap: 1rem;
}
.made-with {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

footer {
    background: #0f101a;
    padding: 3rem 2rem 1.5rem;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-social a {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer-social a {
    display: block;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2b3c;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.4rem 0;
}

/* Light Theme */
[data-theme="light"] header,
[data-theme="light"] footer {
    background-color: #f1f5f9;
}

[data-theme="light"] .card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .service-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .info-card,
[data-theme="light"] .availability-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

[data-theme="light"] .nav-links a,
[data-theme="light"] .made-with {
    color: var(--text-secondary);
}

[data-theme="light"] .primary-btn {
    background-color: var(--accent-purple);
    color: white;
}

[data-theme="light"] .secondary-btn {
    background-color: #e2e8f0;
    color: var(--text-primary);
}







/* Variables for Colors (matched from screenshots) */
:root {
    --bg-color: #1a1b26;
    --card-bg: #2a2b3c;
    --accent-purple: #a78bfa;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Light Theme */
.light {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-primary: #1a1b26;
    --text-secondary: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow);
}

.competencies {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    flex: 0.8;
    box-shadow: var(--shadow);
}

.skill-card, .project-card, .service-card, .card, .info-card, .highlight-card, .availability-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: background-color 0.3s;
}

.bar {
    background: #4a4b5e; /* Keep dark for progress, or adjust if needed */
    height: 8px;
    flex: 2;
    border-radius: 4px;
    margin: 0 1rem;
}

.light .bar {
    background: #d1d5db;
}

.tags span {
    background: #3a3b4c;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.light .tags span {
    background: #e2e8f0;
}

.welcome-badge {
    background-color: var(--card-bg);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.secondary-btn {
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--text-secondary);
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: background-color 0.3s;
}

/* Footer Cleanup */
footer {
    background: #0f101a;
    padding: 2rem 1rem;
    text-align: left;
    border-top: 1px solid #2a2b3c;
}

.light footer {
    background: #e2e8f0;
    border-top: 1px solid #cbd5e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.footer-logo .logo-icon {
    margin-right: 1rem;
}

.footer-logo span {
    font-weight: bold;
}

.footer-logo p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.quick-links {
    flex: 0.5;
}

.quick-links h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.quick-links ul li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.connect {
    flex: 1;
}

.connect h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.connect p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid #2a2b3c;
    padding-top: 1rem;
}

.light .footer-bottom {
    border-top: 1px solid #cbd5e0;
}

.footer-bottom ul {
    display: flex;
    gap: 1rem;
}

.footer-bottom ul li a {
    color: var(--text-secondary);
}

.made-with {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: left;
    max-width: 1200px;
    margin: 0.5rem auto 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large tablets & smaller laptops */
@media (max-width: 1024px) {
    .skills-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .experience-content,
    .contact-content,
    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablets & mobile landscape (most common mobile breakpoint) */
@media (max-width: 768px) {
    /* Navigation becomes more compact */
    nav {
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .header-status {
        flex-direction: column;
        gap: 1rem;
    }

    /* All grids become single column */
    .skills-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Footer - assuming you're using .footer-container now */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin: 1.5rem auto;
    }

    /* Stats & buttons stack fully */
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Very small phones (portrait) */
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .about,
    .skills,
    .projects,
    .services,
    .experience,
    .contact {
        padding: 3rem 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .send-message {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}