/******************************* 
GENERAL
********************************/
body {
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--white);
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 15px auto 30px;
    border-radius: 2px;
}

/******************************* 
NAVBAR
********************************/
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 100;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    /* background-color: rgba(15, 27, 45, 0.95); */
    /* background-color: var(--bg-dark); */
    background-color: var(--medium-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white);
    transition: color 0.4s ease;
}

.logo-img {
    height: 40px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo-link {
    display: inline-block;
    transition: filter 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    filter: brightness(1.3); 
}


.logo-link:hover .logo-img {
    transform: scale(1.05); 
}

/* Links */
.nav-center {
    display: flex;
    justify-content: center;
    flex: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 25px;
}

.nav-links li {
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language */
.nav-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.language {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.lang-flag:hover {
    transform: scale(1.15);
}

/* Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.4s ease;
}

/******************************* 
HERO
********************************/
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, var(--main), var(--second));
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
    z-index: 2;
}

.scroll-indicator:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: -5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.1s;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.welcome-message {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--white);
    font-style: italic;
    letter-spacing: 1px;
}

.animated-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent);
    margin-left: 5px;
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/******************************* 
ABOUT
********************************/
.about-section {
    background-color: var(--bg-dark);
    color: var(--white);
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-dark);
    clip-path: ellipse(50% 50% at 50% 0%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2; /* Por encima de la onda */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* .section-title {
    font-size: 2.5rem;
    color: var(--white); 
    margin: 0 0 15px;
    position: relative;
} */

.section-title {
    font-size: 2.5rem;
    color: var(--white); 
    margin: 0 0 15px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.section-divider span {
    width: 60px;
    height: 3px;
    background: var(--accent);
    display: inline-block;
    position: relative;
}

.section-divider span::before,
.section-divider span::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    top: 50%;
    transform: translateY(-50%);
}

.section-divider span::before {
    left: -10px;
}

.section-divider span::after {
    right: -10px;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    color: rgba(255, 255, 255, 0.8); 
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white); 
    font-weight: 300;
    text-align: center;
}

.about-intro strong {
    color: var(--accent);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: center;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px auto;
    max-width: 450px;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-right: 15px;
}

.detail-text {
    font-weight: 500;
    color: var(--white);
}

.about-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.primary-btn {
    background: var(--accent); 
    color: var(--white);
    border: 2px solid var(--accent);
}

.primary-btn:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.outline-btn {
    background: transparent;
    color: var(--white); 
    border: 2px solid var(--white);
}

.outline-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/******************************* 
SERVICES
********************************/
.services-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--white);
}

.tech-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.services-header {
    margin-bottom: 50px;
}

.services-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.services-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 800px;
    margin: 0 auto 30px;
}

.services-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--medium-blue);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background-color: var(--main);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--white);
}

.service-description {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: var(--gray-300);
}

.service-features li:before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.service-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.service-btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

/******************************* 
SKILLS 
********************************/
.skills-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--white);
}

.skills-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* background-image: url('img/tech-pattern.png'); */
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.skills-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.skills-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.skills-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 800px;
    margin: 0 auto 30px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.skills-column {
    background-color: var(--medium-blue);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skills-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background-color: var(--main);
}

.skills-column:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skills-column:hover:before {
    transform: scaleX(1);
}

.skills-heading {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

/* .skill-icon {
    width: 50px;
    height: 50px;
    color: var(--gray-300);
    margin-bottom: 10px;
    transition: all 0.3s ease;
} */

 .skill-icon {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    color: var(--accent);
    transform: scale(1.1); 
}

/* .skill-item:hover .skill-icon {
    color: var(--accent);
} */

.skill-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-300);
}

/* Fondo animado para la sección de habilidades */
.skills-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.skills-animated-background .floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.skills-animated-background .floating-element i {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5));
}

.skills-animated-background .floating-element.text {
    font-weight: 900;
    font-size: 15rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgba(255, 107, 53, 0.05);
    user-select: none;
    pointer-events: none;
    position: absolute;
    z-index: 0;
    animation: floatSlow 20s ease-in-out infinite;
}

/* Posiciones de los elementos flotantes */
.skills-animated-background .html-code {
    top: 15%;
    left: 10%;
    animation: float 14s ease-in-out infinite;
}

.skills-animated-background .js-code {
    bottom: 10%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
    animation-delay: 3s;
}

.skills-animated-background .css-code {
    top: 25%;
    right: 15%;
    animation: float 16s ease-in-out infinite;
    animation-delay: 1s;
}

.skills-animated-background .react-code {
    top: 90%;
    right: 20%;
    animation: float 13s ease-in-out infinite, rotate 30s linear infinite;
}

