/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a{
    text-decoration: none;
    color: white;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-weight: 700;
}

h1 span {
    color: #3498db;
    position: relative;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 3px;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 15px;
    font-weight: 500;
}

h4, h5 {
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 10px;
}

/* Navigation bar styling */
.weather-input {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    border: 1px solid #3498db;
    padding: 6px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Logo container */
.weather-input .icon {
    margin-right: 20px;
    flex-shrink: 0;
}

/* Circular logo styling */
.weather-input .icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    /* border-bottom: 3px solid; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Logo hover effect */
.weather-input .icon img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #2c3e50;
}

/* Navigation buttons container */
.weather-input .nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
}

/* Navigation buttons */
.search-btn {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}
.search-btn a {
    text-decoration: none;
    color: white;
}
/* Separator */
.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 40px 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Weather data sections */
.weather-data {
    margin-bottom: 40px;
}

.current-weather {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.current-weather .details {
    flex: 1;
    padding: 30px;
    min-width: 300px;
}

.current-weather .icon {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
}

.current-weather .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.current-weather .icon img:hover {
    transform: scale(1.05);
}

.current-weather button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.current-weather button:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Offerings section */
.days-forecast {
    margin-bottom: 40px;
}

.days-forecast h2 {
    text-align: center;
    margin-bottom: 30px;
}
.days-forecast h3 {
    text-align: center;
    margin-bottom: 30px;
}
.days-forecast h4 {
    text-align: center;
    margin-bottom: 30px;
}

.weather-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.card {
    background: white;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Strategy section */
.strategy {
    text-align: center;
    margin-top: 30px;
}

.strategy img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact section */
#follow {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

#follow h2 {
    margin-bottom: 20px;
}

#follow h3 {
    margin-bottom: 15px;
}

#follow h4 {
    margin-bottom: 20px;
}

#last {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#last button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#last button:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .weather-input {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .weather-input .icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .weather-input .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .search-btn {
        width: calc(50% - 5px);
        margin: 5px 0;
    }
    
    .current-weather {
        flex-direction: column;
    }
    
    .current-weather:nth-child(even) {
        flex-direction: column-reverse;
    }
    
    .weather-card {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    #last {
        flex-direction: column;
        align-items: center;
    }
    
    #last button {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .search-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .weather-input .icon img {
        width: 50px;
        height: 50px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weather-data, .days-forecast, #follow {
    animation: fadeIn 0.8s ease-out;
}

/* Enhanced button styles */
button, .search-btn {
    position: relative;
    overflow: hidden;
}

button::after, .search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after, .search-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(200, 200);
        opacity: 0.3;
    }
    100% {
        transform: scale(300, 300);
        opacity: 0;
    }
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color:#2c3e50;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #3498db;
    color: white;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Dropdown arrow indicator */
.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
}

/* Responsive design for dropdown */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        margin: 5px 0;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }
    
    .dropdown-content a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dropdown doesn't affect other elements */
.nav-buttons {
    position: relative;
    z-index: 1001;
}

.search-btn.active {
  border-bottom: 4px solid #34495e; /* Blue border */
  font-weight: bold;                /* Highlight text */
}