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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e3f2fd;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

.navbar .nav-link {
    color: #fff !important;
    transition: color 0.3s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:active {
    color: #000 !important; /* Black highlight */
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-placeholder {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.about-placeholder {
    background: #f8f9fa;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e9ecef;
}

/* Portfolio Section */
.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.highlight-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-card p {
    color: #666;
    margin: 0;
}

/* Scale down Portfolio section icons to half size */
.highlight-card i {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
}

/* Resume Section */
.resume-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.resume-section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.resume-section p {
    margin-bottom: 0.5rem;
}

.resume-section ul {
    margin-bottom: 0;
}

.resume-section ul li {
    margin-bottom: 0.5rem;
}

/* Blog Section */
.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-meta {
    margin-bottom: 1.5rem;
}

.blog-content {
    line-height: 1.8;
}

/* Gallery, Testimonials, Certificates Placeholders */
.gallery-placeholder,
.testimonials-placeholder,
.certificates-placeholder,
.downloadables-placeholder {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.gallery-placeholder,
.gallery-placeholder * {
    color: #222 !important;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-item i {
    width: 30px;
    text-align: center;
}

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

.contact-item a:hover {
    color: #667eea;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

footer p.mb-2 {
    font-size: 2rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .profile-placeholder {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }
    
    .about-placeholder {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }
    
    .highlight-card {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .resume-section,
    .blog-post,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
} 

section:not(.hero-section) {
    background: linear-gradient(to bottom, #5f2fd4 0%, #1da1f2 100%);
    color: #fff;
}

section:not(.hero-section) h1,
section:not(.hero-section) h2,
section:not(.hero-section) h3,
section:not(.hero-section) h4,
section:not(.hero-section) h5,
section:not(.hero-section) h6,
section:not(.hero-section) p,
section:not(.hero-section) li,
section:not(.hero-section) span,
section:not(.hero-section) a,
section:not(.hero-section) label,
section:not(.hero-section) .lead {
    color: #fff !important;
} 

.detail-item,
.detail-item * {
    color: #222 !important;
} 

.contact-info,
.contact-info * {
    color: #222 !important;
} 

.about-details .detail-item,
.about-details .detail-item * {
    color: #222 !important;
} 

.portfolio-content .highlight-card,
.portfolio-content .highlight-card * {
    color: #222 !important;
} 

.resume-content .resume-section,
.resume-content .resume-section * {
    color: #222 !important;
} 

.blog-post, .blog-post *,
.gallery-placeholder, .gallery-placeholder *,
.testimonials-placeholder, .testimonials-placeholder *,
.certificates-placeholder, .certificates-placeholder * {
    color: #222 !important;
} 

.blog-post .blog-content,
.blog-post .blog-content *,
.blog-post .blog-meta,
.blog-post .blog-meta * {
    color: #222 !important;
} 

.contact-form,
.contact-form * {
    color: #222 !important;
}

.contact-form input,
.contact-form textarea {
    color: #222 !important;
}

.contact-form ::placeholder {
    color: #222 !important;
    opacity: 1;
} 

.contact-info .contact-item,
.contact-info .contact-item * {
    color: #222 !important;
} 

/* Blog section text color override */
#blog .blog-title,
#blog .blog-meta,
#blog .blog-content .lead,
#blog .blog-content p {
    color: #000 !important;
} 

/* Gallery section text color override */
#gallery .gallery-placeholder p {
    color: #000 !important;
} 

/* Testimonials section text color override */
#testimonials .testimonials-placeholder p {
    color: #000 !important;
}

/* Certificates & Awards section title color override */
#certificates .section-title {
    color: #fff !important;
} 

/* Certificates section text color override */
#certificates .certificates-placeholder p {
    color: #000 !important;
} 

/* Double the size of Certificates & Awards section title */
#certificates .section-title {
    font-size: 1.5rem !important;
} 

/* Enlarge Certificates & Awards section title by 100% */
#certificates .section-title {
    font-size: 3rem !important;
} 

/* Sub Navigation Custom Style */
.sub-navbar {
    background: linear-gradient(180deg, #27a5f9 0%, #23a2f6 100%);
    color: #fff !important;
}
.sub-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s;
}
.sub-navbar .nav-link:hover,
.sub-navbar .nav-link:focus {
    color: #e3f2fd !important;
    text-decoration: underline;
} 

