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

:root {
    --primary-color: #FF8C00;
    --secondary-color: #FFA500;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-radius: 12px;
    --font-family-base: 'Plus Jakarta Sans', sans-serif;
    --font-weight-body: 400;
    --font-weight-ui: 600;
    --font-weight-display: 700;
    --font-weight-accent: 500;
}

body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-optical-sizing: auto;
}

button,
input,
textarea {
    font-family: inherit;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    z-index: -1;
    pointer-events: none;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-text,
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-display);
    line-height: 1;
}

.logo-text {
    font-size: 1.8rem;
    min-width: 170px;
}

.brand-dev,
.brand-mast {
    display: inline-block;
    transition: transform 0.25s ease, text-shadow 0.25s ease, color 0.25s ease;
}

.logo .brand-dev {
    color: #111111;
}

.logo .brand-mast {
    color: var(--primary-color);
}

.logo::after,
.footer-logo::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    bottom: -6px;
    background: linear-gradient(90deg, #111111 0 34%, var(--primary-color) 34% 100%);
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover .brand-dev,
.footer-logo:hover .brand-dev {
    transform: translateY(-1px);
}

.logo:hover .brand-mast,
.footer-logo:hover .brand-mast {
    transform: translateY(-1px);
    text-shadow: 0 8px 20px rgba(255, 140, 0, 0.2);
}

.logo:hover::after,
.footer-logo:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: var(--font-weight-ui);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: var(--font-weight-ui);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: var(--font-weight-display);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FF8C00;stop-opacity:0.9" /><stop offset="100%" style="stop-color:%23FFA500;stop-opacity:0.8" /></linearGradient><linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23FFFFFF;stop-opacity:1" /><stop offset="100%" style="stop-color:%23F8F9FA;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad2)"/><circle cx="-100" cy="100" r="300" fill="url(%23grad1)" opacity="0.1"/><circle cx="1300" cy="500" r="400" fill="url(%23grad1)" opacity="0.08"/><path d="M 0 200 Q 300 100 600 200 T 1200 200" stroke="%23FF8C00" stroke-width="2" fill="none" opacity="0.1"/><g opacity="0.05"><rect x="100" y="150" width="100" height="100" fill="%23FF8C00"/><rect x="300" y="250" width="80" height="80" fill="%23FF8C00"/><rect x="800" y="100" width="120" height="120" fill="%23FF8C00"/><circle cx="1000" cy="350" r="50" fill="%23FF8C00"/></g></svg>') center/cover no-repeat,
         linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 8rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-display);
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: var(--font-weight-body);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-ui);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: var(--font-weight-ui);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--light-bg);
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-display);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: var(--font-weight-accent);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-display);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: var(--font-weight-body);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: var(--font-weight-display);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-ui);
}

.info-item p {
    color: var(--text-light);
    font-weight: var(--font-weight-body);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-ui);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E8E8E8;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-weight: var(--font-weight-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B8B8B8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.contact-form .btn-submit {
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem 0;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

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

.footer-section {
    text-align: left;
}

.footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: var(--font-weight-display);
    margin-bottom: 1rem;
}

.footer-logo .brand-dev {
    color: var(--white);
}

.footer-logo .brand-mast {
    color: var(--primary-color);
}

.footer-logo::after {
    background: linear-gradient(90deg, var(--white) 0 34%, var(--primary-color) 34% 100%);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-ui);
    margin-bottom: 1.2rem;
    color: var(--white);
}

.footer-description {
    color: #B8B8B8;
    line-height: 1.7;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: var(--font-weight-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #B8B8B8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: var(--font-weight-body);
    display: inline-flex;
    align-items: center;
}

.footer-links a:before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover:before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.footer-bottom p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    font-weight: var(--font-weight-body);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0 1.1rem;
        border-bottom: 1px solid rgba(255, 140, 0, 0.12);
    }

    .navbar .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.9rem;
        width: 100%;
        padding: 0 12px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .hero {
        min-height: 400px;
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links li {
        display: flex;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 52px;
        padding: 0.85rem 0.4rem;
        font-size: 1rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: rgba(17, 17, 17, 0.86);
        line-height: 1;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: var(--primary-color);
    }

    .logo-text {
        font-size: 1.55rem;
        min-width: 0;
    }

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

    .footer-section {
        text-align: center;
    }

    .footer-links a:before {
        display: none;
    }

    .language-selector {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .lang-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 0.8rem;
        padding: 0.55rem 0.2rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: rgba(44, 62, 80, 0.66);
    }

    .lang-btn.active {
        color: var(--primary-color);
        background: transparent;
        box-shadow: none;
    }

    .lang-btn.active::after {
        display: block;
        bottom: 2px;
        left: 18%;
        right: 18%;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.9rem 0 1rem;
    }

    .navbar .container {
        gap: 0.75rem;
        padding: 0 10px;
    }

    .hero {
        padding: 3rem 0;
        min-height: 300px;
    }

    .services {
        padding: 3rem 0;
    }

    .contact {
        padding: 3rem 0;
    }

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

    .services h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-links a {
        min-height: 50px;
        padding: 0.8rem 0.75rem;
        font-size: 0.95rem;
    }

    .language-selector {
        gap: 0.35rem;
    }

    .lang-btn {
        min-height: 40px;
        font-size: 0.72rem;
        padding: 0.45rem 0.15rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
