* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --text-color: #e2e8f0;
    --light-text: #cbd5e0;
    --bg-color: #1a202c;
    --white: #0f172a;
    --border-color: #334155;
    --accent: #3b82f6;
    --glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --glow-lg: 0 0 30px rgba(59, 130, 246, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Section */
.hero {
    background: linear-gradient(180deg, #0f172a 0%, #1a202c 100%);
    color: var(--text-color);
    padding: 3rem 40px;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--glow);
}

.hero .container {
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.95;
    font-weight: 500;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.hero .contact-line {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 1rem;
    color: var(--light-text);
}

.hero .contact-line a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .contact-line a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--accent);
}

/* About Section */
.about {
    padding: 2.5rem 40px;
    background-color: var(--primary-color);
}

.about h2,
.experience h2,
.skills h2,
.projects h2,
.education h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.about p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-text);
}

/* Experience Section */
.experience {
    padding: 2.5rem 40px;
    background-color: var(--secondary-color);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: var(--glow);
    page-break-inside: avoid;
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: var(--glow-lg);
    border-left-color: #60a5fa;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.experience-item h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.company {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.date {
    color: var(--light-text);
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
}

.responsibilities {
    list-style: none;
    margin: 1rem 0 0 0;
}

.responsibilities li {
    margin-bottom: 0.6rem;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.responsibilities li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* Skills Section */
.skills {
    padding: 2.5rem 40px;
    background-color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: var(--glow-lg);
    border-top-color: #60a5fa;
}

.skill-category h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.4rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Projects Section */
.projects {
    padding: 2.5rem 40px;
    background-color: var(--secondary-color);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: var(--glow-lg);
    border-left-color: #60a5fa;
}

.project-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-weight: 700;
}

.tech-stack {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.project-item .description {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Education Section */
.education {
    padding: 2.5rem 40px;
    background-color: var(--primary-color);
}

.education-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}

.education-item:hover {
    box-shadow: var(--glow-lg);
    border-left-color: #60a5fa;
}

.education-item h3 {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.institution {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.year {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 2rem 40px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    margin-top: 2rem;
    border-top: 2px solid var(--accent);
    box-shadow: var(--glow);
}

.contact p {
    font-size: 0.95rem;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.contact a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--accent);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 1.5rem 40px;
    font-size: 0.85rem;
    border-top: 2px solid var(--accent);
    box-shadow: var(--glow);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
        background: white !important;
    }
    
    .experience-item,
    .project-item,
    .education-item,
    .skill-category {
        page-break-inside: avoid;
        background: white !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .contact {
        page-break-inside: avoid;
        background: white !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .hero {
        background: white !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    h1, h2, h3, .hero h1, .hero .subtitle, .company, .tech-stack, .institution {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 2rem 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .contact-line {
        font-size: 0.85rem;
    }

    .about,
    .experience,
    .skills,
    .projects,
    .education,
    .contact {
        padding: 2rem 20px;
    }

    .about h2,
    .experience h2,
    .skills h2,
    .projects h2,
    .education h2 {
        font-size: 1.4rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
    }

    .date {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero,
    .about,
    .experience,
    .skills,
    .projects,
    .education,
    .contact {
        padding: 1.5rem 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .about h2,
    .experience h2,
    .skills h2,
    .projects h2,
    .education h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .hero .contact-line {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .experience-item,
    .project-item,
    .education-item {
        padding: 1rem;
    }

    .experience-item h3,
    .project-item h3 {
        font-size: 1rem;
    }

    .responsibilities li {
        font-size: 0.9rem;
    }
}
