/* Modern CSS Reset & Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0a0e27;
    --dark-lighter: #1a1f3a;
    --dark-card: #151a30;
    --light: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* Modern Header */
.header {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.logo-icon span {
    font-size: 1.5rem;
    animation: rotate 20s linear infinite;
    z-index: 2;
    position: relative;
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.logo-rings::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite 0.5s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Navigation Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.nav-links .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.nav-links .btn span {
    display: none;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.mobile-close {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.mobile-nav .nav-links {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.mobile-nav .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
    font-size: 1rem;
}

.mobile-nav .btn span {
    display: inline-block;
    margin-left: 0.5rem;
}

.mobile-nav .btn-text {
    display: inline-block;
}

@media (min-width: 768px) {
    .nav-links .btn span {
        display: inline;
    }
}

.btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-text {
    display: inline;
    font-size: 0.875rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: var(--secondary);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 150px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-unified {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-lighter) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero-unified::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Hero Clock - Primary Focus */
.hero-clock {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .clock-display {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
        padding: 1rem;
        position: relative;
        z-index: 1;
    }

.hero-time {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .hero-date {
        font-size: 1rem;
        color: var(--gray-400);
        font-weight: 500;
        position: relative;
        z-index: 1;
    }

/* Hero Info - Secondary Elements */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* Location and Weather Combined */
.location-weather {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.location-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.location-flag {
    font-size: 2rem;
    line-height: 1;
}

.location-details {
    flex: 1;
    text-align: left;
}

.location-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location-country {
    color: var(--gray-400);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.location-timezone {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 500;
}

.temp-primary { color: #ffffff; }

/* Weather Info */
.weather-info {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    font-size: 2.5rem;
}

.weather-details {
    flex: 1;
}

.weather-extended {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
}

.detail-label {
    font-size: 0.775rem;
    color: var(--gray-400);
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--light);
}

.weather-temp {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

    .temp-primary {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--light);
    }

    .temp-secondary {
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--gray-400);
        opacity: 0.8;
    }

.weather-desc {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Hero Controls */
.hero-controls {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

.location-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calculator-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 2001;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.modal-body {
    padding: 1.5rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

.calculator-form select,
.calculator-form input {
    padding: 0.75rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--light);
    font-size: 0.875rem;
}

.calculator-form select:focus,
.calculator-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.location-search input {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.location-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.location-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: none;
}

.location-results.show {
    display: block;
}

.location-result {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-result:hover {
    background: rgba(99, 102, 241, 0.1);
}

.location-result-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.location-result-info {
    flex: 1;
    min-width: 0;
}

.location-result-city {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.location-result-country {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.search-method-indicator {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--gray-300);
    text-align: center;
}

.location-actions {
    display: flex;
    justify-content: center;
}

/* Controls Section */
.controls-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.controls-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

select {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}





/* World Clock Grid */
.view-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.clock-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.clock-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.clock-card:hover::before {
    transform: scaleX(1);
}

.clock-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.clock-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.clock-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.location-details {
    flex: 1;
    min-width: 0;
}

.clock-location-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--light);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.clock-time-full {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    line-height: 1.2;
    margin: 0.5rem 0;
}

.clock-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    text-align: center;
    margin: 0.5rem 0;
}

.clock-timezone {
    font-size: 0.875rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.clock-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-icon {
    font-size: 1.5rem;
}

.weather-temp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.temp-primary {
    font-size: 1rem;
    font-weight: 700;
    color: var(--light);
}

.temp-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
}

.weather-desc {
    font-size: 0.75rem;
    color: var(--gray-300);
    text-align: center;
}

.weather-humidity {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
}

.clock-sun-times {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sun-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sun-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sun-value {
    font-size: 0.875rem;
    color: var(--light);
    font-weight: 600;
}

.clock-market {
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clock-market.open {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.clock-market.closed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.market-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-value {
    font-size: 0.875rem;
    color: var(--light);
    font-weight: 600;
}

.clock-market.open .market-value {
    color: #10b981;
}

.clock-market.closed .market-value {
    color: #ef4444;
}

/* Tools Section */
.tools-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group input,
.input-group select {
    width: 100%;
}

input[type="number"] {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.result .success {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result .error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Fullscreen Clock */
.fullscreen-clock {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.fullscreen-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fullscreen-flag {
    font-size: 4rem;
}

.fullscreen-location {
    font-size: 2rem;
    font-weight: 600;
}

.fullscreen-day-night {
    font-size: 2rem;
}

.fullscreen-time {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.fullscreen-date {
    font-size: 1.5rem;
    color: var(--gray-400);
    margin-bottom: 3rem;
}

.fullscreen-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
    margin-bottom: 3rem;
}

.fullscreen-detail {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.detail-value .temp-primary {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.detail-value .temp-secondary {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    opacity: 0.8;
    margin-left: 0.5rem;
}

.exit-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.exit-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Features Overview Section */
.features-overview {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-container {
    text-align: center;
}

.features-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-intro {
    font-size: 1.125rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--gray-300);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Use Cases Section */
.use-cases {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-card) 100%);
    margin: 2rem 0;
}

.use-cases-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.use-cases-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.use-case h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.use-case p {
    color: var(--gray-300);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: var(--dark-lighter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-links ul {
    list-style: none;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Global mobile overflow fix */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Hide fullscreen button on mobile */
    #fullscreenBtn {
        display: none;
    }
    .header-content {
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .logo h1 {
        font-size: 1rem;
        white-space: nowrap;
    }

    .controls {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        margin-left: 0.5rem;
    }
    
    .nav-links .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 36px;
        white-space: nowrap;
    }

    .btn span:not([role="img"]) {
        display: inline;
    }

    .hero-section {
        padding: 0.25rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        max-width: 100vw;
        min-width: 0;
    }

    .hero-unified {
        flex-direction: column;
        gap: 1rem;
        padding: 0.25rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        max-width: 100vw;
        min-width: 0;
    }

    .hero-clock {
        order: 1;
        margin-bottom: 2rem;
    }

    .clock-display {
        text-align: center;
        padding: 2rem 1rem;
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius);
        backdrop-filter: blur(10px);
        margin-bottom: 1.5rem;
    }

    .clock-display::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
    }

    .hero-time {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 0.75rem;
        font-weight: 700;
    }

    .hero-date {
        font-size: 1rem;
        color: var(--gray-400);
        font-weight: 500;
    }

    .location-weather {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        backdrop-filter: blur(15px);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .location-info {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
        display: block;
    }

    .weather-container {
        order: 2;
        display: flex;
        gap: 1rem;
        width: 100%;
    }

    .weather-info {
        order: 1;
        width: 50%;
        margin-bottom: 0;
        display: block;
    }

    .weather-extended {
        order: 2;
        width: 50%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .location-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius);
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        order: 1;
    }

    .location-flag {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .location-details {
        flex: 1;
        min-width: 0;
    }

    .location-name {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .location-country {
        font-size: 0.75rem;
        color: var(--gray-400);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .location-timezone {
        font-size: 0.75rem;
        color: var(--gray-400);
    }

    .weather-info {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius);
        width: 100%;
        box-sizing: border-box;
    }

    .weather-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .weather-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .weather-details {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .weather-temp {
        display: flex;
        align-items: baseline;
        gap: 0.4rem;
        margin-bottom: 0.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .temp-primary {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .temp-secondary {
        font-size: 0.7rem;
        color: var(--gray-400);
    }

    .weather-desc {
        font-size: 0.7rem;
        color: var(--gray-400);
    }

    .weather-extended {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        order: 3;
    }

    .weather-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.7rem;
        min-width: 0;
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius);
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .detail-label {
        color: var(--gray-400);
        flex-shrink: 0;
        min-width: 0;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.65rem;
    }

    .detail-value {
        font-weight: 600;
        flex-shrink: 0;
        min-width: 0;
        text-align: right;
        color: var(--light);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.65rem;
    }

    .location-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .location-flag {
        font-size: 2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .location-details {
        text-align: left;
        width: 100%;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .location-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--light);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .location-country {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        color: var(--gray-400);
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .weather-info {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius);
        border: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        order: 1;
        margin-bottom: 0;
    }

    .weather-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .weather-details {
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .weather-temp {
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .temp-primary {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .temp-secondary {
        font-size: 1rem;
        opacity: 0.8;
    }

    .weather-desc {
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .weather-icon {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .weather-desc {
        text-align: center;
        margin-top: 0.5rem;
    }

    .location-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-controls .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .grid-view {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        padding: 0 0.2rem;
        gap: 0.5rem;
    }
    
    .clock-card {
        padding: 0.4rem;
        min-height: 140px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }
    
    .clock-main {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        padding: 0.2rem 0;
    }
    
    .clock-location {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        margin-bottom: 0.4rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
    }
    
    .clock-flag {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    
        .clock-location-name {
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.1;
        text-align: center;
        margin-bottom: 0.1rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow-x: hidden;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .clock-time-full {
        font-size: 2rem;
        font-weight: 700;
        width: 100%;
        text-align: center;
        margin: 0.2rem 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }
    
    .clock-timezone {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        margin-bottom: 0.2rem;
        align-self: center;
    }
    
    .clock-weather-grid {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .weather-item {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .weather-icon {
        font-size: 1.25rem;
    }
    
    .temp-primary {
        font-size: 0.875rem;
    }
    
    .temp-secondary {
        font-size: 0.625rem;
    }
    
    .weather-desc,
    .weather-humidity {
        font-size: 0.625rem;
    }
    
    .clock-sun-times {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .sun-item {
        padding: 0.5rem;
        gap: 0.125rem;
    }
    
    .sun-label {
        font-size: 0.625rem;
    }
    
    .sun-value {
        font-size: 0.75rem;
    }
    
    .clock-market {
        padding: 0.5rem;
    }
    
    .market-label {
        font-size: 0.625rem;
    }
    
    .market-value {
        font-size: 0.75rem;
    }
    
    .fullscreen-time {
        font-size: 4rem;
    }

    .fullscreen-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Mobile styles for new sections */
    .features-overview {
        padding: 2rem 1rem;
    }
    
    .features-container h2 {
        font-size: 2rem;
    }
    
    .features-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .use-cases {
        padding: 2rem 1rem;
    }
    
    .use-cases-container h2 {
        font-size: 2rem;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case {
        padding: 1.5rem;
    }
    
    .use-case-icon {
        font-size: 2.5rem;
    }
    
    /* Mobile styles for features page */
    .page-hero {
        padding: 2rem 1rem;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .features-detailed {
        padding: 2rem 1rem;
    }
    
    .feature-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .feature-icon-large {
        font-size: 2.5rem;
    }
    
    .feature-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .cta-container p {
        font-size: 1rem;
    }
    
    /* Mobile styles for help page */
    .help-content {
        padding: 2rem 1rem;
    }
    
    .help-section {
        padding: 1.5rem;
    }
    
    .help-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tutorial-card {
        padding: 1.5rem;
    }
    
    .tutorial-icon {
        font-size: 2rem;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .troubleshooting-item {
        padding: 1rem;
    }
    
    .support-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-option {
        padding: 1.5rem;
    }
    
    /* Mobile styles for about page */
    .about-content {
        padding: 2rem 1rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mission-item {
        padding: 1.5rem;
    }
    
    .mission-icon {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .impact-item {
        padding: 1.5rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    #fullscreenBtn {
        display: inline-flex;
    }
}

/* Light Theme Styles */
body[data-theme="light"] {
    background: #f8fafc;
    color: var(--gray-900);
}

body[data-theme="light"]::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

body[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

body[data-theme="light"] .btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--gray-300);
    color: var(--gray-900);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--gray-400);
}

body[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

body[data-theme="light"] .btn-secondary {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--secondary);
}

body[data-theme="light"] .hero-unified,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .clock-card,
body[data-theme="light"] .tool-card,
body[data-theme="light"] .location-info,
body[data-theme="light"] .clock-display,
body[data-theme="light"] .weather-info {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .hero-unified::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

body[data-theme="light"] .clock-display {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .location-info {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .weather-info {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(34, 211, 238, 0.2);
}

body[data-theme="light"] .hero-time {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="light"] .hero-date,
body[data-theme="light"] .clock-date,
body[data-theme="light"] .location-country,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .detail-label {
    color: var(--gray-600);
}

body[data-theme="light"] .location-timezone,
body[data-theme="light"] .clock-timezone {
    color: var(--primary);
}

body[data-theme="light"] .temp-secondary {
    color: var(--gray-500);
}

body[data-theme="light"] .fullscreen-clock {
    background: #f8fafc;
}

body[data-theme="light"] .fullscreen-time {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="light"] .fullscreen-detail {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .fullscreen-detail .detail-value .temp-primary {
    color: var(--primary);
}

body[data-theme="light"] .fullscreen-detail .detail-value .temp-secondary {
    color: var(--gray-500);
}

body[data-theme="light"] .main-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] select {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
}

body[data-theme="light"] .location-search input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
}

body[data-theme="light"] .location-result:hover {
    background: rgba(99, 102, 241, 0.1);
}



/* Light theme support for cohesive clock cards */
body[data-theme="light"] .clock-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .clock-location-name {
    color: var(--gray-900);
}

body[data-theme="light"] .clock-timezone {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .weather-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .temp-primary {
    color: var(--gray-900);
}

body[data-theme="light"] .temp-secondary {
    color: var(--gray-600);
}

body[data-theme="light"] .weather-desc {
    color: var(--gray-700);
}

body[data-theme="light"] .weather-humidity {
    color: var(--gray-600);
}

body[data-theme="light"] .sun-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .sun-label {
    color: var(--gray-600);
}

body[data-theme="light"] .sun-value {
    color: var(--gray-900);
}

body[data-theme="light"] .clock-market {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .market-label {
    color: var(--gray-600);
}

body[data-theme="light"] .market-value {
    color: var(--gray-900);
}

/* Light theme support for new sections */
body[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .feature-card h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .feature-card p {
    color: var(--gray-700);
}

body[data-theme="light"] .use-cases {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

body[data-theme="light"] .use-case {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .use-case h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .use-case p {
    color: var(--gray-700);
}

/* Light theme support for features page */
body[data-theme="light"] .page-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
}

body[data-theme="light"] .page-hero-content p {
    color: var(--gray-700);
}

body[data-theme="light"] .feature-detail {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .feature-header h2 {
    color: var(--gray-900);
}

body[data-theme="light"] .feature-content p {
    color: var(--gray-700);
}

body[data-theme="light"] .feature-content h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .feature-content li {
    color: var(--gray-700);
}

body[data-theme="light"] .feature-benefits {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .feature-benefits h4 {
    color: var(--gray-900);
}

/* Light theme support for help page */
body[data-theme="light"] .help-section {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .help-section h2 {
    color: var(--gray-900);
}

body[data-theme="light"] .help-section h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .help-section p {
    color: var(--gray-700);
}

body[data-theme="light"] .help-section ol,
body[data-theme="light"] .help-section ul {
    color: var(--gray-700);
}

body[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .faq-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .faq-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .tutorial-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tutorial-card h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .tutorial-card p {
    color: var(--gray-700);
}

body[data-theme="light"] .tutorial-steps li {
    color: var(--gray-700);
}

body[data-theme="light"] .troubleshooting-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .troubleshooting-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .troubleshooting-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .contact-support p {
    color: var(--gray-700);
}

body[data-theme="light"] .support-option {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .support-option h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .support-option p {
    color: var(--gray-700);
}

/* Light theme support for about page */
body[data-theme="light"] .about-section {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .about-section h2 {
    color: var(--gray-900);
}

body[data-theme="light"] .about-section h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .about-section p {
    color: var(--gray-700);
}

body[data-theme="light"] .about-section ul {
    color: var(--gray-700);
}

body[data-theme="light"] .mission-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .mission-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .mission-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .value-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .value-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .value-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .service-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .service-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .service-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .impact-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .impact-label {
    color: var(--gray-900);
}

body[data-theme="light"] .impact-item p {
    color: var(--gray-700);
}

body[data-theme="light"] .tech-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .tech-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .tech-item li {
    color: var(--gray-700);
}

body[data-theme="light"] .contact-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .contact-item h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .contact-item p {
    color: var(--gray-700);
}

/* Page Hero Styles */
.page-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-lighter) 100%);
    text-align: center;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-content p {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Detailed Styles */
.features-detailed {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-detail {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    transition: var(--transition);
}

.feature-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-large {
    font-size: 3rem;
}

.feature-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light);
    margin: 0;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.feature-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-content li {
    padding: 0.5rem 0;
    color: var(--gray-300);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.feature-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.feature-benefits {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.feature-benefits h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    margin: 2rem 0;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-container .btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.cta-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Help Page Styles */
.help-content {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.help-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.help-section {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: var(--transition);
}

.help-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.help-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-section h2 i {
    color: var(--primary);
}

.help-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.help-section p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-section ol,
.help-section ul {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.help-section li {
    margin-bottom: 0.5rem;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.tutorial-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tutorial-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.tutorial-card p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tutorial-steps ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.tutorial-steps li {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.troubleshooting-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.troubleshooting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.troubleshooting-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.troubleshooting-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.troubleshooting-item p:last-child {
    margin-bottom: 0;
}

/* Contact Support */
.contact-support {
    text-align: center;
}

.contact-support p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.support-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.support-option i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.support-option h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.support-option p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* About Page Styles */
.about-content {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: var(--transition);
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-section h2 i {
    color: var(--primary);
}

.about-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-section ul {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.mission-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.mission-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.mission-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.value-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.impact-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.tech-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.tech-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-item li {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Light theme support for cohesive time cards */
body[data-theme="light"] .time-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .card-info,
body[data-theme="light"] .weather-info,
body[data-theme="light"] .market-status {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .market-status.open {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

body[data-theme="light"] .market-status.closed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Loading animations */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Blog Styles */
.blog-content {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
    text-align: center;
}

.blog-icon {
    font-size: 3rem;
    display: block;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-400);
    justify-content: flex-start;
}

.blog-meta time {
    color: var(--primary);
    font-weight: 500;
}

.blog-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    position: relative;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content h3 a::after {
    content: " →";
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card-content h3 a:hover::after {
    opacity: 1;
}

.blog-card-content p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--dark-card);
    color: var(--gray-400);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-primary);
}

.read-more-btn:hover {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* Article Styles */
.article-hero {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow: hidden;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
    justify-content: flex-start;
}

.article-meta time {
    color: var(--primary);
    font-weight: 500;
}

.article-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-read-time {
    color: var(--gray-400);
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: var(--light);
}

.article-excerpt {
    font-size: 1.125rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: var(--dark-card);
    color: var(--gray-400);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--light);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: var(--light);
}

.article-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--light);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-body strong {
    font-weight: 600;
    color: var(--light);
}

.article-cta {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--light);
}

.article-cta p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

/* Light Theme Blog Styles */
body[data-theme="light"] .blog-card {
    background: var(--light);
    border-color: var(--gray-200);
}

body[data-theme="light"] .blog-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .blog-tag,
body[data-theme="light"] .article-tag {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-600);
}

/* Light theme support for article content */
body[data-theme="light"] .article-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Ensure dark theme is properly applied to blog posts */
body[data-theme="dark"] .article-hero {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .article-hero h1 {
    color: var(--light);
}

body[data-theme="dark"] .article-excerpt {
    color: var(--gray-400);
}

body[data-theme="dark"] .article-meta {
    color: var(--gray-400);
}

body[data-theme="dark"] .article-read-time {
    color: var(--gray-400);
}

body[data-theme="dark"] .article-body {
    color: var(--light);
}

body[data-theme="dark"] .article-body h2 {
    color: var(--light);
}

body[data-theme="dark"] .article-body h3 {
    color: var(--light);
}

body[data-theme="dark"] .article-body p {
    color: var(--light);
}

body[data-theme="dark"] .article-body li {
    color: var(--light);
}

body[data-theme="dark"] .article-body strong {
    color: var(--light);
}

body[data-theme="dark"] .article-cta {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .article-cta h3 {
    color: var(--light);
}

body[data-theme="dark"] .article-cta p {
    color: var(--gray-400);
}

body[data-theme="light"] .article-hero h1 {
    color: var(--gray-900);
}

body[data-theme="light"] .article-excerpt {
    color: var(--gray-700);
}

body[data-theme="light"] .article-meta {
    color: var(--gray-600);
}

body[data-theme="light"] .article-read-time {
    color: var(--gray-600);
}

body[data-theme="light"] .article-body {
    color: var(--gray-900);
}

body[data-theme="light"] .article-body h2 {
    color: var(--gray-900);
}

body[data-theme="light"] .article-body h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .article-body p {
    color: var(--gray-700);
}

body[data-theme="light"] .article-body li {
    color: var(--gray-700);
}

body[data-theme="light"] .article-body strong {
    color: var(--gray-900);
}

body[data-theme="light"] .article-cta {
    background: var(--light);
    border-color: var(--gray-200);
}

body[data-theme="light"] .article-cta h3 {
    color: var(--gray-900);
}

body[data-theme="light"] .article-cta p {
    color: var(--gray-700);
}

body[data-theme="light"] .read-more-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body[data-theme="light"] .read-more-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Mobile Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-content h3 {
        font-size: 1.125rem;
    }
    
    .article-hero {
        padding: 2rem 0 1.5rem;
        width: 100%;
        overflow: hidden;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 2rem 0;
        width: 100%;
        overflow: hidden;
    }
    
    .article-body {
        font-size: 1rem;
        width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .article-cta {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .article-cta h3 {
        font-size: 1.25rem;
    }
    
    /* Ensure mobile navigation doesn't interfere with blog content */
.mobile-nav {
    z-index: 9999;
}

/* Fix any potential layout issues with blog posts */
main[role="main"] {
    width: 100%;
    overflow-x: hidden;
}

/* Ensure blog posts don't have horizontal overflow */
body {
    overflow-x: hidden;
    max-width: 100vw;
}
    
    /* Fix any potential overflow issues */
    .article-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-section h3 {
    color: var(--light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* Light theme support for footer */
body[data-theme="light"] .footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-section h3,
body[data-theme="light"] .footer-section h4 {
    color: var(--gray-900);
}

body[data-theme="light"] .footer-section p {
    color: var(--gray-700);
}

body[data-theme="light"] .footer-section a {
    color: var(--gray-600);
}

body[data-theme="light"] .footer-section a:hover {
    color: var(--accent);
}

body[data-theme="light"] .footer-bottom {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-bottom p {
    color: var(--gray-600);
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom {
        padding: 1rem 1rem 0;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .header,
    .controls-section,
    .footer {
        display: none;
    }
}

/* Google Places Autocomplete Styles */
.pac-container {
    background: var(--dark-card);
    border: 1px solid var(--gray-600);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-family: inherit;
    z-index: 10000 !important;
}

.pac-item {
    color: var(--light);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.pac-item:hover {
    background: var(--gray-700);
}

.pac-item-selected {
    background: var(--primary);
    color: white;
}

.pac-matched {
    font-weight: 600;
    color: var(--accent);
}

/* === Mobile Enhancements (Aug 2024) === */

/* === Hero & Clock Redesign (Sep 2024) === */

/* Clock Card Layout Fix */
.clock-card {
  display: flex;
  flex-direction: column;
}
.clock-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .clock-main {
    flex-direction: column;
  }
}


/* Hero Section Overhaul */
.hero-section {
  /* reduced padding for tighter fold fit */
  padding: clamp(1rem, 4vw, 2rem) 1rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-unified {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .hero-unified {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.hero-clock {
  text-align: center;
}

.hero-time {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.1;
}

.hero-date {
  font-size: 1.25rem;
  font-weight: 500;
}

.location-weather {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .location-weather {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
    width: 100%;
  }
  
  /* Location info on top */
  .location-weather .location-info {
    order: 1;
    width: 100% !important;
    margin-bottom: 0.5rem;
  }
  
  /* Weather container on bottom */
  .location-weather .weather-container {
    order: 2;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
  }
  
  /* Weather info on top of weather container */
  .weather-container .weather-info {
    order: 1;
    width: 100% !important;
    margin-bottom: 0.5rem;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem;
  }
  
  /* Weather icon on the left */
  .weather-info .weather-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem;
    width: 100%;
  }
  
  /* Weather icon on the left */
  .weather-info .weather-icon {
    order: 1;
    flex-shrink: 0;
  }
  
  /* Weather details on the right */
  .weather-info .weather-details {
    order: 2;
    flex: 1;
  }
  
  /* Weather extended details on bottom in 2x2 grid */
  .weather-container .weather-extended {
    order: 2;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
  
  /* Override any existing grid layout */
  .location-weather > *,
  .weather-container > * {
    width: 100% !important;
  }
  
  /* Remove any gaps between elements */
  .hero-info {
    gap: 0 !important;
  }
  
  .location-weather {
    margin-bottom: 0 !important;
  }
  
  .hero-controls {
    margin-top: 0 !important;
  }
  
  /* Hide the flag in hero section */
  .location-flag {
    display: none !important;
  }
}

/* Hide the flag on desktop as well */
.location-flag {
  display: none !important;
}

/* Desktop column layout override */

/* ================= Desktop Hero Layout v2 (location > clock > weather) ================= */

/* ================= Hero Location Row Layout (Universal) ================= */

/* Smaller location when inside clock */
.clock-display .location-info{margin-top:.5rem;margin-bottom:0;gap:.25rem;}
.clock-display .location-flag{font-size:1.1rem;}
.clock-display .location-name{font-size:0.8rem;font-weight:600;}
.clock-display .location-country,.clock-display .location-timezone{font-size:0.65rem;}

/* === Desktop inline location row (Aug 2025 update) === */
@media (min-width: 769px) {
  .clock-display .location-info {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 0 auto; /* center block itself */
    width: fit-content;       /* shrink to content so margin auto works */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .clock-display .location-flag {
    font-size: 2rem;
    flex-shrink: 0;
  }
  .clock-display .location-details {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
  .clock-display .location-name {
    font-size: 1.4rem;
    font-weight: 700;
  }
  .clock-display .location-timezone {
    font-size: 1.2rem;
    color: var(--primary-light);
  }
  .clock-display .location-country {
    display: none;
  }
}

/* === Mobile stacked details (ensure column) === */
@media (max-width: 768px) {
  /* Close gap between weather block and buttons */
  .location-weather{margin-bottom:0;}
  .hero-controls{margin-top:0;}

  /* Ensure row layout without wrapping */
  .clock-display .location-info{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:flex-start;
  }
  /* Flag column – 50% width */
  .clock-display .location-flag{
    flex:0 0 50%;
    width:50%;
    font-size:1.3rem;
    text-align:center;
  }
  /* Details column – 50% width stacked vertically */
  .clock-display .location-details{
    flex:0 0 50%;
    width:50%;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.15;
    gap:0.2rem;
  }

  /* Override: place flag and details inline on a single row */
  .clock-display .location-flag,
  .clock-display .location-details{
    flex:0 0 auto;
    width:auto;
  }
  .clock-display .location-details{
    display:inline-flex;
    flex-direction:row;
    align-items:center;
    gap:0.25rem;
  }
}




/* === Weather & Controls Tweaks (Aug 2025) === */
.weather-detail { padding: 1rem; }

@media (max-width: 768px) {
  /* ensure hero controls below clock */
  .hero-controls{width:100%;margin-top:0;}
  /* enlarge hero weather icon + temps */
  .weather-info .weather-icon { font-size: 5rem; }
  .weather-info .temp-primary { font-size: 2.5rem; }
  .weather-info .temp-secondary { font-size: 1.3rem; }

  /* stack detail value below label */
  .weather-detail { flex-direction: column; align-items: center; }
  .detail-label { font-size: 0.95rem; }
  .detail-value { font-size: 1.3rem; }

  /* move hero controls below hero */
  .hero-controls { order: 4; width: 100%; margin-top: 0; }
}

.location-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
  flex-direction: row;
}
.location-details {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.location-name   { font-size: 2rem; font-weight: 700; }
.location-country{ font-size: 1.2rem; color: var(--gray-300); }
.location-timezone{ font-size: 1.2rem; color: var(--primary-light); }

/* ================= Desktop Hero Layout v3 (refined) ================= */
@media (min-width: 769px) {
  /* Ensure full-width rows */
  .hero-unified > * { width: 100%; }

  /* Location block becomes simple text, no tile */
  .location-info {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    text-align: center;
  }
  .location-flag   { font-size: 3rem; line-height: 1; }
  .location-name   { font-size: 2rem; font-weight: 700; }
  .location-country{ font-size: 1.1rem; }
  .location-timezone{ font-size: 1rem; color: var(--primary-light); }

  /* Weather row split 50/50 */
  .weather-container { width: 100%; }
  .weather-info      { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .weather-extended  { flex: 1; display: grid; grid-template-columns: 1fr; gap: 1rem; }

  /* Make content visually larger */
  .weather-icon  { font-size: 4rem; }
  .temp-primary  { font-size: 2rem; }
  .temp-secondary{ font-size: 1.25rem; }
  .weather-desc  { font-size: 1.25rem; }
  .weather-detail{ font-size: 1.2rem; text-align:center; }
  .detail-label  { font-size: 0.9rem; }
  .detail-value  { font-size: 1.1rem; }
}

@media (min-width: 769px) {
  .hero-unified {
    display: grid;
    grid-template-areas:
      "location"
      "clock"
      "weather";
    gap: 2rem;
  }
  /* allow inner wrapper to be ignored for grid placement */
  .hero-info { display: contents; }

  .location-info {
    grid-area: location;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }
  .hero-clock { grid-area: clock; }

  /* split weather into 50/50 flex */
  .weather-container {
    grid-area: weather;
    display: flex;
    align-items: stretch;
    gap: 2rem;
  }
  .weather-info { flex: 1; text-align: center; }
  .weather-extended {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
  }
  /* Make content fill the space visually */
  .weather-icon { font-size: 4rem; }
  .temp-primary { font-size: 2rem; }
  .temp-secondary { font-size: 1.25rem; }
  .weather-desc { font-size: 1.25rem; }
  .weather-detail { font-size: 1.2rem; }
  .detail-label { font-size: 0.9rem; }
  .detail-value { font-size: 1.1rem; }
}
@media (min-width: 769px) {
  .hero-unified {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-unified > * {
    width: 100%;
  }
  .location-weather {
    display:inline-flex;
    align-items:flex-start;
    gap:1rem;
    width:100%;
  }
}

/* Weather extended details condensed to 2-column grid */
.weather-extended {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

/* Mobile: Weather details in 2x2 grid */
@media (max-width: 768px) {
  .weather-extended {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Clock Card Redesign */
.clock-card {
  display: grid;
  grid-template-areas:
    'location time'
    'timezone time'
    'weather weather'
    'sun sun'
    'market market';
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 1.25rem;
}

.clock-location    { grid-area: location; }
.clock-time-full   { grid-area: time;   font-size: 2.25rem; text-align: right; }
.clock-timezone    { grid-area: timezone; text-align: left; }
.clock-weather-grid{ grid-area: weather; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); }
.clock-sun-times   { grid-area: sun;    justify-content: space-around; }
.clock-market      { grid-area: market; }

@media (max-width: 768px) {
  .clock-card {
    grid-template-areas:
      'location'
      'time'
      'timezone'
      'weather'
      'sun'
      'market';
    grid-template-columns: 1fr;
    text-align: center;
  }
  .clock-time-full {
    font-size: 1.8rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Hero Section refinement */
  .hero-clock,
  .location-info {
     width: 100%;
  }

  .weather-container {
     display: flex;
     flex-wrap: nowrap;
  }

  .weather-info,
  .weather-extended {
     width: 50%;
  }

  /* Weather details stacked vertically */
  .weather-extended .weather-detail {
     width: 100%;
  }

  /* Hide fullscreen toggle in header */
  #fullscreenToggle { display:none !important; }

  /* Ensure mobile nav text shows */
  .mobile-nav .btn span { display:inline-block !important; }

  /* Location cards improvements */
  .clock-card {
     min-height: auto;
     padding: 0.6rem 0.35rem;
  }

  .clock-time-full {
     font-size: 1.5rem;
  }

  .clock-weather-grid {
     grid-template-columns: 1fr;
     gap: 0.5rem;
  }

  .clock-sun-times {
     flex-direction: column;
     gap: 0.5rem;
  }

  /* Market status text scaling */
  .clock-market {
     padding: 0.5rem 0.6rem;
  }
  .clock-market .market-label {
     font-size: 0.6rem;
  }
  .clock-market .market-value {
     font-size: 0.7rem;
  }
}
