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

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

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

h1, h2, h3 {
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2em;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 0;
}

.logo {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2.5em;
}

nav ul li a {
    text-decoration: none;
    color: #2a5298;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6200;
}

.dark-mode-toggle {
    background: #2a5298;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.dark-mode-toggle:hover {
    background: #1e3c72;
}

/* Hero */
#hero {
    background: linear-gradient(135deg, #2a5298, #1e3c72),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 0 L30 5 L30 15 L20 20 L10 15 L10 5 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>') repeat;
    color: #fff;
    text-align: center;
    padding: 8em 0;
}

#hero h1 {
    font-size: 3.5em;
    font-weight: 700;
}

#hero p {
    font-size: 1.3em;
    max-width: 600px;
    margin: 0 auto 2em;
}

.cta-button {
    background: #ff6200;
    color: #fff;
    padding: 1em 2.5em;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e65b00;
}

/* Services */
#services {
    padding: 6em 0;
}

#services h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 1em;
    color: #2a5298;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.service-card {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1em;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.service-card h3 {
    color: #2a5298;
    font-size: 1.5em;
}

/* About */
#about {
    background: #f9f9f9;
    padding: 6em 0;
    text-align: center;
}

#about h2 {
    font-size: 2.8em;
    color: #2a5298;
    margin-bottom: 1em;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
}

/* Portfolio */
#portfolio {
    padding: 6em 0;
}

#portfolio h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2a5298;
    margin-bottom: 1em;
}

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

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

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

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-item h3 {
    padding: 1em;
    color: #2a5298;
}

.portfolio-item p {
    padding: 0 1em 1em;
}

/* Testimonials */
#testimonials {
    padding: 6em 0;
    background: #f9f9f9;
}

#testimonials h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2a5298;
    margin-bottom: 1em;
}

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

.testimonial {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    color: #666;
}

.testimonial cite {
    display: block;
    margin-top: 1em;
    font-weight: 600;
    color: #2a5298;
}

/* Contact */
#contact {
    padding: 6em 0;
}

#contact h1 {
    text-align: center;
    font-size: 2.8em;
    color: #2a5298;
    margin-bottom: 1em;
}

#contact p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2em;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #2a5298;
}

form input, form textarea {
    width: 100%;
    padding: 1em;
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

form textarea {
    height: 150px;
}

form button {
    background: #2a5298;
    color: #fff;
    padding: 1em 2.5em;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #1e3c72;
}

.contact-info {
    text-align: center;
    margin-top: 3em;
}

.contact-info h3 {
    color: #2a5298;
    margin-bottom: 1em;
}

.contact-info a {
    color: #ff6200;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #2a5298;
    color: #fff;
    padding: 3em 0;
    text-align: center;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5em;
}

.social-links a {
    display: inline-block;
    margin: 0 0.75em;
    color: #ffcc00;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-links svg {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode */
body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark header, body.dark .service-card, body.dark .portfolio-item,
body.dark .testimonial, body.dark form {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark #about, body.dark #testimonials {
    background: #121212;
}

body.dark nav ul li a, body.dark .service-card h3,
body.dark .portfolio-item h3, body.dark form label,
body.dark #about h2, body.dark #services h2,
body.dark #portfolio h2, body.dark #testimonials h2,
body.dark #contact h1 {
    color: #64b5f6;
}

body.dark .testimonial cite {
    color: #64b5f6;
}

body.dark form input, body.dark form textarea {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark footer {
    background: #1e3c72;
}

/* Flash Messages */
.flash-messages {
    max-width: 700px;
    margin: 0 auto 2em;
}

.flash-message {
    padding: 1em;
    border-radius: 5px;
    margin-bottom: 1em;
    font-weight: 600;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

body.dark .flash-success {
    background: #1e4620;
    color: #7dce82;
    border-color: #2d5f30;
}

body.dark .flash-error {
    background: #5a1a1a;
    color: #f5a3a3;
    border-color: #771d1d;
}

/* Language Selector */
.language-selector {
    padding: 0.5em 1em;
    border: 2px solid #2a5298;
    border-radius: 5px;
    background: #fff;
    color: #2a5298;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1em;
}

.language-selector:hover {
    background: #2a5298;
    color: #fff;
}

body.dark .language-selector {
    background: #1e1e1e;
    border-color: #64b5f6;
    color: #64b5f6;
}

body.dark .language-selector:hover {
    background: #64b5f6;
    color: #1e1e1e;
}

/* Responsive Design */
/* Legal Pages (Privacy & Terms) */
#legal-content {
    padding: 6em 0;
}

#legal-content h1 {
    text-align: center;
    font-size: 2.8em;
    color: #2a5298;
    margin-bottom: 0.5em;
}

#legal-content .last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 3em;
}

.legal-section {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.legal-section h2 {
    color: #2a5298;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
}

.legal-section ul {
    margin: 1em 0 1em 2em;
    color: #555;
}

.legal-section ul li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

.legal-section a {
    color: #ff6200;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 3em;
}

body.dark #legal-content h1 {
    color: #64b5f6;
}

body.dark #legal-content .last-updated {
    color: #aaa;
}

body.dark .legal-section {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark .legal-section h2 {
    color: #64b5f6;
}

body.dark .legal-section p,
body.dark .legal-section ul {
    color: #ccc;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1em 0;
    }
    nav ul {
        margin: 1em 0;
    }
    #hero {
        padding: 5em 0;
    }
    #hero h1 {
        font-size: 2.5em;
    }
    #hero p {
        font-size: 1.1em;
    }
    .service-grid, .portfolio-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    #legal-content {
        padding: 4em 0;
    }
    #legal-content h1 {
        font-size: 2em;
    }
    .legal-section {
        padding: 1.5em;
    }
}