/* Minimized About Section */
#about.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
#about .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
#about .title-underline {
    width: 40px;
    height: 3px;
    margin-bottom: 0.5rem;
}
.about-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.about-content .lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.about-details {
    margin-top: 0.5rem;
}
.detail-item {
    padding: 6px 10px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.detail-item i {
    font-size: 1rem;
    width: 22px;
    margin-right: 8px;
}
.about-image img {
    max-width: 120px !important;
    border-width: 2px !important;
}
@media (max-width: 768px) {
    #about .section-title {
        font-size: 1.1rem;
    }
    .about-image img {
        max-width: 80px !important;
    }
} 

/* Minimized Main Sections */
section.py-5, section.bg-light.py-5, #portfolio.py-5, #resume.py-5, #blog.py-5, #gallery.py-5, #testimonials.py-5, #certificates.py-5, #contact.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.title-underline {
    width: 40px;
    height: 3px;
    margin-bottom: 0.5rem;
}
.resume-section-title, .blog-title, .gallery-placeholder, .testimonials-placeholder, .certificates-placeholder, .contact-info {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.resume-section p, .blog-post, .gallery-placeholder p, .testimonials-placeholder p, .certificates-placeholder p, .contact-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.1rem;
    }
} 

/* Further Minimized Main Sections (20% smaller) */
section.py-5, section.bg-light.py-5, #portfolio.py-5, #resume.py-5, #blog.py-5, #gallery.py-5, #testimonials.py-5, #certificates.py-5, #contact.py-5 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
}
.section-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.title-underline {
    width: 32px;
    height: 2.5px;
    margin-bottom: 0.4rem;
}
.resume-section-title, .blog-title, .gallery-placeholder, .testimonials-placeholder, .certificates-placeholder, .contact-info {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}
.resume-section p, .blog-post, .gallery-placeholder p, .testimonials-placeholder p, .certificates-placeholder p, .contact-info p {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 0.88rem;
    }
} 

/* Enlarge About section name and description by 10% */
.about-content h3 {
    font-size: 1.21rem;
}
.about-content .lead {
    font-size: 1.045rem;
} 

/* Double the size of My Work & Portfolio section title */
#portfolio .section-title {
    font-size: 3rem !important;
}
#portfolio .title-underline {
    height: 8px;
    width: 160px;
} 

/* Double the size of About Me and Mr. Ramraj Rajbanshi */
#about .section-title {
    font-size: 3rem !important;
}
.about-content h3 {
    font-size: 2.42rem !important;
} 

/* Double the size of About section image and its circle */
.about-image {
    width: 960px;
    height: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    border: 8px solid #e9ecef;
    background: #f8f9fa;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    border-radius: 50%;
    border: none;
}
@media (max-width: 768px) {
    .about-image {
        width: 640px;
        height: 640px;
    }
} 

/* Double the size of About section image once more */
.about-image img {
    max-width: 960px !important;
}
@media (max-width: 768px) {
    .about-image img {
        max-width: 640px !important;
    }
} 

/* Minimize space between My Work & Portfolio and Current Position to 0.5 inch */
#portfolio .section-title {
    margin-bottom: 0.25in !important;
}
#portfolio .portfolio-content h3 {
    margin-top: 0.25in !important;
} 

/* Minimize Gallery placeholder to half size */
.gallery-placeholder {
    padding: 1rem !important;
}
.gallery-placeholder i {
    font-size: 2.5rem !important;
}
.gallery-placeholder p {
    font-size: 0.7rem !important;
} 

/* Minimize Testimonials placeholder to half size */
.testimonials-placeholder {
    padding: 1rem !important;
}
.testimonials-placeholder i {
    font-size: 2.5rem !important;
}
.testimonials-placeholder p {
    font-size: 0.7rem !important;
} 

/* Double the font size of Gallery placeholder text */
.gallery-placeholder p {
    font-size: 1.4rem !important;
} 

/* Double the font size of only the first paragraph in Gallery placeholder */
.gallery-placeholder p:first-child {
    font-size: 2.8rem !important;
} 

