@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


/* Light Mode (default) */
:root {
    --bg-overlay: #0360fb4d;
    --text-color: #ffffff;
    --nav-text: #f4d8d8;
    --brand-color: wheat;
    --button-bg: #ffffff;
    --button-text: #1680ac;
    --dot-active: #2696e9;
}

/* Dark Mode */
body.dark {
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --text-color: #eaeaea;
    --nav-text: #cccccc;
    --brand-color: #ffffff;
    --button-bg: #1e1e1e;
    --button-text: #ffffff;
    --dot-active: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

header {
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 200px;
    transition: 0.5s ease;
}

header .brand {
    color: var(--brand-color);
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

header .navigation {
    position: relative;
}

header .navigation .navigation-items {
    display: flex;
    align-items: center;
    gap: 30px;
}

header .navigation .navigation-items a {
    position: relative;
    color: var(--nav-text);
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

header .navigation .navigation-items a:before {
    content: '';
    position: absolute;
    background: white;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

header .navigation .navigation-items a:hover:before {
    width: 100%;
}

/* Header Search Styles */
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-search:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-search input {
    border: none;
    background: transparent;
    color: white;
    font-size: 0.9em;
    width: 200px;
    outline: none;
    transition: width 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
    width: 250px;
}

.header-search button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-search button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

section {
    padding: 108px 200px;
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: #2696e9;
}

.home:before {
    z-index: 777;
    content: '';
    position: absolute;
    background: var(--bg-overlay);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.home .content {
    z-index: 888;
    color: var(--text-color);
    width: 70%;
    margin-top: 50px;
    display: none;
}

.home .content.active {
    display: block;
}

.home .content h1 {
    font-size: 4em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 75px;
    margin-bottom: 40px;
}

.home .content h1 span {
    font-size: 1.2em;
    font-weight: 600;
}

.home .content p {
    margin-bottom: 65px;
}

.home .content a {
    background: var(--button-bg);
    padding: 15px;
    color: var(--button-text);
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
}

.home .media-icons {
    z-index: 888;
    position: absolute;
    right: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
}

.home .media-icons a {
    color: #fff;
    font-size: 1.6em;
    transition: 0.5s ease;
}

.home .media-icons a:not(:last-child) {
    margin-bottom: 20px;
}

.home .media-icons a:hover {
    transform: scale(1.5);
}

.home video {
    z-index: 000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.slider-navigation {
    z-index: 888;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(80px);
    margin-bottom: 12px;
}

.slider-navigation .nav-btn {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    transition: 0.5s ease;
}

.slider-navigation .nav-btn.active {
    background: var(--dot-active);
}

.slider-navigation .nav-btn:not(:last-child) {
    margin-right: 20px;
}

.slider-navigation .nav-btn:hover {
    transform: scale(1.2);
}

.video-slide {
    position: absolute;
    width: 100%;
    clip-path: circle(0% at 0 50%);
}

.video-slide.active {
    clip-path: circle(150% at 0 50%);
    transition: 2s ease;
    transition-property: clip-path;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.3em;
    cursor: pointer;
    margin-left: 20px;
    transition: 0.3s ease;
    position: absolute;
    right: 30px;
    z-index: 888;
}

.theme-toggle:before {
    height: 3px;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* ===== CITY EXPLORER SECTION ===== */

.city-explorer {
    min-height: 100vh;
    padding: 80px 200px;
    background: url('https://images.unsplash.com/photo-1626163450208-0fb18eb43b99?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.city-explorer:before {
    z-index: 0;
    content: '';
    position: absolute;
    background: var(--bg-overlay);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

body.dark .city-explorer {
    background: url('https://images.unsplash.com/photo-1626163450208-0fb18eb43b99?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.dark .city-explorer:before {
    background: var(--bg-overlay);
}

.explorer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.explorer-title {
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.explorer-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 50px;
}

/* Search Container */
.search-container {
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

/* Error Message */
.error-message {
    display: none;
    padding: 15px 25px;
    background: rgba(255, 107, 107, 0.2);
    border-left: 4px solid #ff6b6b;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.95em;
    animation: slideDown 0.3s ease;
    margin-bottom: 20px;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: #ffffff;
    font-size: 1.2em;
    gap: 10px;
}

.loading-spinner i {
    font-size: 1.5em;
}

/* Results Container */
.results-container {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1;
}

/* Weather Section */
.weather-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 0.9em;
}

.weather-content {
    display: flex;
    justify-content: center;
}

.weather-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 500px;
    transition: transform 0.3s ease;
}

body.dark .weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

body.dark .weather-main {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.weather-icon {
    width: 100px;
    height: 100px;
}

.weather-temp {
    display: flex;
    flex-direction: column;
}

.temp-value {
    font-size: 3.5em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

body.dark .temp-value {
    color: #8b9dff;
}

.temp-desc {
    font-size: 1.2em;
    color: #666;
    text-transform: capitalize;
    margin-top: 8px;
}

body.dark .temp-desc {
    color: #cccccc;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: #333;
}

body.dark .weather-detail-item {
    color: #ffffff;
}

.weather-detail-item i {
    width: 25px;
    color: #667eea;
    font-size: 1.2em;
}

body.dark .weather-detail-item i {
    color: #8b9dff;
}

/* Places Section */
.places-section {
    margin-top: 50px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.place-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark .place-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.place-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.place-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.place-card:hover .place-image img {
    transform: scale(1.1);
}

.place-distance {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 107, 107, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    font-size: 0.85em;
}

.place-info {
    padding: 25px;
}

.place-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

body.dark .place-name {
    color: #ffffff;
}

.place-kinds,
.place-address {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

body.dark .place-kinds,
body.dark .place-address {
    color: #cccccc;
}

.place-kinds i,
.place-address i {
    margin-top: 3px;
    color: #667eea;
    min-width: 15px;
}

body.dark .place-kinds i,
body.dark .place-address i {
    color: #8b9dff;
}

.no-places {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.no-places i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-places p {
    font-size: 1.2em;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1040px) {

    header {
        padding: 12px 20px;
    }

    section {
        padding: 100px 20px;
    }

    .home .media-icons {
        right: 15px;
    }

    header .navigation {
        display: none;
    }

    header .navigation.active {
        position: fixed;
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(1, 1, 1, 0.5);
    }

    header .navigation .navigation-items {
        background: #fff;
        opacity: 0.75;
        width: 600px;
        max-width: 600px;
        margin: 20px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 10px;
        box-shadow: 0 5px 25px black;
        gap: 20px;
    }

    header .navigation .navigation-items a {
        color: black;
        opacity: 1;
        font-size: 1.5em;
        margin: 0;
    }

    header .navigation .navigation-items a:before {
        background: black;
        height: 5px;
    }

    .header-search {
        width: 100%;
        background: rgba(0, 0, 0, 0.1);
    }

    .header-search input {
        width: 100%;
        color: #333;
    }

    .header-search input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

    .header-search button {
        background: rgba(0, 0, 0, 0.2);
        color: #333;
    }

    .menu-btn {
        background: url(images/menu.svg)no-repeat;
        background-size: 30px;
        background-position: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: 0.5s ease;
    }

    .menu-btn.active {
        z-index: 999;
        background: url(images/close.svg)no-repeat;
        background-size: 25px;
        background-position: center;
        transition: 0.5s ease;
    }

    .city-explorer {
        padding: 60px 20px;
    }
    
    .explorer-title {
        font-size: 2.2em;
    }
    
    .weather-card {
        min-width: auto;
        width: 100%;
    }
    
    .places-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .weather-main {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    header {
        padding: 10px 15px;
    }

    header .brand {
        font-size: 1.2em;
    }

    section {
        padding: 90px 20px 60px;
    }

    .home {
        justify-content: flex-start;
    }

    .home .content {
        width: 100%;
        margin-top: 40px;
    }

    .home .content h1 {
        font-size: 2.2em;
        line-height: 45px;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }

    .home .content h1 span {
        font-size: 1em;
    }

    .home .content p {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .home .content a {
        font-size: 1em;
        padding: 12px 18px;
    }

    .home .media-icons {
        right: 10px;
    }

    .home .media-icons a {
        font-size: 1.3em;
    }

    .slider-navigation {
        transform: translateY(50px);
    }

    .slider-navigation .nav-btn {
        width: 10px;
        height: 10px;
    }

    .slider-navigation .nav-btn:not(:last-child) {
        margin-right: 14px;
    }

    header .navigation.active .navigation-items {
        width: 90%;
        padding: 30px 20px;
    }

    header .navigation .navigation-items a {
        font-size: 1.3em;
    }

    .theme-toggle {
        position: static;
        transform: none;
        margin-left: 15px;
    }

    .header-search input {
        width: 150px;
        font-size: 0.85em;
    }

    .header-search input:focus {
        width: 180px;
    }

    .header-search button {
        width: 30px;
        height: 30px;
    }

    .explorer-title {
        font-size: 1.8em;
    }
    
    .explorer-subtitle {
        font-size: 0.95em;
    }
    
    .weather-card {
        padding: 25px;
    }
    
    .temp-value {
        font-size: 2.8em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
}