.skills-animated-background .node-code {
    bottom: 1%;
    right: 30%;
    animation: float 15s ease-in-out infinite;
    animation-delay: 2s;
}

.skills-animated-background .database {
    top: 40%;
    left: 30%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 4s;
}

.skills-animated-background .skills-text {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.skills-animated-background .git-code {
    top: 55%;
    left: 8%;
    animation: float 11s ease-in-out infinite;
    animation-delay: 1.5s;
}

.skills-animated-background .php-code {
    top: 35%;
    right: 8%;
    animation: float 14s ease-in-out infinite;
    animation-delay: 3.2s;
}

.skills-animated-background .python-code {
    bottom: 2%;
    left: 40%;
    animation: float 13s ease-in-out infinite;
    animation-delay: 2.7s;
}

.skills-animated-background .typescript-code {
    top: 20%;
    left: 25%;
    animation: float 15s ease-in-out infinite;
    animation-delay: 4.5s;
}

.skills-animated-background .terminal {
    top: 10%;
    right: 35%;
    animation: float 12s ease-in-out infinite, pulse 8s infinite;
    animation-delay: 1s;
}

.skills-animated-background .code-block {
    bottom: 25%;
    right: 8%;
    animation: float 13.5s ease-in-out infinite;
    animation-delay: 2.2s;
}

/* Animación de pulso para algunos elementos */
/* @keyframes pulse {
    0%, 100% {
        opacity: 0.05;
        transform: scale(1);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.1);
    }
} */

/******************************* 
PORTFOLIO SECTION
********************************/
.portfolio-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--white);
}

.portfolio-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* background-image: url('img/tech-pattern.png'); */
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.portfolio-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.portfolio-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 800px;
    margin: 0 auto 30px;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.portfolio-card {
    background-color: var(--medium-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 48, 135, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links {
    display: flex;
    gap: 15px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: var(--white);
    color: var(--accent);
}

.portfolio-link i {
    margin-right: 5px;
    font-size: 1.1rem;
}

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--white);
}

.portfolio-description {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.portfolio-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 50px;
}

.portfolio-more {
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

.portfolio-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(5px);
}

/******************************* 
CONTACT SECTION
********************************/
.contact-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--white);
}

.contact-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* background-image: url('img/tech-pattern.png'); */
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.contact-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.contact-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    max-width: 800px;
    margin: 0 auto 30px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-info {
    background-color: var(--medium-blue);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: fit-content;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--white);
}

.contact-info-content p, 
.contact-info-content a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: var(--accent);
}

.contact-social {
    margin-top: 20px;
}

.contact-social h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-social-icons {
    display: flex;
    gap: 15px;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-300);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.contact-social-icons a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form-container {
    background-color: var(--medium-blue);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray-300);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--accent);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.submit-btn:hover {
    background-color: var(--white);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn i {
    margin-left: 8px;
    font-size: 1.2rem;
}

.submit-btn.sending {
    background-color: var(--gray-400);
    pointer-events: none;
    position: relative;
}

.submit-btn.sending:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    right: 15px;
}

.form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}


.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-100vh);
    background-color: var(--main, #003087);
    color: white;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 450px;
    text-align: left;
    border-left: 4px solid var(--accent);
}

.custom-popup.show {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.custom-popup .icon {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.custom-popup .message {
    line-height: 1.5;
}

.custom-popup .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup .close-btn:hover {
    color: var(--accent);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/******************************* 
FOOTER
********************************/
.footer {
    background-color: var(--medium-blue);
    color: var(--white);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('img/tech-pattern.png'); */
    opacity: 0.03;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px; 
}

.footer-logo p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    font-family: 'Cormorant';
}


.footer-desc {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(-5px);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray-300);
}

.footer-contact i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 12px;
}

.footer-contact a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 0 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--gray-300);
    font-size: 0.9rem;
    width: 100%; 
}

/* 
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--gray-300);
    font-size: 0.9rem; 
} */

.footer-policies {
    display: flex;
    gap: 20px;
}

.footer-policies a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: var(--accent);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn i {
    font-size: 24px;
}

.scroll-top-btn:hover {
    background-color: var(--accent);
    transform: translateY(-5px) translateX(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.scroll-top-btn.show:hover i {
    animation: bounce 1s ease infinite;
}

.contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 10px 20px;
    background-color: var(--main);
    color: var(--white);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 5px;
}

.contact-btn-text {
    display: inline-block;
    padding-top: 2px;
}

.contact-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover i {
    animation: bounce-down 1s ease infinite;
}

.contact-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}