:root {
    --primary: #0056b3;
    --secondary: #ff6b00;
    --dark: #333;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

a, button, input {
    -webkit-tap-highlight-color: transparent;
}

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

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.logo-accent {
    color: var(--secondary);
}

.logo i {
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: scale(1.1);
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #004494;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    transition: transform 0.3s ease;
}

.mobile-menu:active {
    transform: scale(0.95);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #e05a00;
}

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

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

.personal-code {
    padding: 150px 0;
    background-color: white;
    min-height: calc(100vh - 80px - 300px);
    display: flex;
    align-items: center;
}

.code-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.code-form {
    display: flex;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background-color: transparent;
    outline: none;
    transition: box-shadow 0.3s;
}

.code-form:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 0px;
    transition: none;
}

.code-form.form-error {
    outline: 2px solid #dc3545;
    outline-offset: 0px;
    transition: none;
}

.code-form.form-success {
    outline: 2px solid #28a745;
    outline-offset: 0px;
    transition: none;
}

.code-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
}

.code-input {
    flex: 1;
    padding: 24px 30px;
    padding-right: 60px;
    border: none;
    font-size: 1.2rem;
    outline: none;
    background: transparent;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--primary);
}

.code-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 24px 45px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    align-self: stretch;
}

.code-button:hover {
    background-color: #004494;
}

.code-button:active {
    background-color: #003d7a;
}

.code-button:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

.code-button i {
    font-size: 1.2rem;
}

.code-message {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.code-message.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

.services {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.personal-code .section-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.title-main {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.title-description {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 2.5rem;
    padding: 25px;
    text-align: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.about {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.tracking {
    padding: 80px 0;
    background-color: var(--light);
    text-align: center;
}

.tracking-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.tracking-input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 1rem;
}

.tracking-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 60px;
}

.tracking-button:hover {
    background-color: #e05a00;
}

.tracking-button:active {
    transform: scale(0.98);
}

.testimonials {
    padding: 80px 0;
}

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

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
}

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

.cta {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('https://images.unsplash.com/photo-1566576912321-d58ddd7a6088?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0 20px;
    margin-top: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

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

.social-links a:active {
    transform: scale(0.95);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bbb;
    font-size: 0.9rem;
}

nav.mobile-active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px 0;
    animation: slideDown 0.3s ease-out;
    z-index: 999;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav.mobile-active ul {
    flex-direction: column;
    align-items: center;
}

nav.mobile-active ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

nav.mobile-active ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 1.1rem;
}

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

    .about-container {
        flex-direction: column;
    }
    
    .about-image, .about-content {
        flex: none;
        width: 100%;
    }

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

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 0;
        justify-content: space-between;
    }

    .logo {
        margin-left: 30px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .cta-button {
        display: none;
    }

    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        color: var(--primary);
        margin-right: 30px;
    }
    
    .hero {
        padding: 60px 0;
    }

    .personal-code {
        padding: 100px 0;
        min-height: calc(100vh - 70px - 200px);
        display: flex;
        align-items: center;
    }

    .title-main {
        font-size: 2.2rem;
    }

    .title-description {
        font-size: 1.15rem;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .code-form {
        flex-direction: column;
        max-width: 100%;
        gap: 0;
        overflow: hidden;
        border-radius: 15px;
        outline: none;
        transition: box-shadow 0.3s;
    }

    .code-form:focus-within {
        outline: 2px solid var(--primary);
        outline-offset: 0px;
        transition: none;
    }

    .code-form.form-error {
        outline: 2px solid #dc3545;
        outline-offset: 0px;
        transition: none;
    }

    .code-form.form-success {
        outline: 2px solid #28a745;
        outline-offset: 0px;
        transition: none;
    }

    .code-input-wrapper {
        border-bottom: 1px solid #e0e0e0;
    }

    .code-input {
        padding: 22px 25px;
        padding-right: 60px;
        font-size: 1.1rem;
        border: none;
    }

    .toggle-password {
        right: 15px;
        font-size: 1rem;
    }

    .code-button {
        padding: 22px;
        justify-content: center;
        font-size: 1.1rem;
        border: none;
    }

    .code-button i {
        font-size: 1.3rem;
    }

    .code-message {
        margin-top: 25px;
        padding: 18px 25px;
        font-size: 1.05rem;
    }

    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 20px;
    }

    .services {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title {
        margin-bottom: 30px;
    }

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

    .service-icon {
        font-size: 2rem;
        padding: 20px;
    }

    .service-content {
        padding: 20px;
    }

    .about {
        padding: 50px 0;
    }

    .about-content h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .about-content p {
        font-size: 0.95rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }

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

    .tracking {
        padding: 50px 0;
    }

    .tracking-form {
        flex-direction: column;
        max-width: 100%;
        gap: 10px;
    }

    .tracking-input {
        padding: 15px;
        font-size: 1rem;
        border: 2px solid #ddd;
        border-radius: 5px;
    }

    .tracking-button {
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 5px;
    }

    .testimonials {
        padding: 50px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .cta {
        padding: 50px 0;
    }

    .cta h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .footer-column p,
    .footer-column ul li {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

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

    .logo i {
        font-size: 1.3rem;
        margin-right: 8px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .service-content h3 {
        font-size: 1.1rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

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

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }
}
