/* Section background images for visual enhancement (moved from index.html) */
.section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}
#about.section {
    background-image: url('images/bg-about.jpg');
}
#skills.section {
    background-image: url('images/bg-skills.jpg');
}
#certifications.section {
    background-image: url('images/bg-certifications.jpg');
}
#projects.section {
    background-image: url('images/bg-projects.jpg');
}
#education.section {
    background-image: url('images/bg-education.jpg');
}
#hobbies.section {
    background-image: url('images/bg-hobbies.jpg');
}
#contact.section {
    background-image: url('images/bg-contact.jpg');
}
.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.72);
    z-index: -1;
}
@media (max-width: 700px) {
    .contact-form {
        width: 90vw !important;
        max-width: 95vw !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        padding-right: 4vw !important;
    }
    .section {
        background-attachment: scroll;
        background-size: cover;
    }
    .section::before {
        background: rgba(255,255,255,0.88);
    }
}

/* About Me section layout and font sizes (moved and unified) */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
.about-content > div:first-child {
    flex: 0 0 270px;
    max-width: 270px;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    padding-bottom: 1.5rem;
}
.about-content .profile-image {
    width: 22vw;
    max-width: 220px;
    min-width: 110px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    display: block;
    margin: auto;
}
.about-text {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 700px;
    padding-left: 2vw;
    padding-right: 2vw;
    font-size: 1.65rem !important;
    line-height: 1.6;
}
.about-text p {
    margin-bottom: 1em;
    font-size: 1.05rem;
    line-height: 1.6;
}
.about-text p:last-child {
    margin-bottom: 0;
}
@media (max-width: 700px) {
    .about-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .about-content > div {
        width: 100% !important;
        max-width: 100vw !important;
    }
    .about-content .profile-image {
        width: 38vw !important;
        max-width: 130px !important;
        min-width: 80px !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        margin-bottom: 0.5rem !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .about-text {
        font-size: 1.25rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 95vw !important;
    }
}

@media (min-width: 701px) {
    .about-text {
        font-size: 1.65rem !important;
    }
}

/* Hero section font size overrides */
.hero h1 {
    font-size: 2.3rem !important;
}
@media (max-width: 700px) {
    .hero h1 {
        font-size: 1.95rem !important;
    }
    .section h2 {
        font-size: 1.55rem !important;
        line-height: 1.28;
    }
}

/* Responsive Lisa HRC image size in hero section */
.hero .profile-image {
    width: 22vw !important;
    max-width: 220px !important;
    min-width: 110px !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}
@media (max-width: 700px) {
    .hero .profile-image {
        width: 38vw !important;
        max-width: 130px !important;
        min-width: 80px !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
}

/* Modal styles for image preview (moved from index.html) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
.modal.open {
    display: flex;
}
.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    padding: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    background: #fff;
}
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 2rem;
    color: #764ba2;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #b47ddb;
}

/* Image scroll styles (moved from index.html) */
.image-scroll-container {
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    scroll-behavior: smooth;
}
.scroll-arrow.left-arrow {
    position: fixed;
    left: 8px;
    bottom: 1.5rem;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 36px;
    height: 36px;
    z-index: 101;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: background 0.2s;
}
.scroll-arrow.right-arrow {
    position: fixed;
    right: 8px;
    bottom: 1.5rem;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 36px;
    height: 36px;
    z-index: 101;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: background 0.2s;
}
.scroll-arrow.left-arrow:active,
.scroll-arrow.right-arrow:active {
    background: #f0e6fa;
}
.image-scroll-track {
    display: flex;
    gap: 0;
    align-items: center;
    width: max-content;
    white-space: nowrap;
}
@keyframes image-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-66.666%);
    }
}
.image-scroll-track img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    background: #fff;
    border: 2px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 2rem;
}
.image-scroll-track img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(118,75,162,0.18);
    border-color: #764ba2;
}
@media (max-width: 600px) {
    .image-scroll-track img {
        width: 56px;
        height: 56px;
        margin-right: 1rem;
    }
}

