/* GENERAL & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
    /* LIGHT THEME (White & Pink) */
    --bg-main: #f8f8f8;
    --bg-sidebar: #eaeaea;
    --bg-card: #ffffff;
    --text-main: #121212;
    --text-muted: #444444;
    
    --pink-h2: #d6006b;
    --accent-pink: #ff1a8c;
    --accent-hover: #e60073;
    --border: #d0d0d0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    /* DARK THEME - Lighter shades of Black/Charcoal */
    --bg-main: #1e1e24;       /* Main scroll area: Dark charcoal */
    --bg-sidebar: #2b2b35;    /* Side panel: Lighter slate to help black icons stand out */
    --bg-card: #25252c;       /* Cards: Mid-tone */
    
    /* Text Colors */
    --text-main: #ffffff;     /* Normal text forced to pure white */
    --text-muted: #e0e0e0;    /* Slightly dimmed white for dates/subtexts */
    
    --pink-h2: #ff66b2;       /* Pink for Section Headers */
    
    --accent-pink: #ff3399;   /* Primary accent for buttons/scrollbars/intern headings */
    --accent-hover: #ff66b2;
    --border: #3f3f46;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    
    /* CUSTOM TRANSLUCENT PINK CURSOR */
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='12' fill='rgba(255, 105, 180, 0.4)' stroke='%23ff3399' stroke-width='2'/%3E%3C/svg%3E") 16 16, auto;
}

/* CUSTOM POINTER FOR LINKS & BUTTONS */
a, button, .icon, input, textarea {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8' fill='%23ff3399'/%3E%3C/svg%3E") 12 12, pointer;
}

/* =========================================
   CUSTOM PINK SCROLLBARS 
   ========================================= */

/* Global Scrollbar (Main Area) */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-pink);
    border-radius: 20px;
    border: 4px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-hover);
}

/* Sidebar Specific Scrollbar */
.sidebar::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
}

.sidebar::-webkit-scrollbar-thumb {
    border: 4px solid var(--bg-sidebar);
}

/* TYPOGRAPHY & COLORS */

/* Only H2 and main section titles use Modak now */
h2 {
    font-family: 'Modak', cursive;
    font-weight: 400;
    letter-spacing: 2px;
}

.logo-name {
    font-family: 'Modak', cursive;
    color: #d6006b !important; /* Hardcoded specific pink requested */
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.section-title {
    color: var(--pink-h2);
    font-size: 5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 60%;
    height: 6px;
    background-color: var(--accent-pink);
    border-radius: 4px;
}

/* Homogenized Clean Headings (SRTD Intern, Education, Skills, etc.) */
h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-pink);
    margin-bottom: 0.5rem;
}

/* For the smaller items under Education */
.sub-item-title {
    font-size: 1.2rem;
    color: var(--text-main);
}

p, li {
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: var(--text-main);
}

ul {
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* LAYOUT */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDEBAR */
.sidebar {
    width: 350px;
    background-color: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    z-index: 100;
    overflow-y: auto;
}

.profile-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--accent-pink);
    margin-bottom: 1rem;
}

.role {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 300;
}

.sidebar-btn-container {
    margin-top: 1.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: auto;
}

.nav-link {
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--bg-card);
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border);
    font-size: 1.1rem;
}

.nav-link:hover, .nav-link.active {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-2px);
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.icon:hover {
    opacity: 1;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 350px;
    padding: 4rem 5rem;
    flex: 1;
    max-width: 1400px;
}

.content-section {
    min-height: 80vh;
    padding-top: 2rem;
    margin-bottom: 4rem;
}

/* CARDS & CONTAINERS */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.card:hover {
    border-color: var(--accent-pink);
}

.highlight {
    color: var(--accent-pink);
    font-weight: 600;
}

/* About Grid */
.text-container {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.dates {
    color: var(--accent-pink);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Experience Flex Cards */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flex-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.img-container {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    flex-shrink: 0;
    width: 120px;
    display: flex;
    justify-content: center;
}

.company-img {
    max-width: 100%;
    height: auto;
}

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

.skills-grid p {
    margin-bottom: 0.8rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    border: 2px solid var(--accent-pink);
}

.btn-outline {
    background: transparent;
    color: var(--accent-pink);
}

.btn-outline:hover {
    background: rgba(255, 51, 153, 0.1);
}

.btn-filled {
    background: var(--accent-pink);
    color: #fff;
}

.btn-filled:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-direct {
    display: flex;
    gap: 1.5rem;
}

.direct-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #d6006b !important; /* Hardcoded specific pink requested */
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 51, 153, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 300px;
    }
    .main-content {
        margin-left: 300px;
        padding: 3rem;
    }
}

@media screen and (max-width: 850px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem;
    }
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        flex: 1 1 auto;
    }
    .main-content {
        margin-left: 0;
        padding: 2rem;
    }
    .section-title {
        font-size: 4rem;
    }
    .flex-card {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
    }
    .contact-direct {
        flex-direction: column;
    }
}