body {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark gray for text readability */
    background-color: #F5F6F5; /* Light gray background for body */
    margin: 0;
    font-size: 1rem;
}

/* General Section Styling */
section {
    min-height: 50vh;
    padding: 3rem 1rem; /* Reduced padding for smaller screens */
}

/* Navbar */
.navbar {
    background-color: #4682B4; /* Steel Blue for navbar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    height: 2.5rem; /* Responsive logo size */
    max-width: 100%;
}

.navbar-nav .nav-link {
    color: #FFFFFF !important; /* White text for navbar links */
    transition: color 0.3s ease; /* Smooth color transition */
    font-size: 1rem;
}

.navbar-nav .nav-link:hover {
    color: #87CEEB !important; /* Light sky blue on hover */
}

/* Section Backgrounds */
#home, #about, #contact {
    background-color: #87CEEB; /* Light sky blue for sections */
}

#technical, #conclusion {
    background-color: #F5F6F5; /* Light gray for alternating sections */
}

/* Fade-In Animation for Sections */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styling */
.table {
    font-size: 1rem;
    border-color: #87CEEB; /* Light sky blue borders */
}

.table th {
    background-color: #87CEEB; /* Light sky blue header */
    color: #333333;
}

.table td {
    padding: 0.75rem; /* Reduced padding for smaller screens */
    vertical-align: middle;
    background-color: #FFFFFF; /* White cells for contrast */
}

/* Table Row Animation */
.animate-row {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.animate-row:hover {
    transform: scale(1.02); /* Slight scale on hover */
    background-color: #E6F3FA; /* Light sky blue tint */
}

/* Image Animation */
.animate-image {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.animate-image:hover {
    transform: scale(1.05); /* Gentle zoom on hover */
}

/* Button Styling */
.btn-primary {
    background-color: #87CEEB; /* Light sky blue for buttons */
    border-color: #87CEEB;
    color: #333333;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 1.5rem; /* Responsive padding */
    font-size: 1rem;
    min-width: 100px; /* Touch-friendly size */
}

.btn-primary:hover {
    background-color: #4682B4; /* Steel Blue on hover */
    border-color: #4682B4;
    color: #FFFFFF;
}

.btn-primary:disabled {
    background-color: #B0C4DE; /* Lighter blue when disabled */
    border-color: #B0C4DE;
    cursor: not-allowed;
}

/* Pulse Animation for Button */
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Form Styling */
.form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #4682B4; /* Steel Blue for footer */
    color: #FFFFFF;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    body {
        font-size: 0.9rem; /* Smaller text for mobile */
    }

    section {
        padding: 2rem 0.5rem; /* Further reduced padding */
    }

    .navbar-brand img {
        height: 2rem; /* Smaller logo on mobile */
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem; /* Smaller nav links */
    }

    h1 {
        font-size: 1.8rem; /* Smaller heading */
    }

    h2 {
        font-size: 1.5rem; /* Smaller section titles */
    }

    .lead {
        font-size: 1rem; /* Smaller lead text */
    }

    .table {
        font-size: 0.85rem; /* Smaller table text */
    }

    .table td {
        padding: 0.5rem; /* Tighter padding */
    }

    .animate-row:hover {
        transform: none; /* Disable scale on mobile to save performance */
    }

    .animate-image {
        max-height: 150px !important; /* Smaller images on mobile */
    }

    .btn-primary {
        padding: 0.4rem 1rem; /* Smaller button */
        font-size: 0.9rem;
    }

    .form-control, .form-label {
        font-size: 0.85rem; /* Smaller form elements */
    }

    footer {
        font-size: 0.85rem; /* Smaller footer text */
    }

    /* Stack technical highlights tables and images vertically */
    #technical .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.85rem; /* Even smaller text for very small screens */
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .animate-section {
        animation-duration: 0.4s; /* Faster animation on mobile */
    }

    .animate-pulse {
        animation: none; /* Disable pulse on very small screens */
    }
}