/* Certifications grid and card styles (moved from inline) */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.cert-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(118,75,162,0.08);
    padding: 1.5rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.cert-icon {
    font-size: 2.1rem;
}
.cert-icon-blue { color: #667eea; }
.cert-icon-yellow { color: #f7b731; }
.cert-icon-green { color: #00b894; }
.cert-icon-orange { color: #e17055; }
.cert-icon-blue2 { color: #0984e3; }
.cert-icon-pink { color: #ff7675; }
.cert-icon-purple { color: #6c5ce7; }

/* Hobbies grid and card styles (moved from inline) */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.hobby-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}
.hobby-card h3 {
    margin-bottom: 0.5rem;
    color: #764ba2;
}
/* Hamburger menu and mobile nav styles */
@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 2vw;
        left: auto;
        width: 78vw;
        max-width: 340px;
        min-width: 180px;
        background: linear-gradient(135deg, #f5f5f7 80%, #e9e4f0 100%);
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 8px 32px rgba(118,75,162,0.13), 0 1.5px 8px rgba(0,0,0,0.08);
        z-index: 1000;
        padding: 0.25rem 0.5rem 0.25rem 0.5rem;
        gap: 0.1rem;
        border-radius: 0 0 18px 18px;
        border: 1.5px solid #e0e0e0;
        transition: box-shadow 0.2s, background 0.2s;
    }
    .nav-links li {
        margin: 0 !important;
        width: 100%;
    }
    .nav-links a {
        padding: 0.13rem 0.7rem 0.13rem 0.7rem !important;
        font-size: 1.08rem !important;
        color: #764ba2 !important;
        width: 100%;
        display: block;
        border-radius: 8px;
        background: transparent;
        text-align: right;
        font-weight: 500;
        letter-spacing: 0.01em;
        transition: background 0.18s, color 0.18s;
        margin-bottom: 0;
    }
    .nav-links a:active,
    .nav-links a:focus {
        background: #f0e6fa !important;
        color: #4b2e83 !important;
        border-radius: 8px;
    }
    .nav-links a:hover {
        background: #ede7f6 !important;
        color: #4b2e83 !important;
        border-radius: 8px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto;
        z-index: 1100;
        position: relative;
        color: #764ba2;
        width: 44px;
        height: 44px;
        padding: 0;
        box-shadow: none;
    }
    .hamburger svg {
        width: 32px;
        height: 32px;
        display: block;
    }
}
@media (min-width: 701px) {
    .hamburger {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 2rem;
    }
}
@media (max-width: 600px) {
    body {
        font-size: 1.08rem;
    }
}
/* Portfolio Site Styles - Lisa Hagin */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Add a professional background between sections */
.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(120deg, #f8fafc 0%, #e9e4f0 100%);
    opacity: 0.7;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-height: 4.2rem; /* Prevents layout shift during typing effect */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 5rem 0;
    background: white;
    position: relative;
    background-image: url('images/test.jpg'); /* Replace with your default image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.5); /* Reduced overlay for better test image visibility */
    z-index: 2;
    pointer-events: none;
}

.section > * {
    position: relative;
    z-index: 3;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 4px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 4px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #764ba2;
}

.dark-theme .project-title {
    color: #e0b3ff;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 4px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #764ba2, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.blog-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 700px) {
    .contact-content {
        display: flex;
        flex-direction: column;
    }
    .contact-info-section {
        order: 1;
    }
    .contact-form {
        order: 2;
    }
}

.contact-info-section {
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: #667eea;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #5a67d8;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.1);
}

/* Dark Theme */
.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .section {
    background: #1a1a2e;
    color: #e2e8f0;
}

.dark-theme .section:nth-child(even) {
    background: #16213e;
}

.dark-theme .section h2 {
    color: #fff !important;
}

.dark-theme .skill-card,
.dark-theme .project-card,
.dark-theme .blog-card {
    background: #2d3748;
    color: #e2e8f0;
}

.dark-theme .contact-form {
    background: #2d3748;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .form-group label {
    color: #e2e8f0;
}

.dark-theme footer {
    background: #1a202c;
}

/* Dark theme for hobbies */
.dark-theme .hobby-card {
    background: #23263a !important;
    color: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
}
.dark-theme .hobby-card h3 {
    color: #ffe066 !important;
}
.dark-theme .hobby-card p {
    color: #fff !important;
}
.dark-theme .hobby-card div {
    color: #ffe066 !important;
}

/* Dark theme for education section - improved contrast */
.dark-theme #education {
    /* background: #1a1a2e;
    color: #fff; */
}
.dark-theme #education h2 {
    color: #ffe066;
}
.dark-theme #education h3 {
    color: #ffe066;
}
.dark-theme #education p,
.dark-theme #education ul,
.dark-theme #education li {
    color: #fff !important;
}
.dark-theme #education img {
    background: #23263a;
    border: 2px solid #ffe066;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 6.5rem; /* Move above image scroll arrows */
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Education Section - Professional Look */
#education {
    /* background: linear-gradient(120deg, #f6f7fb 60%, #e9e4f0 100%); */
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(118,75,162,0.10);
    padding-bottom: 3.5rem;
    margin-bottom: 0; /* Reduced from 3rem to 0 to remove extra gap */
}
.education-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(118,75,162,0.10);
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border: 1.5px solid #e0e0e0;
}
.education-header img {
    width: 180px; /* Increased from 120px */
    height: 105px; /* Increased from 70px */
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #fff;
    padding: 6px;
    object-fit: contain;
    border: 1.5px solid #e0e0e0;
}
.education-header h3 {
    margin-bottom: 0.3rem;
    color: #764ba2;
    font-size: 1.35rem;
    font-weight: 700;
}
.education-header div > div {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.2rem;
}
.education-header div > div:last-child {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0;
}
.education-divider {
    border: none;
    border-top: 1.5px solid #e0e0e0;
    margin: 2.5rem 0 2rem 0;
}
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 0;
}
.education-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(118,75,162,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
    border: 1.5px solid #ececec;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.education-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(118,75,162,0.16);
    border-color: #d1b3ff;
}
.education-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #764ba2;
}
.education-card h4 {
    color: #764ba2;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.education-card p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
@media (max-width: 768px) {
    #education {
        border-radius: 0;
        box-shadow: none;
        padding-bottom: 2rem;
    }
    .education-header {
        padding: 1.2rem 1rem;
    }
    .education-grid {
        grid-template-columns: 1fr;
    }
}
/* Dark mode for professional education section */
.dark-theme #education {
    /* background: linear-gradient(120deg, #1a1a2e 60%, #23263a 100%); */
}
.dark-theme .education-header {
    background: #23263a;
    border: 1.5px solid #2d3748;
    box-shadow: 0 4px 24px rgba(118,75,162,0.18);
}
.dark-theme .education-header img {
    background: #23263a;
    border: 1.5px solid #ffe066;
}
.dark-theme .education-header h3 {
    color: #ffe066;
}
.dark-theme .education-header div > div {
    color: #e2e8f0;
}
.dark-theme .education-header div > div:last-child {
    color: #bdbdbd;
}
.dark-theme .education-divider {
    border-top: 1.5px solid #2d3748;
}
.dark-theme .education-card {
    background: #23263a !important;
    color: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
    border: 1.5px solid #2d3748;
}
.dark-theme .education-card h4,
.dark-theme .education-icon {
    color: #ffe066 !important;
}
.dark-theme .education-card p {
    color: #e2e8f0 !important;
}

