/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

/* Scrolled state - darker background */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0;
}

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

.nav-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo-icon {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #4a90e2, #50c878);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.3));
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4a90e2, #50c878);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo a:hover .logo-text::after {
    width: 100%;
}

.nav-logo a:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    animation: none;
}

.navbar.scrolled .nav-logo .logo-icon {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.4));
}

.navbar.scrolled .nav-logo .logo-text {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Default hover effects */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Scrolled state link styles */
.navbar.scrolled .nav-link {
    color: #ecf0f1;
}

.navbar.scrolled .nav-link::before {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.navbar.scrolled .nav-link:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Active link styles */
.nav-link.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.navbar.scrolled .nav-link.active {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.navbar.scrolled .bar {
    background: #ecf0f1;
}

/* Main content styles */
main {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section:nth-child(odd) {
    background: white;
}

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

.section h1, .section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.section h1 {
    font-size: 3rem;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

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

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

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

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.portfolio-item h3, .portfolio-item p {
    padding: 1rem;
}

.portfolio-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .navbar.scrolled .nav-menu {
        background-color: rgba(0, 0, 0, 0.9);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
