/* General Styles */
body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    padding-top: 70px; /* Adjust for fixed navbar height */
    color: #333; /* Darker text for better readability */
    background-color: #f4f7f6; /* Light off-white background */
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #ffffff !important; /* White navbar background */
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #007bff !important; /* Primary color for brand */
}

.navbar-brand img {
    border-radius: 8px; /* Slightly rounded logo */
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #555 !important; /* Slightly lighter nav link color */
    margin-left: 15px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important; /* Primary color on hover/active */
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 123, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/hero-background.jpg') no-repeat center center/cover;
    min-height: 90vh; /* Taller hero section */
    color: white;
    position: relative;
    overflow: hidden; /* For potential particle effects */
}

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

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem; /* Larger heading */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.6rem; /* Larger lead text */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px; /* Pill-shaped button */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.hero-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #007bff;
}

section .lead {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 50px;
}

/* Services Section */
#services .card {
    border: none;
    border-radius: 15px; /* More rounded cards */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    overflow: hidden; /* For icon background effect */
    position: relative;
}

#services .card:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 50%;
    transition: all 0.5s ease;
}

#services .card:hover:before {
    transform: scale(1.5);
    opacity: 0.7;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

#services .card-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

#services .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

#services .card-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Languages & Technologies Section */
#languages {
    background-color: #f4f7f6; /* Consistent light background */
}

.tech-icon-item {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tech-icon-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.icon-wrapper {
    display: inline-flex; /* Changed to inline-flex for better img alignment */
    align-items: center; /* Vertically center image if its height is less than wrapper */
    justify-content: center; /* Horizontally center image */
    padding: 10px; /* Adjusted padding for badges */
    background-color: #ffffff;
    border-radius: 12px; /* Slightly less rounded for a more modern badge feel */
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Removed fixed color as badges have their own */
    /* min-height: 60px; */ /* Ensure a minimum height if badges are small */
    /* min-width: 120px; */ /* Ensure a minimum width for badge display */
}

.icon-wrapper img {
    height: auto; /* Allow badge to determine its height based on content */
    max-width: 100%; /* Ensure badge fits within wrapper */
    display: block; /* Remove extra space below image */
}

.tech-icon-item:hover .icon-wrapper {
    transform: translateY(-6px) scale(1.05); /* Adjusted hover effect */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* No background-color change on hover to preserve badge colors */
}

.tech-icon-item h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-top: 15px;
}

/* About Us Section */
#about {
    background-color: #ffffff; /* White background for contrast */
}

#about img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#about p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Contact Section */
#contact form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#contact .form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

#contact .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

#contact .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

/* Footer */
footer {
    background-color: #2c3e50; /* Darker footer */
    color: #ecf0f1; /* Lighter text for footer */
    padding: 40px 0;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Cookie Consent Popup */
.cookie-consent-popup {
    position: absolute;
    bottom: 15px; 
    right: 20px; 
    background-color: rgba(33, 37, 41, 0.85); 
    color: #f8f9fa; 
    padding: 0.6rem 1rem;
    border-radius: 6px; 
    z-index: 1055; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    max-width: 280px; 
    border-left: 3px solid #007bff; 
}

.cookie-consent-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}


.cookie-content p {
    margin: 0;
    font-size: 0.8rem; /* Smaller font */
    line-height: 1.4;
}

.cookie-content a {
    color: #2fb5d2; 
    text-decoration: underline;
    font-weight: 600;
}

.cookie-content a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive adjustments for cookie popup */
@media (max-width: 768px) {
    .cookie-consent-popup {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 576px) { /* Adjust for smaller screens */
    .cookie-consent-popup {
        padding: 0.5rem 0.8rem;
        bottom: 10px;
    }
    .cookie-content p {
        font-size: 0.75rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add a subtle animation to section headings on scroll (requires JS) */
.section-title-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section .lead {
        font-size: 1.4rem;
    }
    section h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust for smaller navbar */
    }
    .hero-section {
        min-height: 70vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
    section .lead {
        font-size: 1.1rem;
    }
    #services .card:before {
        display: none; /* Hide decorative element on smaller screens if it causes layout issues */
    }
}
