/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables for easy theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: flex;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Sections */
section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Profile Image */
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: block;
    border: 5px solid var(--secondary-color);
    transition: var(--transition);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-image {
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin-bottom: 1rem;
}

/* Contact Specific Styles */
.container {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.contact-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: var(--primary-color);
}

.map-container {
    margin-top: 2rem;
}

iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }

    main {
        padding: 0 0.5rem;
    }

    section {
        padding: 1rem;
    }
}

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

.service-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

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

/* Analytics Table */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.analytics-table th,
.analytics-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.analytics-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

/* Country column styling */
.analytics-table td:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.analytics-table tr:hover {
    background-color: #f5f5f5;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.metric-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.metric-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.metric-item p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Chart Containers */
.chart-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.chart-container h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.grid-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Specific grid item styling */
.country-section,
.device-section,
.pages-section {
    grid-column: span 1;
}

.chart-section {
    grid-column: span 1;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-item {
        padding: 1rem;
    }
    
    .grid-item h3 {
        font-size: 1.1rem;
    }
}

/* Slideshow */

.hero-slideshow {
    background: linear-gradient(120deg, #f0eff2, #9874d3); /* New vibrant gradient */
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100vw;
    position: relative;
    left: 50%; 
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-radius: 0 0 2rem 2rem;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 90vw;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    max-width: 555px;
    height: 555px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Dots */
.dots {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Responsive Slideshow */
@media (max-width: 1024px) {
    .hero-slideshow {
        padding: 1.2rem 0.2rem;
        border-radius: 0 0 1.2rem 1.2rem;
    }
    .slideshow-container {
        max-width: 98vw;
        width: 98vw;
    }
    .slide img {
        max-width: 98vw;
        height: 260px;
    }
}

@media (max-width: 600px) {
    .hero-slideshow {
        padding: 0.5rem 0;
        border-radius: 0 0 0.7rem 0.7rem;
    }
    .slideshow-container {
        max-width: 100vw;
        width: 100vw;
    }
    .slide img {
        max-width: 100vw;
        height: 180px;
    }
}
/* Contact Page Styles */
.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.container h2 i {
    color: var(--accent-color);
    font-size: 2rem;
}

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

.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-card small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* Contact Form Section */
.contact-form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-container h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-container h2 i {
    color: var(--accent-color);
}

.form-container > p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.submit-btn i {
    font-size: 1.2rem;
}

/* Contact Image Section */
.contact-image {
    text-align: center;
}

.contact-profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.contact-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4CAF50;
}

.contact-status span {
    color: var(--text-color);
    font-weight: 500;
}

.contact-status i {
    color: #4CAF50;
    margin-left: 0.25rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-image {
        order: -1;
    }
}

    .contact-profile-img {
        width: 200px;
        height: 200px;
    }
}

/* Map Section */
.map-section {
    margin-bottom: 4rem;
}

.map-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.map-container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-container h2 i {
    color: var(--accent-color);
}

.map-container > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

@media (max-width: 768px) {
    .map-container {
        padding: 2rem 1rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}
/* Carousel Section */
.carousel-section {
    margin: 2rem 0;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 25%; /* Show 4 slides on desktop */
    box-sizing: border-box;
    padding: 1rem;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 50%; /* Show 2 slides on tablet */
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-width: 100%; /* Show 1 slide on mobile */
    }
}
