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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: #1a365d;
}

h2 {
    font-size: 2rem;
    color: #2d3748;
}

h3 {
    font-size: 1.5rem;
    color: #2d3748;
}

h4 {
    font-size: 1.25rem;
    color: #4a5568;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-right: 10px;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Header and Navigation */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

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

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4299e1;
    text-decoration: none;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 0 4rem 0;
    margin-top: 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2rem;
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    text-align: center;
    padding: 6rem 0 4rem 0;
    margin-top: 80px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
}

.page-header p {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-top: 1rem;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

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

.feature {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.service-detail.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-detail.reverse .service-image {
    order: -1;
}

.service-detail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.service-detail ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.service-detail li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Technologies */
.technologies {
    background: #f7fafc;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tech-category h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.about-text ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Company Info */
.company-info {
    background: #f7fafc;
}

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

.detail-group {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

.contact-item h4 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
}

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

/* Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Legal Content */
.legal-content {
    margin-top: 2rem;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-text h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.legal-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.legal-text ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    border-radius: 12px;
    margin: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #bee3f8;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: white;
    color: #4299e1;
}

.cta-section .btn-primary:hover {
    background-color: #f7fafc;
    color: #3182ce;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bee3f8;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-contact,
.footer-address {
    margin-top: 1rem;
}

.footer-contact p,
.footer-address p {
    color: #bee3f8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #bee3f8;
    margin: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.95);
    color: white;
    z-index: 10000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    color: #bee3f8;
    margin: 0;
    flex: 1;
    margin-right: 2rem;
}

.cookie-content a {
    color: #4299e1;
}

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

.cookie-buttons .btn {
    margin: 0;
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 6rem 0 3rem 0;
    }

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

    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail.reverse .service-image {
        order: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 1rem 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);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

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

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}