/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 50px;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/image1.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 80px 0;
    min-height: 100vh; /* Full height on desktop */
}

.intro-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.intro-section .lead {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.intro-section .features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-item {
    font-size: 1.1rem;
}

.feature-item i {
    color: #ffc107;
    margin-right: 10px;
}

/* Services Section */
.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: #417fc2;
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-card ul li:before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #417fc2;
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    color: #417fc2;
    margin-bottom: 15px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.contact-item a {
    color: #417fc2;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.emergency-text {
    color: #dc3545;
    font-weight: 600;
    margin-top: 5px;
}

/* Social Links */
.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #417fc2 !important;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.about-image {
    position: relative;
    display: inline-block;
}

.margin-top {
    margin-top: 50px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #417fc2;
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.about-content {
    padding: 20px;
    text-align: justify;
}

.value-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    color: #417fc2;
    font-size: 2rem;
    margin-bottom: 15px;
}

.value-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.experience-badge-inline {
    background: #417fc2;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
}

.experience-badge-inline .years {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin-right: 10px;
}

.experience-badge-inline .text {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Responsive adjustments for about section */
@media (max-width: 991px) {
    .experience-badge {
        bottom: 20px;
        right: 20px;
        width: 100px;
        height: 100px;
    }

    .experience-badge .years {
        font-size: 1.75rem;
    }

    .experience-badge .text {
        font-size: 0.8rem;
    }

    .about-content {
        text-align: center;
        margin-top: 30px;
    }

    .about-content p {
        text-align: justify;
    }
    
    .experience-badge-inline {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-content {
        text-align: center;
    }

    .about-content p {
        text-align: justify;
    }

    .value-item {
        text-align: center;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .intro-section {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url('../images/image1.png') no-repeat center center;
        background-size: 200% auto; /* Zoom out by showing more of the image */
        background-position: center center;
        padding: 40px 0;
        min-height: 60vh;
    }

    .intro-section .display-4 {
        font-size: 2rem; /* Smaller heading */
    }
    
    .intro-section .lead {
        font-size: 1rem; /* Smaller text */
        margin-bottom: 20px; /* Reduced margin */
    }
    
    .intro-section .features {
        gap: 10px; /* Reduced gap between features */
    }
    
    .feature-item {
        font-size: 0.9rem; /* Smaller feature text */
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
}


/* Global Styles */
h2 {
    margin-top: 5px;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

/* Navigation brand name spacing */
.navbar-brand {
    letter-spacing: 3px; /* Adds space between letters */
}

/* Logo styles */
.navbar-logo {
    height: 40px;
    width: auto;
}

.footer-logo-img {
    height: 150px;
    width: auto;
    margin-right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 30px;
    }
    
    .footer-logo-img {
        height: 100px;
        margin-bottom: 15px;
    }
}

/* Reduce spacing between elements */
.footer p {
    line-height: 1.4;
}

/* Footer styles */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

.footer-logo-img {
    height: 150px;
    width: auto;
}

.footer-info {
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0px;
    }

    .footer-logo-img {
        height: 250px;
        margin-left: 20px;
    }

    .footer-info {
        text-align: center;
    }
}

/* Navigation bar color */
.navbar {
    background-color: rgb(58, 109, 139) !important; /* Override Bootstrap's bg-dark */
    padding: 0.3rem 1rem;
    height: 50px;
    min-height: unset;
    margin-bottom: 0; /* Ensure no margin at bottom */
    border-bottom: none; /* Remove any border if present */
}

/* Footer color */
footer {
    background-color: rgb(58, 109, 139) !important; /* Override Bootstrap's bg-dark */
}

/* Large screens */
@media (max-width: 1300px) {
    .intro-section {
        background-size: 130% auto; /* Slightly zoomed out for large screens */
    }
}

/* Tablets */
@media (max-width: 768px) {
    .intro-section {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url('../images/image1.png') no-repeat center center;
        background-size: 150% auto;
        background-position: center center;
        padding: 40px 0;
        min-height: 60vh;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .intro-section {
        background-size: 200% auto;
        min-height: 50vh;
        padding: 30px 0;
    }
}

/* Night Mode Styles */
/* About section */
body.night-mode .about-section {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.night-mode .value-item {
    background: #333333;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

body.night-mode .value-item h4 {
    color: #ffffff;
}

body.night-mode .value-item i {
    color: #4a9eff;
}

/* Services section */
body.night-mode #services {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.night-mode .service-card {
    background: #333333;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

body.night-mode .service-card h3 {
    color: #ffffff;
}

body.night-mode .service-card ul li {
    color: #ffffff;
}

body.night-mode .service-icon {
    color: #4a9eff;
}

/* Contact section */
body.night-mode .contact-section {
    background-color: #2d2d2d !important;
    color: #ffffff;
}

body.night-mode .contact-card {
    background: #333333;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

body.night-mode .contact-item h4 {
    color: #ffffff;
}

body.night-mode .contact-item a {
    color: #4a9eff;
}

body.night-mode .contact-item i {
    color: #4a9eff;
}

/* Transitions */
.about-section,
#services,
.contact-section,
.value-item,
.service-card,
.contact-card,
.contact-item,
.service-icon {
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 1300px) {
    .intro-section {
        background-size: 130% auto;
    }
}

@media (max-width: 768px) {
    .intro-section {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url('../images/image1.png') no-repeat center center;
        background-size: 150% auto;
        min-height: 60vh;
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .intro-section {
        background-size: 180% auto;
        min-height: 50vh;
        padding: 30px 0;
    }
}

/* Light switch styles */
.light-switch {
    cursor: pointer;
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease;
    margin-top: 5px
}

#nightModeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-bottom: -10px;
}

.switch-on, .switch-off {
    fill: white;
    fill-opacity: 0.75;
    transition: opacity 0.3s ease;
}

.switch-on {
    opacity: 0;
}

.switch-off {
    opacity: 1;
}

body.night-mode .switch-on {
    opacity: 1;
}

body.night-mode .switch-off {
    opacity: 0;
}

#nightModeToggle:hover .light-switch {
    transform: scale(1.1);
}

#nightModeToggle:active .light-switch {
    transform: scale(0.95);
}

/* Switch state colors */
body.night-mode .switch-toggle rect[fill="#d0d0d0"] {
    fill: #b0b0b0;
}

/* Navigation bar size reduction */
.navbar-brand {
    font-size: 1rem;
    padding: 0.2rem 0; /* Added small vertical padding */
    line-height: 1.2; /* Slightly increased line height */
}

.nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem; /* Increased vertical padding slightly */
    line-height: 1.2;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .navbar-toggler {
        padding: 0.2rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .navbar-collapse {
        margin-top: 0.3rem;
    }
}

/* Ensure the content section connects with navbar */
.intro-section, /* or whatever your first content section is called */
main,
.content-wrapper {
    margin-top: 0; /* Remove top margin */
    padding-top: 0; /* Remove top padding */
}

/* If you're using a fixed navbar, adjust the body/content padding */
body {
    padding-top: 50px; /* Should match navbar height */
}

/* If using Bootstrap container, ensure no unwanted margins */
.container, 
.container-fluid {
    padding-top: 0;
}

/* Light mode dropdown */
.navbar-collapse {
    background-color: inherit;
}

/* Dark mode dropdown */
body.night-mode .navbar-collapse {
    background-color: inherit;
}

/* Reset any previous background colors first */
.navbar-collapse,
.navbar-collapse.show,
#navbarNav,
#navbarNav.show {
    background-color: initial;
}

/* Then set the correct color */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 50px; /* Match your navbar height exactly */
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        z-index: 1000;
        margin-top: 0; /* Remove any margin */
        border-top: 0; /* Remove any border */
    }
}

/* Target dropdown specifically with higher specificity and !important */
#navbarNav,
#navbarNav.show,
#navbarNav.collapsing,
.navbar .navbar-collapse,
.navbar .navbar-collapse.show,
.navbar .collapse.show {
    background-color: #3a6d8b !important;
}

@media (max-width: 991.98px) {
    #navbarNav,
    .navbar-collapse {
        position: absolute;
        top: 50px; /* Match your navbar height exactly */
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        z-index: 1000;
        margin-top: 0; /* Remove any margin */
        border-top: 0; /* Remove any border */
    }
}

/* Align night mode button to the left in dropdown */
@media (max-width: 991.98px) {
    #nightModeToggle {
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 8px; /* Added padding to move it slightly right */
    }
}

/* Make About Me cards bigger */
.about-content .card {
    min-height: 320px; /* Increase minimum height */
    padding: 1.5rem; /* More internal padding */
}

/* If needed, adjust the card image size */
.about-content .card img {
    height: 180px; /* Increase image height */
    object-fit: cover;
}

/* If you have card titles/text, adjust their size too */
.about-content .card-title {
    font-size: 1.5rem; /* Larger title */
    margin-bottom: 1rem;
}

.about-content .card-text {
    font-size: 1.1rem; /* Slightly larger text */
}

.dark-mode-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-20px); /* Initial position */
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100px;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Specific transitions */
    z-index: 1000;
    opacity: 0;
    will-change: transform, opacity; /* Optimize for animations */
}

.dark-mode-toggle.visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Final position */
}

.dark-mode-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

@media (max-width: 991.98px) {
    .dark-mode-toggle {
        position: absolute;
        left: 52%;
        transform: translateX(-50%);
        margin: 0;
        top: 0;
        height: 100%;
        display: flex; /* Changed from none to flex */
    }
    
    .navbar-collapse {
        margin-top: 50px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cookie-btn-accept {
    background-color: #3a6d8b;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #2c5269;
}

.cookie-btn-reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
} 