body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
}
body.light-mode {
    background-color: #f5f7fa;
    color: #232323;
}
body.light-mode .container,
body.light-mode .section,
body.light-mode .exp-card,
body.light-mode .skill-card,
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #fff;
    color: #232323;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light-mode .navbar,
body.light-mode .footer {
    background: #e3eaf2;
    color: #232323;
}
body.light-mode .navbar a,
body.light-mode .footer a {
    color: #0077b6;
}
body.light-mode .navbar a:hover,
body.light-mode .footer a:hover {
    color: #00bcd4;
}
body.light-mode .resume-btn,
body.light-mode .contact-btn {
    background: #0077b6;
    color: #fff;
}
body.light-mode .resume-btn:hover,
body.light-mode .contact-btn:hover {
    background: #00bcd4;
    color: #fff;
}
body.light-mode .theme-toggle {
    background: #e3eaf2;
    color: #0077b6;
}
body.light-mode .theme-toggle:hover {
    background: #00bcd4;
    color: #fff;
}
.navbar {
    width: 100%;
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.navbar li {
    margin: 0 20px;
}
.navbar a {
    color: #00bcd4;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    padding: 12px 0;
    display: block;
}
.navbar a:hover {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 20px 0;
    background: linear-gradient(90deg, #00bcd4 0%, #121212 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 24px rgba(0,255,255,0.08);
}
.avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    box-shadow: 0 0 24px #00bcd4;
    margin-bottom: 16px;
}
.container {
    width: 80%;
    margin: auto;
    background: #1e1e1e;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 20px;
}
header {
    text-align: center;
    padding: 20px 0;
}
h1, h2, .contact-info p, .section, li {
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
h1 {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
}
h2 {
    font-size: 1.5em;
    font-weight: 500;
}
h1:hover, h2:hover, .contact-info p:hover, li:hover {
    color: #00ffff;
    transform: translateY(-3px);
    text-shadow: 2px 2px 10px rgba(0, 255, 255, 0.7);
}
.contact-info {
    text-align: center;
    margin-bottom: 20px;
}
.section {
    margin-bottom: 20px;
    padding: 15px;
    background: #292929;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
    background: #3a3a3a;
    transform: translateY(-3px);
    box-shadow: 0px 4px 15px rgba(0, 255, 255, 0.5);
}
a {
    color: #00bcd4;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: underline;
    color: #00ffff;
}
ul {
    list-style-type: none;
    padding: 0;
}
.footer {
    text-align: center;
    padding: 20px 0;
    background: #181818;
    color: #aaa;
    font-size: 0.95em;
    border-radius: 0 0 10px 10px;
    margin-top: 30px;
}
.footer a {
    color: #00bcd4;
    margin: 0 8px;
}
.resume-btn {
    display: inline-block;
    background: #00bcd4;
    color: #121212;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    margin-top: 10px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.resume-btn i {
    margin-right: 8px;
}
.resume-btn:hover {
    background: #00ffff;
    color: #121212;
    box-shadow: 0 2px 12px #00ffff;
}
.theme-toggle {
    background: #232323;
    color: #00bcd4;
    border: none;
    border-radius: 50%;
    padding: 8px 12px;
    margin-left: 16px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.theme-toggle:hover {
    background: #00bcd4;
    color: #121212;
    box-shadow: 0 2px 12px #00ffff;
}
.footer a:hover {
    color: #00ffff;
}
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.exp-card {
    background: #232323;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,255,255,0.08);
    padding: 18px 16px;
    margin-bottom: 0;
}
.exp-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15em;
    font-weight: 700;
}
.exp-date {
    font-size: 0.95em;
    color: #00bcd4;
    font-weight: 400;
}
.exp-card ul {
    padding-left: 0;
}
.exp-card li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.exp-card i {
    margin-right: 10px;
    color: #00bcd4;
    min-width: 20px;
    text-align: center;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.skill-card {
    background: #232323;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,255,255,0.08);
    padding: 14px 10px;
    display: flex;
    align-items: center;
    font-size: 1.08em;
    font-weight: 500;
    flex-direction: column;
    align-items: flex-start;
}
.skill-card i {
    margin-right: 10px;
    color: #00bcd4;
    font-size: 1.3em;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #232323;
    color: #fff;
    font-size: 1em;
    margin-bottom: 2px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #00bcd4;
}
.contact-btn {
    background: #00bcd4;
    color: #121212;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.contact-btn i {
    margin-right: 8px;
}
.contact-btn:hover {
    background: #00ffff;
    color: #121212;
    box-shadow: 0 2px 12px #00ffff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 12px;
}
.gallery-card {
    background: #232323;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,255,255,0.08);
    padding: 10px;
    text-align: center;
}
.gallery-card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px #00bcd4;
}
.gallery-card p {
    margin: 0;
    font-size: 0.98em;
    color: #00bcd4;
}
/* PDF page break improvements */
.section {
    page-break-before: always;
    page-break-inside: avoid;
}
.section:first-of-type {
    page-break-before: auto;
}
p, ul, li, .exp-card, .skill-card, .gallery-card {
    page-break-inside: avoid;
}

@media (max-width: 800px) {
    .container {
        width: 98%;
        padding: 8px;
    }
    .navbar ul {
        flex-direction: column;
    }
    .navbar li {
        margin: 8px 0;
    }
    .experience-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
