/* --- 1. VARIABLES & THEMES --- */
:root {
    /* Soft Light Mode (Default) */
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --card-bg: #ffffff;
    --accent-color: #008080; /* Teal */
    --accent-hover: #005f5f;
    --nav-bg: rgba(245, 245, 245, 0.95);
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-color: #1f1f1f;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --accent-color: #00ced1; /* Neon Cyan */
    --accent-hover: #00a5a8;
    --nav-bg: rgba(31, 31, 31, 0.95);
    --shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- 2. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* --- 3. UTILITIES --- */
.section-padding {
    padding: 60px 10%;
}
.alt-bg {
    background-color: rgba(0,0,0,0.03);
}
[data-theme="dark"] .alt-bg {
    background-color: rgba(255,255,255,0.03);
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--accent-color);
}
.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.primary-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.primary-btn:hover {
    background-color: var(--accent-hover);
}
.secondary-btn {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 10px;
}
.secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.small-btn {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 5px 15px;
    margin-top: 15px;
    display: inline-block;
}
.small-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* --- 5. NAVBAR --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--accent-color);
}
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 6. HERO SECTION --- */
.hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
}
.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}
.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Hero Social Icons */
.socials {
    margin-top: 40px;
    display: flex;
    gap: 25px;
    /* Justify start for left alignment in hero */
    justify-content: flex-start; 
}
.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.socials a:hover {
    transform: translateY(-5px);
    color: var(--bg-color);
    background-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.socials a:hover .fa-linkedin, .socials a:hover .fa-github {
    color: white;
}

/* Hero Image (Round) */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-img {
    width: 400px;
    height: 400px;
    border-radius: 50%; /* This line makes it round */
    border: 5px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}
.hero-img:hover {
    transform: translateY(-5px);
}

/* --- 7. ABOUT SECTION --- */
.about-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.summary-box {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 800px;
}
.summary-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.summary-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Timeline/Education Title */
.timeline-title {
    margin-top: 40px;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.edu-card {
    background-color: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid transparent;
}
.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.edu-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.edu-card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.edu-card .institute { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; }
.edu-card .year { font-size: 0.9rem; color: var(--accent-color); font-weight: 600; margin-bottom: 10px; }
.edu-card .marks {
    background-color: var(--bg-color);
    padding: 8px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
}
.edu-card .marks span { color: var(--accent-color); font-weight: 700; }

/* --- 8. SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.skill-card {
    background-color: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
}
.skill-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- 9. PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
}
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-info h3 { margin-bottom: 10px; }
.project-info p { margin-bottom: 15px; flex-grow: 1; }
.tags { margin-bottom: 15px; }
.tags span {
    display: inline-block;
    background-color: var(--bg-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* --- 10. CONTACT SECTION --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}
.contact-info, form {
    flex: 1;
    min-width: 300px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}
.form-group { margin-bottom: 15px; }
input, textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--card-bg);
    border: 1px solid #ccc;
    color: var(--text-color);
    border-radius: 5px;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- 11. FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--nav-bg);
    font-size: 0.9rem;
}

/* --- 12. RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 968px) {
    /* Navbar */
    .nav-links { display: none; } /* Add hamburger JS later if needed */
    
    /* Hero */
    .hero { padding-top: 120px; }
    .hero-container {
        flex-direction: column-reverse; /* Image on top */
        text-align: center;
        gap: 30px;
    }
    .hero-content { text-align: center; }
    .socials { justify-content: center; }
    
    /* Hero Image (Smaller on Mobile) */
    .hero-img { width: 280px; height: 280px; }

    /* General */
    .section-padding { padding: 50px 5%; }
    .contact-container { flex-direction: column; }
    .summary-box { padding: 20px; }
}