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

body {
    background: #0a0a0a;
    min-height: 100vh;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    width: 90%;
    max-width: 540px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Section */
.search {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search input {
    border: 0;
    outline: 0;
    background-color: #252c48;
    color: #e0e0e0;
    padding: 10px 50px 10px 25px;
    height: 60px;
    border-radius: 30px;
    width: 100%;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search input:focus {
    background-color: #2d3454;
    box-shadow: 0 0 0 2px rgba(100, 149, 237, 0.4);
}

.search input::placeholder {
    color: #888;
}

.search > svg {
    position: absolute !important;
    right: 20px;
    left: auto;
    fill: #888;
    width: 24px;
    height: 24px;
    pointer-events: none;
    margin: 0 !important;
}

/* Weather Display */
.weather {
    display: none;
    width: 100%;
    text-align: center;
    position: relative;
}

.weather-icon {
    width: 170px;
    max-width: 100%;
    height: auto;
    margin: 50px auto 50px auto;
    fill: #6495ed;
    filter: drop-shadow(0 8px 20px rgba(100, 149, 237, 0.3));
    display: block;
    transform: translateX(0);
}

.weather h1 { 
    font-size: 80px;
    font-weight: 500;
    color: #fff;
    margin: 10px 0;
    line-height: 1;
    word-wrap: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.weather h2 { 
    font-size: 45px;
    font-weight: 400;
    color: #e0e0e0;
    margin-top: 5px;
    opacity: 0.95;
    word-wrap: break-word;
}

/* Details Section */
.details {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    margin-top: 50px;
    gap: 20px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.col svg {
    width: 40px;
    height: 40px;
    fill: #6495ed;
    flex-shrink: 0;
}

.col div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.humidity, 
.wind {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    word-wrap: break-word;
}

.col p {
    color: #b0b0b0;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Error Message */
.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

/* Responsive Design */
@media (max-width: 480px) {
    .card {
        padding: 30px 25px;
    }
    
    .weather h1 {
        font-size: 60px;
    }
    
    .weather h2 {
        font-size: 35px;
    }
    
    .details {
        flex-direction: column;
        gap: 25px;
    }
    
    .col {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .card {
        padding: 20px 15px;
    }
    
    .search input {
        height: 50px;
        font-size: 16px;
        padding: 10px 45px 10px 20px;
    }
    
    .search > svg {
        width: 20px;
        height: 20px;
        right: 15px;
    }
    
    .weather-icon {
        width: 100px;
        margin: 20px auto 15px;
    }
    
    .weather h1 {
        font-size: 48px;
    }
    
    .weather h2 {
        font-size: 28px;
    }
    
    .humidity, 
    .wind {
        font-size: 24px;
    }
    
    .col {
        padding: 12px 15px;
    }
    
    .col svg {
        width: 32px;
        height: 32px;
    }
    
    .details {
        padding: 0 10px;
        margin-top: 30px;
    }
}

/* Extra small screens (150px-220px) */
@media (max-width: 220px) {
    main {
        padding: 10px;
    }
    
    .card {
        padding: 15px 10px;
    }
    
    .search input {
        height: 40px;
        font-size: 14px;
        padding: 8px 40px 8px 15px;
    }
    
    .search > svg {
        width: 18px;
        height: 18px;
        right: 12px;
    }
    
    .weather-icon {
        width: 80px;
        margin: 15px auto 10px;
    }
    
    .weather h1 {
        font-size: 32px;
    }
    
    .weather h2 {
        font-size: 20px;
    }
    
    .details {
        padding: 0 5px;
        margin-top: 20px;
        gap: 15px;
    }
    
    .col {
        gap: 5px;
        padding: 10px 12px;
    }
    
    .col svg {
        width: 24px;
        height: 24px;
    }
    
    .humidity, 
    .wind {
        font-size: 18px;
    }
    
    .col p {
        font-size: 11px;
    }
    
    .error {
        font-size: 11px;
        padding: 8px 10px;
        margin-left: 5px;
    }
}

/* ===================================
   PROJECT CATEGORY CARDS (Projects Hub Page)
   =================================== */
.project-category-card {
    margin: 3rem 0;
}

.category-link {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.category-link:hover {
    transform: translateX(10px);
}

.category-link h3 {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.category-link:hover h3 {
    color: var(--color-primary-light);
}

.category-preview {
    margin: 2rem 0;
}