/* Ensure hero image is never dehighlighted and prevent flicker during typing effect */
.hero .profile-image {
    filter: none !important;
    opacity: 1 !important;
    will-change: filter, opacity;
    backface-visibility: hidden;
}

/* Custom background for education section */
#education.section {
    background-image: url('images/tower-desktop.jpg'); /* Custom background for education section */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark mode adjustments for projects section */
.dark-theme #projects.section {
    color: #fff;
}
.dark-theme #projects .project-card,
.dark-theme #projects .project-content,
/* .dark-theme #projects .project-title, */
.dark-theme #projects .project-description,
.dark-theme #projects .project-link {
    color: #fff !important;
}

/* Get in Touch (Contact) section - Dark mode styles */
.dark-theme #contact,
.dark-theme #contact .contact-content,
.dark-theme #contact .contact-info-section,
.dark-theme #contact .contact-info,
.dark-theme #contact .contact-item,
.dark-theme #contact .contact-item a,
.dark-theme #contact h2,
.dark-theme #contact p,
.dark-theme #contact label {
    color: #fff !important;
}

/* Add ScheduALL API integration project card styles if needed (inherits from .project-card) */
   .image-scroll-container {
        width: 100vw;
        overflow: hidden;
        background: #f8f8f8;
        border-top: 1px solid #e0e0e0;
        padding: 1rem 0;
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 100;
    }
    .image-scroll-track {
        display: flex;
        gap: 2rem;
        align-items: center;
        will-change: transform;
        transition: none;
    }
    .image-scroll-track img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: #ddd;
    }
    @media (max-width: 600px) {
        .image-scroll-track img {
            width: 56px;
            height: 56px;
        }
    }
