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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* ==================== Header & Navigation ==================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    cursor: default;
}

.logo a:hover {
    color: var(--secondary-color);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 1px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
}

.search-box.active {
    display: flex;
}

.search-box input {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius:  var(--radius) 0 0 var(--radius);
    width: 220px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: white;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.search-box input:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button, .search-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.55rem 0.85rem;
    transition: var(--transition);
    color: white;
}

.search-box button:hover, .search-icon:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.22);
}

.search-box button:active, .search-icon:active {
    transform: translateY(1px);
}

.search-icon, .menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    color: white;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-icon:hover, .menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.menu-toggle.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.0);
}


/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

.hero-content span {
    color: var(--secondary-color);
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--secondary-color);
    color: white;
    margin: 0 10px;
}

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

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

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* ==================== Services Section ==================== */
.services {
    padding: 60px 2rem;
    background-color: var(--light-bg);
}

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

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

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

.service-card {
    background: white;
    padding: 2rem;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* ==================== Features Section ==================== */
.features {
    padding: 60px 2rem;
}

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

.feature-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-bg);
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
}

.feature-item:hover {
    background: #e8f1ff;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #666;
}

/* ==================== CTA Section ==================== */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 2rem;
    border-radius: var(--radius) var(--radius) 0 0;
}

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

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================== Footer ==================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ==================== Go to Top Button ==================== */
.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0984e3 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.7rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    z-index: 50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.go-to-top::after {
    content: 'Go to Top';
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.go-to-top::before {
    content: '';
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.go-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.go-to-top.hide {
    opacity: 0;
    transform: translateY(20px);
}

.go-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e67e22 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
}

.go-to-top:hover::after,
.go-to-top:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        display: none;
        width: 100%;
        box-shadow: var(--shadow);
        overflow: hidden;
        text-align: center;
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        top: 75px;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        color: var(--text-color);
        padding: 1rem 1.5rem;
        display: block;
        transition: var(--transition);
        font-weight: 500;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        background-color: var(--light-bg);
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 700;
        background-color: rgba(74, 144, 226, 0.1);
    }

    .search-icon, .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--radius);
        color: white;
        transition: var(--transition);
    }

    .search-icon:hover, .menu-toggle:hover {
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.22);
        transform: scale(1.0);
    }

    .search-box {
        display: none;
        position: absolute;
        top: 60px;
        right: 50px;
        background: rgba(255, 255, 255, 0.08);
        padding: 0;
        border-radius: var(--radius);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .search-box.active {
        display: flex;
        top: 75px;
        animation: slideDown 0.3s ease;
    }

    .search-box button {
        border-radius: 0 var(--radius) var(--radius) 0;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.35);
        padding: 0.55rem 0.85rem;
        color: white;
    }

    .search-box button:hover {
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .search-icon:hover {
        color: var(--secondary-color);
        transform: scale(1.1);
    }

    .menu-toggle:hover {
        color: var(--secondary-color);
        transform: scale(1.1);
    }

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

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

    .btn {
        padding: 10px 20px;
        margin: 10px 5px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    nav {
        padding: 0.8rem;
    }

    .hero {
        padding: 50px 1rem;
        min-height: 400px;
    }

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

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

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .go-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }

    .go-to-top::after {
        bottom: 55px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .go-to-top::before {
        bottom: 45px;
        left: 50%;
        transform: translateX(-50%);
        border-left-width: 4px;
        border-right-width: 4px;
        border-top-width: 4px;
    }
}
