/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-section a:hover {
    transform: scale(1.05);
}

.logo-section img {
    height: 50px;
    width: auto;
}

.logo-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
#hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: -2rem -2rem 4rem -2rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
    width: calc(100% + 4rem);
    max-width: calc(100% + 4rem);
}

#hero.hero-with-image {
    background-image: linear-gradient(135deg, rgba(45, 55, 72, 0.2) 0%, rgba(26, 32, 44, 0.2) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-with-image .hero-content h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-with-image .highlight {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-with-image .hero-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-weight: 500;
}

/* Section Styles */
section {
    margin-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-card p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #718096;
    margin: 0;
}

.tech-stack {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 20px;
    color: white;
}

.tech-stack h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Contact Section */
.contact-container {
    background: #f8fafc;
    padding: 4rem;
    border-radius: 20px;
    margin: 0 -2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #718096;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: contents;
}

.form-group:first-of-type {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.contact-form button {
    grid-column: 2;
    margin-top: 0;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #718096;
    margin: 0;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-brand p {
    color: #a0aec0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a5568;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    * {
        overflow-x: hidden !important;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    nav {
        gap: 1rem;
    }

    main {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #hero {
        margin: -0.5rem -0.5rem 2rem -0.5rem;
        padding: 4rem 0.5rem;
        width: calc(100% + 1rem);
        max-width: calc(100% + 1rem);
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .btn {
        width: 200px;
        justify-content: center;
        max-width: calc(100vw - 2rem);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .stat {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        margin: 0 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: calc(100% - 0.5rem);
        overflow-x: hidden;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .form-group {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .contact-form button {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .tech-icons {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .contact-container {
        margin: 0 -0.5rem;
        padding: 2rem 0.5rem;
        width: calc(100% + 1rem);
        max-width: calc(100% + 1rem);
        overflow-x: hidden;
    }

    section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section-header,
    .section-subtitle {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    * {
        overflow-x: hidden !important;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px;
    }

    .header-content {
        padding: 0.5rem 0.25rem;
        width: 100%;
        max-width: 100%;
    }

    main {
        padding: 0 0.25rem;
        width: 100%;
        max-width: 100%;
    }

    #hero {
        margin: -0.25rem -0.25rem 1.5rem -0.25rem;
        padding: 3rem 0.25rem;
        width: calc(100% + 0.5rem);
        max-width: calc(100% + 0.5rem);
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 0.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-stats {
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .stat {
        padding: 1.5rem 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
        padding: 0 0.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-card,
    .contact-form,
    .contact-card {
        padding: 1.5rem 0.5rem;
        margin: 0 0.125rem;
        width: calc(100% - 0.25rem);
        max-width: calc(100% - 0.25rem);
    }

    .tech-stack {
        padding: 1.5rem 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .contact-container {
        margin: 0 -0.25rem;
        padding: 1.5rem 0.25rem;
        width: calc(100% + 0.5rem);
        max-width: calc(100% + 0.5rem);
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        width: calc(100vw - 1rem);
        max-width: 250px;
    }

    .cta-buttons {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
}