:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --secondary-text: #666666;
    --card-bg: #ffffff;
    --card-border: #eeeeee;
    --accent-color: #2563eb;
    --nav-bg: #1a1a1a;
    --nav-text: #cccccc;
    --footer-bg: #ffffff;
    --section-bg-alt: #fbfbfb;
    --input-border: #cccccc;
    --pill-bg: #f0f4ff;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --secondary-text: #94a3b8;
    --card-bg: #1e293b;
    --card-border: #334155;
    --accent-color: #38bdf8;
    --nav-bg: #020617;
    --nav-text: #94a3b8;
    --footer-bg: #0f172a;
    --section-bg-alt: #1e293b;
    --input-border: #334155;
    --pill-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--nav-bg);
    color: white;
    border-radius: 50px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 1000;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-switch {
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
}

.theme-switch:hover {
    transform: scale(1.1);
}

.home-icon {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.home-icon:hover {
    color: #2563eb;
}

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

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.menu-btn:hover {
    color: #2563eb;
}

/* Sections */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

/* Hero Section */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-text {
    max-width: 500px;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.gradient-text {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #2563eb, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-outline {
    border: 2px solid var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

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

.social-links a {
    color: var(--text-color);
}

/* About Section */
.about {
    background-color: var(--section-bg-alt);
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.skill-box {
    border: 1.5px solid var(--text-color);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: var(--card-bg);
}

.skill-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-box i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: block;
}

.skill-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.skill-item {
    background: var(--pill-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Projects Section */
.subtitle {
    text-align: center;
    letter-spacing: 2px;
    color: var(--secondary-text);
    font-size: 0.8rem;
    border-radius: 20px;
    background: var(--pill-bg);
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.2rem 1rem;
}

.section-desc {
    text-align: center;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.project-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-img {
    height: 250px;
    background: var(--section-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-bg {
    background: linear-gradient(135deg, #2563eb, #d946ef);
    color: white;
    font-size: 4rem;
}

.project-info {
    padding: 2rem;
}

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

.project-info p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.btn-sm {
    border: 1px solid var(--text-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Resume Section (Education & Experience) */
.education {
    background-color: var(--section-bg-alt);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-title.left-align {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.education-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--card-border);
    transition: border-color 0.3s ease;
}

.education-item:hover {
    border-left-color: var(--accent-color);
}

.education-date {
    display: inline-block;
    background: var(--pill-bg);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.education-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.education-org {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.education-item p:last-child {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto 5rem;
    text-align: center;
}

.get-in-touch {
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.contact-form-container h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.input-group {
    border: 1px solid var(--input-border);
    border-radius: 40px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
}

.input-group input {
    border: none;
    width: 100%;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--text-color);
}

.btn-submit {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 3rem;
    border-radius: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.response-time {
    color: var(--secondary-text);
}

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

.info-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 25px;
    text-align: left;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-card p, .info-card a {
    color: var(--secondary-text);
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #666;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: 1fr 1fr;
    }
    .exp-image {
        grid-row: auto;
        grid-column: span 2;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Navbar Mobile */
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        width: 100%;
        border-radius: 20px;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

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

    /* Hero Mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .gradient-text {
        font-size: 1.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Skills Mobile */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-box {
        padding: 1.5rem;
    }

    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 200px;
    }

    /* Resume Mobile */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title.left-align {
        text-align: center;
        font-size: 2rem;
    }

    .education-item {
        padding-left: 1.5rem;
    }

    /* Contact Mobile */
    .contact-form-container h3 {
        font-size: 1.8rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .nav-links {
        width: 95%;
        left: 2.5%;
    }
}
