@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Dark Theme (Default) */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --primary-color: #0066ff;
    --secondary-color: #001f3f;
    --card-bg: #151515;
    --nav-bg: rgba(10, 10, 10, 0.9);
}

[data-theme="light"] {
    /* Light Theme */
    --bg-color: #f8f9fa;
    --text-color: #000000;
    --primary-color: #0052cc;
    --secondary-color: #e6f0ff;
    --card-bg: #ffffff;
    --nav-bg: rgba(248, 249, 250, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); transition: 0.3s ease; overflow-x: hidden; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: var(--nav-bg);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
#theme-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; transition: transform 0.3s; }
#theme-toggle:hover { transform: scale(1.2); }

/* Hero Section */
.hero {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 80vh; padding: 0 10%; gap: 50px;
}
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-content h2 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: gray; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.profile-img {
    width: 400px; height: 400px; object-fit: cover; border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Buttons */
.btn {
    padding: 12px 30px; border-radius: 30px; text-decoration: none;
    font-weight: 600; transition: 0.3s; display: inline-block;
}
.primary-btn {
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    color: #fff; border: none;
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 102, 255, 0.4); }
.secondary-btn { border: 2px solid var(--primary-color); color: var(--text-color); }
.secondary-btn:hover { background: var(--primary-color); color: #fff; }
.cta-buttons { display: flex; gap: 20px; }

/* Sections & Grids */
.section-container { padding: 80px 10%; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about-text p { line-height: 1.8; margin-bottom: 15px; color: gray; }
.about-text h3 { margin-top: 20px; margin-bottom: 10px; }
.timeline { list-style: none; line-height: 2; }

/* Skills */
.skill-category { margin-bottom: 20px; }
.skill-category h4 { margin-bottom: 10px; color: var(--primary-color); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
    background: var(--card-bg); padding: 8px 15px; border-radius: 20px;
    font-size: 0.9rem; border: 1px solid rgba(128,128,128,0.2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: 0.3s;
}
.tags span:hover { border-color: var(--primary-color); transform: translateY(-2px); }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card {
    background: var(--card-bg); padding: 30px; border-radius: 15px;
    border: 1px solid rgba(128,128,128,0.1); transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.project-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.project-card h3 { margin-bottom: 10px; }
.project-card p { color: gray; line-height: 1.6; margin-bottom: 15px; }
.project-links a { color: var(--primary-color); text-decoration: none; font-weight: 600; margin-right: 15px; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info a { color: var(--primary-color); text-decoration: none; }
.social-links { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.social-links a { background: var(--card-bg); padding: 8px 15px; border-radius: 5px; color: var(--text-color); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group input, .input-group textarea {
    padding: 15px; border-radius: 10px; border: 1px solid rgba(128,128,128,0.3);
    background: var(--card-bg); color: var(--text-color); outline: none; font-family: 'Inter', sans-serif;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary-color); }

/* Responsive */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 50px; }
    .hero-content h1 { font-size: 2.5rem; }
    .profile-img { width: 300px; height: 300px; margin-top: 30px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .cta-buttons { justify-content: center; }
}
@media (max-width: 600px) {
    .nav-links { display: none; } /* Mobile menu needs JS, but for now keeping it simple */
    .section-container { padding: 50px 5%; }
}