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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --whatsapp-color: #25d366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.whatsapp-cta {
    margin-top: 2rem;
}

.whatsapp-btn {
    background: var(--whatsapp-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Stats Section */
.stats {
    padding: 60px 20px;
    background: var(--light-color);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Featured Scholarships */
.featured {
    padding: 80px 20px;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.scholarship-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.scholarship-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.scholarship-header h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    flex: 1;
}

.scholarship-badge {
    background: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.scholarship-info {
    margin: 15px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--text-color);
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
}

.scholarship-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-apply {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: var(--secondary-color);
}

.btn-details {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--border-color);
}

/* Countries Section */
.countries-section {
    padding: 80px 20px;
    background: var(--light-color);
}

.countries-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.country-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.country-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.country-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.country-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* AI Section */
.ai-section {
    padding: 80px 20px;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.ai-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.ai-image {
    text-align: center;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.footer-col ul li {
    margin: 10px 0;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    padding: 40px 20px;
    background: var(--light-color);
}

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

.filter-group {
    flex: 1;
    min-width: 200px;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-reset {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--secondary-color);
}

/* Scholarships List */
.scholarships-list {
    padding: 60px 20px;
}

.results-info {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Countries Page */
.countries-page {
    padding: 60px 20px;
}

.countries-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.country-card-large {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.country-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.country-flag {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.country-card-large h3 {
    text-align: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.scholarship-count {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.country-features {
    list-style: none;
    margin: 20px 0;
}

.country-features li {
    padding: 8px 0;
    color: var(--text-color);
}

.country-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.country-card-large .btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.country-scholarships {
    padding: 60px 20px;
    background: var(--light-color);
}

.country-scholarships h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* AI Chat Section */
.ai-chat-section {
    padding: 40px 20px 80px;
}

.ai-chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ai-info-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.ai-info-box h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-info-box ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.ai-info-box ul li {
    padding: 8px 0;
    color: var(--text-color);
}

.ai-info-box ul li:before {
    content: "→ ";
    color: var(--primary-color);
    font-weight: bold;
}

.example-questions {
    margin-top: 20px;
}

.example-questions p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.example-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.example-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chat-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--light-color);
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--success-color);
    color: white;
}

.message-content {
    background: white;
    padding: 15px;
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content ul li {
    margin: 5px 0;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.chat-input-area textarea:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input-area button:hover {
    background: var(--secondary-color);
}

.chat-input-area button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.loading-indicator {
    text-align: center;
    padding: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Page */
.about-section {
    padding: 60px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin: 30px 0 15px;
}

.about-text p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 30px 0;
}

.reason-card {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: 10px;
}

.reason-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reason-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.reason-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .ai-content {
        grid-template-columns: 1fr;
    }

    .ai-image {
        order: -1;
    }

    .ai-chat-container {
        grid-template-columns: 1fr;
    }

    .chat-box {
        height: 500px;
    }

    .scholarship-grid {
        grid-template-columns: 1fr;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}
