:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: 244, 244, 244;
    --text-color: #333;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: rgba(var(--background-color), 0.7);
    overflow-x: hidden;
}

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

/* Enhanced Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Enhanced Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger Animation States */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.typed-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    min-height: 2.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    background-color: white;
    position: relative;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.what-we-do {
    flex: 1;
    margin-top: 0;
}

.what-we-do h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.what-we-do-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.what-we-do-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.what-we-do-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    background-color: white;
}

#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1.2rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#contact-form button:active {
    transform: translateY(-1px);
}

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

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background-color: rgba(52, 152, 219, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .container {
        padding: 1.5rem 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media screen and (max-width: 480px) {
    nav {
        padding: 1rem;
    }

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

    .typed-text {
        font-size: 1.1rem;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 8px 16px;
    }

    .what-we-do-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Scroll padding for anchor links */
html {
    scroll-padding-top: 80px;
}