/* Minimize Get in Touch (Contact) section area and icon size */
#contact.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.contact-info {
    padding: 0.5rem !important;
}
.contact-info i {
    font-size: 1.2rem !important;
} 

/* Beautify and minimize line spacing in Get in Touch section */
.contact-info p {
    margin-bottom: 0.3rem !important;
    line-height: 1.3 !important;
}
.contact-info .contact-item {
    margin-bottom: 0.4rem !important;
    padding: 0.4rem 0.7rem !important;
} 

/* Colorful icon backgrounds for icon boxes from Gallery to last section */
.gallery-placeholder i {
    background: #4f8cff;
    color: #fff !important;
    border-radius: 16px;
    padding: 0.5em 0.7em;
    display: inline-block;
}
.testimonials-placeholder i {
    background: #ffb84f;
    color: #fff !important;
    border-radius: 16px;
    padding: 0.5em 0.7em;
    display: inline-block;
}
.certificates-placeholder i {
    background: #4fd6b8;
    color: #fff !important;
    border-radius: 16px;
    padding: 0.5em 0.7em;
    display: inline-block;
}
.contact-info i {
    background: #ff4f81;
    color: #fff !important;
    border-radius: 16px;
    padding: 0.5em 0.7em;
    display: inline-block;
} 

/* Light sky blue theme for all icon boxes */
.about-details .detail-item i,
.highlight-card i,
.gallery-placeholder i,
.testimonials-placeholder i,
.certificates-placeholder i,
.contact-info i {
    background: #b3e5fc !important;
    color: #fff !important;
    border-radius: 16px;
    padding: 0.5em 0.7em;
    display: inline-block;
} 

/* Linkable highlighted icons for icon boxes */
.icon-link {
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    border-radius: 16px;
    display: inline-block;
}
.icon-link:hover i {
    background: #4fc3f7 !important;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
    color: #fff !important;
} 

/* Match About section image to Home section profile image */
.about-image {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    border: none;
    background: none;
    overflow: visible;
}
.about-image img {
    max-width: 300px !important;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #f8f9fa;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .about-image img {
        max-width: 200px !important;
    }
} 

/* Scale down Certificates, Get in Touch, and Downloadables sections by 50% */
#certificates.py-5, #contact.py-5, #downloadables.py-5 {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}
.certificates-placeholder, .contact-info, .downloadables-placeholder {
    padding: 0.5rem !important;
}
.certificates-placeholder i, .downloadables-placeholder i, .contact-info i {
    font-size: 1.25rem !important;
    padding: 0.3em 0.5em !important;
}
.certificates-placeholder p, .downloadables-placeholder p, .contact-info p, .contact-info span, .contact-info a {
    font-size: 0.7rem !important;
}
#certificates .section-title, #contact .section-title, #downloadables .section-title {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
}
#certificates .title-underline, #contact .title-underline, #downloadables .title-underline {
    width: 20px;
    height: 2px;
    margin-bottom: 0.2rem;
} 

/* Match Certificates & Awards section title font size to Testimonials & Reviews */
#certificates .section-title {
    font-size: 2.5rem !important;
} 

/* Reduce Certificates & Awards section title font size to half */
#certificates .section-title {
    font-size: 1.25rem !important;
} 

/* Match Get in Touch section title font size to Certificates & Awards */
#contact .section-title {
    font-size: 1.25rem !important;
} 

/* Match Downloadable Resources section title font size to Get in Touch */
#downloadables .section-title {
    font-size: 1.25rem !important;
} 

/* Make both boxes in Get in Touch section equal size */
#contact .row {
    display: flex;
    align-items: stretch;
}
#contact .contact-info, #contact .contact-form {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
} 

/* Enlarge Downloadable Resources icon size by 300% */
.downloadables-placeholder i {
    font-size: 3.75rem !important;
} 

/* Ensure folder structure section is visible and readable */
#grade12-folders, #grade12-folders * {
    color: #222 !important;
}
#grade12-folders a {
    color: #d32f2f !important;
}
#grade12-folders i.fa-file-pdf {
    color: #d32f2f !important;
} 