:root {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --primary: #b8bdd1;
    --secondary: #cec7d4;
    --nav-bg: #9da0a1;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --tech-badge-bg: #edf2f7;
    --tech-badge-text: #4a5568;
    --project-link-disabled-bg: #cbd5e0;
    --project-link-disabled-text: #718096;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-secondary: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --card-shadow: 0 10px 15px rgba(0,0,0,0.3);
    --tech-badge-bg: #334155;
    --tech-badge-text: #e2e8f0;
    --project-link-disabled-bg: #e0e4eb;
    --project-link-disabled-text: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-body);
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    background: var(--nav-bg);
    color: #fff;
    padding: 15px 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar a {
    color: #e5e7eb;
    margin-left: 10px;
    margin-right: 20px;
    font-weight: 600;
    text-decoration: none;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    padding: 5px;
}

#theme-toggle:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

.hero p {
    font-size: 28px;
    max-width: 100%;
    margin: 0 0 30px 0;
    opacity: 0.95;
    color: white;
    text-align: left;
}

.hero-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-main);
}
#hero p{
    text-align: justify;}
    
/* About Section */
.about {
    background: var(--bg-card);
}

.about-content {
    max-width: 100%;
    margin: 0;
    font-size: 1.8rem;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}
.about-content strong {
    color: var(--text-main);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.project-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-badge.private {
    background: #e53e3e;
}

.project-description {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.project-role {
    margin-bottom: 20px;
}

.project-role h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-role ul {
    list-style: none;
    padding-left: 0;
}

.project-role li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.project-role li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    background: var(--tech-badge-bg);
    color: var(--tech-badge-text);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

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

.project-link.disabled {
    background: var(--project-link-disabled-bg);
    color: var(--project-link-disabled-text);
    cursor: not-allowed;
}

/* Skills Section */
.skills {
    background: var(--bg-card);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 100%;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.skill-category li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 30px;
    font-size: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

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

    section {
        padding: 60px 20px;
    }

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

/* New Contact Buttons Styles */
.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .contact-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.contact-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: scale(1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .contact-btn {
        width: auto;
    }
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn i {
    margin-right: 0.5rem;
}

/* Email Button - bg-secondary (light) text-primary */
.email-btn {
    background-color: var(--bg-secondary);
    color: var(--primary);
}

.email-btn:hover {
    background-color: white;
}

/* LinkedIn Button */
.linkedin-btn {
    background-color: #0077b5;
    color: white;
}

.linkedin-btn:hover {
    background-color: rgba(0, 119, 181, 0.8);
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    flex-direction: column;
    background: #9ba8c2;
    padding: 15px 20px;
}

#mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 0;
}

#menu-button {
    display: none;
    background: transparent;
    border: 1px solid rgba(58, 56, 56, 0.5);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Show button and hide desktop menu on small screens */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
        justify-content: center;
        gap: 0;
    }

    .logo {
        text-align: center;
    }

    #menu-button {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .nav-links {
        display: none;
    }

    #menu-button {
        display: block;
    }

    #mobile-menu.active {
        display: flex;
    }

    .container {
        padding: 0 16px;
    }

    section + section {
        margin-top: 20px;
    }

    .hero p {
        font-size: 1.1rem;
        text-align: left;
    }

    .about-content {
        font-size: 1.1rem;
    }

    .project-content {
        padding: 20px;
    }

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

    .contact p {
        font-size: 1.1rem;
    }
}

