/* =========================================
   1. Variables & Reset (Red, Black, White Theme)
   ========================================= */
:root {
    /* Red / Black / White Palette */
    --bg-color: #080606;          /* Deep black base */
    --bg-color-light: #150909;    /* Dark card background */
    --bg-surface: rgba(255, 255, 255, 0.04); /* Soft glass surface */
    --text-primary: #f7f7f7;      /* Clean white text */
    --text-secondary: #d6d6d6;    /* Soft light gray for secondary text */
    --accent-color: #ff1f2b;      /* Bold red accent */
    --accent-glow: rgba(255, 31, 43, 0.16); /* Subtle red glow */
    --border-color: #590000;      /* Dark red border */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    background: radial-gradient(circle at top left, rgba(255, 31, 43, 0.09), transparent 18%),
                radial-gradient(circle at bottom right, rgba(255, 31, 43, 0.08), transparent 16%),
                linear-gradient(180deg, #080606 0%, #010101 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; color: var(--accent-color); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: #ffffff;
}

/* =========================================
   3. Layout
   ========================================= */
.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem 2rem;
    flex: 1;
}

.hero-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.hero-card img {
    display: block;
    margin: 0 auto 2rem auto;
}

.hero-copy {
    text-align: center;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #e01b29;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 31, 43, 0.12);
}

.page-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 4rem;
    box-shadow: 0 25px 70px -35px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.page-card h1 {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    text-align: center;
}

.page-card h2 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.page-card p {
    color: var(--text-secondary);
    text-align: center;
}

.page-card .social-links ul {
    justify-content: center;
}

.resume-intro {
    margin-bottom: 1rem;
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.resume-section:first-of-type h4 {
    margin-top: 1.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem;
    transition: var(--transition);
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.75);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tech-stack {
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: 600;
}

.section-title {
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

#email {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background-color: rgba(0, 0, 0, 0.95); /* Solid black navigation background */
    backdrop-filter: blur(10px); 
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.65rem 0.9rem;
    position: relative;
    border-radius: 999px;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    background: rgba(255, 31, 43, 0.1);
}

/* Sliding underline effect for navigation */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* =========================================
   5. Index Page Specific
   ========================================= */
#me {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Circular avatar */
    border: 3px solid var(--accent-color);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    display: block;
}

#desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    text-align: center;
}

#college {
    color: var(--accent-color);
    font-weight: 600;
}

/* =========================================
   6. Resume List & Item Styles (Work Experience & Education)
   ========================================= */
.resume-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resume-item {
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resume-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 31, 43, 0.1);
}

.resume-info {
    margin-bottom: 0.8rem;
}

.resume-info h5 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.resume-company {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.resume-dates {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.resume-responsibilities li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
}

.resume-responsibilities li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .resume-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   7. Resume Page Specific
   ========================================= */
h4 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Decorative line next to h4 headings */
h4::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    margin-left: 1rem;
    background-color: var(--border-color);
}

.social-links ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0;
}

/* Button-style social links */
.social-links a {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--accent-glow);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    background-color: var(--bg-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.skill-category h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Individual Skill Tag Style */
.skill-tags span {
    background-color: rgba(255, 30, 56, 0.1); /* Subtle red tint */
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

.domain-knowledge {
    background-color: var(--bg-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.domain-knowledge h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.domain-knowledge .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.languages-domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .languages-domain-grid {
        grid-template-columns: 1fr;
    }
}

.languages-section {
    background-color: var(--bg-color-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.languages-section h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 31, 43, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.language-item:hover {
    background-color: rgba(255, 31, 43, 0.1);
    border-color: var(--accent-color);
}

.language-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.language-level {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    background-color: rgba(255, 31, 43, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

/* =========================================
   8. Footer
   ========================================= */
footer p {
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    html { font-size: 14px; }
    h1 { font-size: 2rem; }
    .container { padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem 1.5rem; }
    nav { gap: 1rem; }
    #me { width: 120px; height: 120px; }
}