body {
    font-family: "Roboto", sans-serif;
    padding-top: 56px;
    transition: background-color 0.2s, color 0.2s;
}

body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

body.dark-mode .navbar {
    background-color: #1e1e1e !important;
}

body.dark-mode .navbar-light .navbar-brand,
body.dark-mode .navbar-light .nav-link {
    color: #f0f0f0;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

body.dark-mode .dropdown-menu {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

body.dark-mode .dropdown-item {
    color: #f0f0f0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #3d3d3d;
}

#home {
    position: relative;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#about .card {
    transition: transform 0.3s, box-shadow 0.3s;
}

#about .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    height: 200px;
    object-fit: cover;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

footer {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0d6efd !important;
}

html {
    scroll-behavior: auto;
}

.navbar-nav {
    align-items: center;
}

#darkModeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    #darkModeToggle {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}