/* ========================================
   MODERN HOMEPAGE STYLES
   ======================================== */

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Search Bar Styles */
.hero-search-wrapper {
    max-width: 700px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 2rem;
    color: #667eea;
    font-size: 1.2rem;
    z-index: 1;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.filter-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item i {
    font-size: 2rem;
    color: #ffd700;
}

.hero-stats .stat-item strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.hero-stats .stat-item span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hero Illustration */
.hero-image-wrapper {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #667eea;
}

.floating-card.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.8;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 20px; }
}

/* Stats Section */
.stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1f3a;
}

.stat-label {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.stat-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), transparent);
    border-radius: 50%;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    width: 100%;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 0.75rem;
}

.tool-description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    color: #764ba2;
    gap: 0.5rem;
}

/* Country Cards */
.country-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.country-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.country-card:hover .country-image {
    transform: scale(1.1);
}

.country-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.visa-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.visa-free {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.visa-required {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.country-overlay {
    position: absolute;
    inset: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover .country-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    transform: scale(1.2);
}

.country-content {
    padding: 1.5rem;
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.country-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1f3a;
    margin: 0;
}

.country-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.country-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.country-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.meta-item i {
    color: #667eea;
}

.country-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.country-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.country-stats {
    display: flex;
    gap: 1rem;
}

.country-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Popular Cards */
.popular-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.popular-flag {
    width: 80px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popular-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-flag i {
    font-size: 2rem;
    color: #667eea;
    line-height: 60px;
}

.popular-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 0.5rem;
}

.popular-views {
    font-size: 0.85rem;
    color: #64748b;
}

/* City Cards */
.city-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.city-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .city-image {
    transform: scale(1.1);
}

.city-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.city-content {
    padding: 1.5rem;
}

.city-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 0.5rem;
}

.city-country {
    color: #64748b;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: white;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1540px;
    }
}

@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .section-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .section-header .btn {
        margin-top: 1rem;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }
    
    .search-input {
        padding: 1rem;
        border-radius: 15px;
        margin-bottom: 0.5rem;
    }
    
    .search-icon {
        left: 1.5rem;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 15px;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-stats .stat-item {
        flex: 1 1 100%;
        max-width: 400px;
    }
    
    .cta-wrapper {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .country-card,
    .city-card {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    animation: fadeInUp 0.6s ease-out;
}

/* Full Width Sections */
.hero-section,
.stats-section,
.tools-section,
.featured-section,
.popular-section,
.cities-section,
.cta-section,
.newsletter-section {
    width: 100%;
    max-width: 100%;
}

/* Container Adjustments - Centered */
.hero-section .container,
.stats-section .container,
.tools-section .container,
.featured-section .container,
.popular-section .container,
.cities-section .container,
.cta-section .container,
.newsletter-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1600px) {
    .hero-section .container,
    .stats-section .container,
    .tools-section .container,
    .featured-section .container,
    .popular-section .container,
    .cities-section .container,
    .cta-section .container,
    .newsletter-section .container {
        max-width: 1400px;
    }
}

/* Remove body padding/margin for homepage */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    will-change: transform;
}

.country-card,
.city-card,
.tool-card,
.stat-card {
    will-change: transform;
}

/* Improved Color Scheme */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
}

/* Better Text Colors */
.section-title {
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-medium);
}

.country-description,
.tool-description,
.city-country {
    color: var(--text-light);
}

/* Centered Content */
.row {
    justify-content: center;
}

.section-header {
    text-align: center;
}

.section-header.d-flex {
    justify-content: center;
    text-align: center;
}
