@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/*  VARIABLES & THEME */
:root {
    /* Dark Theme (Default) */
    --bg-color: #0b0f19;
    --card-bg: #151b2b;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-color: rgba(255,255,255,0.05);
    --shadow-color: rgba(0,0,0,0.5);

    /* Brand Colors */
    --primary: #0ea5e9;
    --rainbow-gradient: linear-gradient(90deg, #facc15, #f97316, #ec4899);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0,0,0,0.1);
    --shadow-color: rgba(148, 163, 184, 0.2);
}

/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

section {
    padding: 100px 8% 60px;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.section-title span {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 2rem;
    margin: 80px 0 40px;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
}
.section-subtitle span { color: #facc15; }

/*  NAVIGATION */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.logo span { color: #ec4899; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navlist { display: flex; gap: 40px; }

.navlist a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}

.navlist a:hover, .navlist a.active { color: var(--primary); }

.theme-btn {
    cursor: pointer;
    font-size: 1.0rem;
    color: var(--text-main);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.theme-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.menu-icon {
    font-size: 28px;
    color: var(--text-main);
    display: none;
    cursor: pointer;
    margin-left: 20px;
}

/* BUTTONS  */
.btn-box { display: flex; gap: 15px; margin-top: 30px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--rainbow-gradient);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn.outline:hover {
    background: var(--primary);
    color: #fff;
}

/* HERO SECTION  */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 120px;
}

.hero-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 10px 0;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-main);
}

.hero-text p {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-img { position: relative; z-index: 1; }

.hero-img img {
    width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--card-bg);
    border: 2px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px;
    width: 100%; height: 100%;
    border-radius: 20px;
    background: var(--rainbow-gradient);
    z-index: -1;
    opacity: 0.6;
}

/* ABOUT PAGE*/
.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    align-items: start;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-column h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.summary-text {
    color: var(--text-muted);
    line-height: 1.8;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.education-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    border-left: 4px solid var(--primary);
    transition: 0.3s;
}

.education-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.education-box h4 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 5px; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.skill-tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
    transition: 0.3s;
}

.skill-tag:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.info-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.personal-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}
.personal-info-list li:last-child { border-bottom: none; }
.personal-info-list span { color: var(--text-main); font-weight: 600; }

/* EXPERIENCE & CARDS */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.job-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.job-card:hover { transform: translateY(-7px); border-color: var(--primary); }

.card-image { width: 100%; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.job-card:hover .card-image img { transform: scale(1.1); }

.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.job-card h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--text-main); }
.company-name { color: var(--primary); font-weight: 600; display: block; margin-bottom: 5px; }

.duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.job-duties li {
    list-style: none;
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.job-duties li::before { content: "•"; color: #f97316; position: absolute; left: 0; font-weight: bold; }

.tech-tags { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tech-tags span {
    font-size: 0.75rem;
    background: var(--bg-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

/*CONTACT FORM  */
.contact-wrapper { max-width: 600px; margin: 0 auto; }

.contact-info-box {
    text-align: center;
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.contact-info-box i { color: var(--primary); margin-right: 8px; }
.contact-info-box p { color: var(--text-muted); margin: 5px 0; }

form .input-group { margin-bottom: 20px; }
form label { display: block; margin-bottom: 8px; color: var(--text-main); }

form input, form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: 5px;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--primary); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .menu-icon { display: block; }
    
    .navlist {
        position: absolute;
        top: 100%; left: -100%;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    .navlist.open { left: 0; }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }
    .hero-img img { width: 300px; }
    .btn-box { justify-content: center; }
    
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
}