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

:root {
    --primary: #00a7e1;
    --primary-dark: #007ea7;
    --secondary: #00171f;
    --accent: #007ea7;
    --text: #ffffff;
    --text-light: #a0c4d8;
    --bg: #00171f;
    --white: #003459;
    --border: #004a73;
    --gradient: linear-gradient(135deg, #00a7e1 0%, #007ea7 100%);
    --glow: 0 0 20px rgba(0, 167, 225, 0.3);
    --glow-strong: 0 0 30px rgba(0, 167, 225, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    letter-spacing: 0.01em;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 167, 225, 0.1) 4px, transparent 4px),
        linear-gradient(90deg, rgba(0, 167, 225, 0.1) 4px, transparent 4px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(240, 245, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d0dde8;
    z-index: 1000;
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 7vh;
    width: auto;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 167, 225, 0.5);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #00171f;
}

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

.nav-links a {
    text-decoration: none;
    color: #00171f;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: #00a7e1;
    color: #ffffff;
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #00171f;
    transition: 0.3s;
}

/* Hero */
.hero {
    height: auto;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    max-width: 1200px;
    margin: 120px auto 50px;
    gap: 60px;
    background: #003459;
    border-radius: 20px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: #00a7e1;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0c4d8;
    margin-bottom: 30px;
    max-width: 500px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

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

.btn-secondary:hover {
    background: #ffffff;
    color: #00171f;
    box-shadow: var(--glow);
}

.btn-full {
    width: 100%;
}

.hero-visual {
    flex: 1;
}

.code-block {
    background: #00171f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #004a73;
}

.code-header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 52, 89, 0.5);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-block pre {
    padding: 20px;
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
    line-height: 1.6;
}

.keyword { color: #ff7b72; }
.string { color: #7ee787; }

/* Services */
.services {
    padding: 100px 0;
    background: rgba(0, 23, 31, 0.95);
}

.services h2,
.about h2,
.projects h2,
.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #00a7e1;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
}

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

.service-card {
    background: #003459;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), var(--glow);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 167, 225, 0.5);
}

.service-card h3 {
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #00a7e1;
    margin-bottom: 10px;
}

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

/* About */
.about {
    padding: 100px 0;
    background: rgba(0, 52, 89, 0.95);
}

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

.about-text h2,
.about-skills h3 {
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    color: #00a7e1;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 167, 225, 0.5);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
}

.about-skills h3 {
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #00a7e1;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #00171f;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--glow);
}

/* Projects */
.projects {
    padding: 100px 0;
    background: rgba(0, 23, 31, 0.95);
}

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

.project-card {
    background: #003459;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), var(--glow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #00171f 0%, #004a73 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.project-placeholder {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 167, 225, 0.5);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #00a7e1;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-tag {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    box-shadow: var(--glow);
}

/* Contact */
.contact {
    padding: 100px 0;
    background: rgba(0, 52, 89, 0.95);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #004a73;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s;
    background: #00171f;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a7e1;
    box-shadow: 0 0 15px rgba(0, 167, 225, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.send-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.send-buttons .btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
    background: #20bd5a;
}

.btn-mail {
    background: #007ea7;
    color: #ffffff;
}

.btn-mail:hover {
    background: #00a7e1;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Footer */
.footer {
    background: rgba(240, 245, 250, 0.95);
    color: #00171f;
    padding: 60px 0 30px;
    border-top: 1px solid #d0dde8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #d0dde8;
}

.logo-img-footer {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #333333;
    margin-top: 10px;
    font-family: 'DM Sans', sans-serif;
}

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

.footer-links a {
    color: #00171f;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007ea7;
    text-shadow: none;
}

.footer-bottom {
    text-align: center;
    color: #333333;
    font-family: 'DM Sans', sans-serif;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 30px 40px;
        margin-top: 70px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services,
    .about,
    .projects,
    .contact {
        padding: 60px 0;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(240, 245, 250, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid #d0dde8;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 90px 20px 30px;
        margin-top: 60px;
        border-radius: 12px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .services h2,
    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 1.7rem;
    }

    .services,
    .about,
    .projects,
    .contact {
        padding: 50px 0;
    }

    .service-card {
        padding: 25px;
    }

    .stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .send-buttons {
        flex-direction: column;
    }

    .send-buttons .btn {
        width: 100%;
    }

    .project-image {
        height: 160px;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

    .service-card {
        padding: 20px;
    }

    .about-content {
        gap: 30px;
    }

    .skills-list {
        gap: 8px;
    }

    .skill-tag {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}