/* Modern Social Links Header Styling */
.social-links-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-links-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #764ba2 0%, #b47ddb 100%);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.15);
}

.social-links-header a:hover {
    background: linear-gradient(135deg, #b47ddb 0%, #764ba2 100%);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.25);
}

.social-links-header a:active {
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .social-links-header {
        gap: 0.8rem;
        order: -1;
    }
    
    .social-links-header a {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* Enhanced Header Navigation Container */
header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modern CTA Button Styling */
.cta-button {
    background: linear-gradient(135deg, #764ba2 0%, #b47ddb 100%);
    color: #fff !important;
    padding: 0.85rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3) !important;
    border: none !important;
}

.cta-button:hover {
    background: linear-gradient(135deg, #b47ddb 0%, #764ba2 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4) !important;
}

.cta-button:active {
    transform: translateY(-1px) !important;
}

/* Enhanced Project Cards */
.project-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #fff !important;
}

.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(118, 75, 162, 0.2) !important;
}

/* Modern Skill Cards */
.skill-card {
    background: linear-gradient(135deg, #fff 0%, #f9f7ff 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(118, 75, 162, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skill-card:hover {
    border-color: #764ba2 !important;
    box-shadow: 0 8px 24px rgba(118, 75, 162, 0.15) !important;
    transform: translateY(-4px) !important;
}

.skill-icon {
    background: linear-gradient(135deg, #764ba2 0%, #b47ddb 100%) !important;
    color: #fff !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    margin: 0 auto 1rem !important;
}

/* Skill Card Text Colors - Fix Readability */
.skill-card h3 {
    color: #222 !important;
    font-weight: 700 !important;
}

.skill-card p {
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Project Card Text Colors - Fix Readability */
.project-card h3 {
    color: #222 !important;
    font-weight: 700 !important;
}

.project-card p {
    color: #444 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.project-link {
    color: #764ba2 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.project-link:hover {
    color: #b47ddb !important;
    text-decoration: underline !important;
}

/* Dark Mode - Project Card Text Colors */
body.dark-theme .project-card h3 {
    color: #f5f5f7 !important;
}

body.dark-theme .project-card p {
    color: #d0d0d0 !important;
}

body.dark-theme .project-link {
    color: #b47ddb !important;
}

body.dark-theme .project-link:hover {
    color: #d4a5e8 !important;
}

/* Dark Mode - Skill Card Text Colors */
body.dark-theme .skill-card {
    background: rgba(50, 30, 80, 0.4) !important;
    border-color: rgba(180, 125, 219, 0.2) !important;
}

body.dark-theme .skill-card h3 {
    color: #f5f5f7 !important;
}

body.dark-theme .skill-card p {
    color: #d0d0d0 !important;
}

/* Dark Mode - Project Card Text Colors (Enhanced Contrast) */
body.dark-theme .project-card h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.dark-theme .project-card p {
    color: #e8e8e8 !important;
}

body.dark-theme .project-link {
    color: #d4a5e8 !important;
}

body.dark-theme .project-link:hover {
    color: #ffffff !important;
}

/* Dark Mode - Skill Card Text Colors (Enhanced Contrast) */
body.dark-theme .skill-card {
    background: rgba(50, 30, 80, 0.6) !important;
    border-color: rgba(180, 125, 219, 0.3) !important;
}

body.dark-theme .skill-card h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.dark-theme .skill-card p {
    color: #e8e8e8 !important;
}

/* Dark Mode - Project Card Background & Text Fix */
body.dark-theme .project-card {
    background: rgba(30, 20, 50, 0.8) !important;
    border: 1px solid rgba(180, 125, 219, 0.2) !important;
}

body.dark-theme .project-card h3 {
    color: #e8e8e8 !important;
    font-weight: 700 !important;
}

body.dark-theme .project-card p {
    color: #b8b8b8 !important;
}

body.dark-theme .project-link {
    color: #b47ddb !important;
}

body.dark-theme .project-link:hover {
    color: #d4a5e8 !important;
}

/* Modern Projects Section Styling */
#projects {
    background: linear-gradient(135deg, #f5f0fa 0%, #f9f7ff 100%);
}

#projects h2 {
    font-size: 2.2rem !important;
    color: #764ba2 !important;
    margin-bottom: 2.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    position: relative !important;
    padding-bottom: 1.5rem !important;
}

#projects h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #764ba2 0%, #b47ddb 100%);
    border-radius: 2px;
}

.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
    gap: 2.5rem !important;
    margin-bottom: 3.5rem !important;
}

/* Modern Project Card Styling */
.project-card {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.12) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    border: 1px solid rgba(118, 75, 162, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
}

.project-card:hover {
    transform: translateY(-12px) translate3d(0, 0, 0) !important;
    box-shadow: 0 20px 48px rgba(118, 75, 162, 0.25) !important;
    border-color: rgba(118, 75, 162, 0.15) !important;
}

.project-card .project-image {
    width: 100% !important;
    height: 240px !important;
    overflow: hidden !important;
    position: relative !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.project-card .project-image img,
.project-card .project-image div {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.project-card:hover .project-image img,
.project-card:hover .project-image div {
    transform: scale(1.08) !important;
}

.project-card .project-content {
    padding: 2rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.project-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.project-description {
    font-size: 0.95rem !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 1 !important;
}

.project-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #764ba2 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 2px solid transparent !important;
    width: fit-content !important;
}

.project-link:hover {
    color: #b47ddb !important;
    border-bottom-color: #764ba2 !important;
    transform: translateX(4px) !important;
}

/* Dark Mode Project Cards */
body.dark-theme #projects {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-theme #projects h2 {
    color: #d4a5e8 !important;
}

body.dark-theme #projects h2:after {
    background: linear-gradient(90deg, #b47ddb 0%, #764ba2 100%);
}

body.dark-theme .project-card {
    background: rgba(50, 40, 80, 0.6) !important;
    border-color: rgba(180, 125, 219, 0.2) !important;
}

body.dark-theme .project-card:hover {
    background: rgba(70, 50, 100, 0.8) !important;
    box-shadow: 0 20px 48px rgba(180, 125, 219, 0.15) !important;
}

body.dark-theme .project-title {
    color: #f5f5f7 !important;
}

body.dark-theme .project-description {
    color: #c0c0c0 !important;
}

body.dark-theme .project-link {
    color: #d4a5e8 !important;
}

body.dark-theme .project-link:hover {
    color: #ffffff !important;
    border-bottom-color: #d4a5e8 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #projects h2 {
        font-size: 1.8rem !important;
    }
    
    .project-card .project-image {
        height: 200px !important;
    }
    
    .project-card .project-content {
        padding: 1.5rem !important;
    }
}

/* Dark Mode - Project Text Color Override - White */
body.dark-theme .project-title {
    color: #ffffff !important;
}

body.dark-theme .project-description {
    color: #ffffff !important;
}

/* Dark Mode - Section Heading Color for Projects */
body.dark-theme #projects h2 {
    color: #a070c0 !important;
}

body.dark-theme #projects h2:after {
    background: linear-gradient(90deg, #8b5fb0 0%, #a070c0 100%) !important;
}

/* Dark Mode - Section Heading Color Override to Black */
body.dark-theme #projects h2 {
    color: #000000 !important;
}

body.dark-theme #projects h2:after {
    background: linear-gradient(90deg, #000000 0%, #333333 100%) !important;
}

/* Smaller Border Radius for All Containers */
.project-card {
    border-radius: 12px !important;
}

.skill-card {
    border-radius: 12px !important;
}

.skill-icon {
    border-radius: 8px !important;
}

.cert-card {
    border-radius: 12px !important;
}

.contact-form {
    border-radius: 12px !important;
}

button, input, textarea {
    border-radius: 8px !important;
}

.modal-content {
    border-radius: 12px !important;
}

.modal-content img {
    border-radius: 8px !important;
}
