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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #34495E;
    background-color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.4rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 21px;
    background: linear-gradient(135deg, #7ED321 0%, #1E3A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #1D1D1F;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #7ED321;
}

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

.bar {
    width: 24px;
    height: 2px;
    background-color: #1D1D1F;
    margin: 4px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 17px;
}

.btn-primary {
    background: linear-gradient(135deg, #7ED321 0%, #1E3A8A 100%);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #9ACD32 0%, #2563EB 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #7ED321;
    border: 2px solid #7ED321;
}

.btn-secondary:hover {
    background-color: #7ED321;
    color: #FFFFFF;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ECF0F1 0%, #FFFFFF 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Adjusted to make image larger */
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 2.8rem; /* Reduced from 3.5rem */
    margin-bottom: 1rem; /* Reduced margin */
    color: #2C3E50;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem; /* Slightly reduced */
    margin-bottom: 1.5rem; /* Reduced margin */
    color: #34495E;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
}

/* Services Section */
.services {
    padding: 64px 0;
    background-color: #FBFBFD;
}

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

.service-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    margin-bottom: 24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1D1D1F;
}

.service-description {
    color: #86868B;
    line-height: 1.6;
}

/* Work Section */
.work {
    padding: 64px 0;
    background-color: #F5F5F7;
}

.work-showcase {
    display: grid;
    gap: 64px;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.work-item:nth-child(even) {
    direction: rtl;
}

.work-item:nth-child(even) .work-content {
    direction: ltr;
}

.work-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.work-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: #1D1D1F;
}

.work-description {
    font-size: 17px;
    color: #86868B;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 64px 0;
    background-color: #FBFBFD;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-description {
    font-size: 17px;
    margin-bottom: 24px;
    color: #86868B;
}

.about-values {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    padding: 24px;
    background-color: #F5F5F7;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
}

.value-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1D1D1F;
}

.value-description {
    font-size: 16px;
    color: #86868B;
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Contact Section */
.contact {
    padding: 64px 0;
    background-color: #F5F5F7;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
}

.contact-form {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1D1D1F;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #F5F5F7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #7ED321;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-title {
    font-size: 21px;
    margin-bottom: 8px;
    color: #1D1D1F;
}

.contact-description {
    color: #86868B;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #FFFFFF;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
}

.footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 14px;
}

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

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1, .hero-title {
        font-size: 2.5rem;
    }
    
    h2, .section-title {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header, .nav-container {
        height: 64px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 16px 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero {
        padding: 96px 0 48px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    h1, .hero-title {
        font-size: 2.3rem; /* Adjusted to be consistent with desktop */
    }
    
    h2, .section-title {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle, .section-subtitle {
        font-size: 1rem; /* Slightly reduced */
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-item {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .work-item:nth-child(even) {
        direction: ltr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .container, .nav-container, .hero-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services, .work, .about, .contact {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* JavaScript for mobile menu toggle */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.nav-menu.active {
    left: 0;
}