:root {
    --magenta: #e91e8c;
    --cyan: #00bcd4;
    --yellow: #ffeb3b;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --gray-dark: #333333;

    --gradient-primary: linear-gradient(135deg, var(--magenta), var(--cyan));
    --gradient-hero: linear-gradient(135deg, var(--magenta) 0%, var(--yellow) 50%, var(--cyan) 100%);

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--magenta);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--cyan);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

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

.nav-links a {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--magenta);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 8px 8px;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    max-width: 500px;
    margin: 0 auto 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--gray);
    font-size: 1.125rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-dark);
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--gray-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--magenta) 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 20%, var(--cyan) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.15;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--magenta);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--black);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--black);
    color: var(--white);
}

.projects .section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.projects .section-intro {
    color: var(--gray);
}

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

.project-card {
    display: block;
    background: var(--gray-dark);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
    color: var(--white);
}

.project-card:hover {
    border-color: var(--magenta);
    transform: translateY(-4px);
    color: var(--white);
}

.project-lang {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-card-more {
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-more:hover {
    border-color: var(--cyan);
    background: rgba(255,255,255,0.05);
}

.github-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--cyan);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--gray-light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magenta);
}

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

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.form-status .view-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.form-status .view-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-widget {
    background: var(--gray-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.chat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--magenta);
}

.chat-icon svg {
    width: 100%;
    height: 100%;
}

.chat-widget h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.chat-widget p {
    color: var(--gray);
    margin-bottom: 12px;
}

.chat-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.location-info {
    background: var(--gray-light);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.location-info h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.location-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
    height: 40px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray);
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-logo {
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-gallery {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-sidebar {
        order: -1;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 180px;
    }

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

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