* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif !important;
}

.navbar-collapse.collapse {
    display: flex;
    justify-content: center !important;
}

.navbar-nav {
    font-size: 12px;
}

.navbar-expand-lg .navbar-nav {
    gap: 25px;
}

.navbar.navbar-expand-lg {
    background-color: #2c314a;
}

.navbar.navbar-expand-lg .container {
    max-width: 1000px !important;
}

.navbar-nav .nav-link.active {
    color: rgb(24, 213, 27) !important;
    font-size: 12px;
}

.nav-link {
    color: rgb(182, 181, 181) !important;
}

.nav-link:hover {
    color: rgb(246, 246, 246) !important;
}

.navbar-toggler {
    color: rgb(24, 213, 27) !important;
    border: 1px solid rgb(24, 213, 27) !important;
}

.navbar-toggler-icon {
    background-image: none !important;
}

.header-text h1 {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 10px;
}

.header-tittle-green {
    color: rgb(24, 213, 27);
}

.header-text {
    display: block;
    margin-top: 100px;
    color: white;
}

.header-experiance-text {
    letter-spacing: 3px;
    margin-top: 30px;
}

header .container {
    height: 900px;
}

header {
    background-color: rgba(108, 119, 137, 0.9);
}

.info-box {
    background-color: #2c314a;
    color: #fff;
    width: 100%;
    max-width: 840px;
    margin-top: -330px;
    padding: 50px;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c314a;
    border: 3px solid rgb(24, 213, 27);
    margin: 0 auto;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.text-white.small {
    line-height: 30px;
    font-size: 15px;
    text-align: left;
    margin-bottom: 50px;
}

a.download-btn {
    border: 1px solid rgb(24, 213, 27);
    background-color: transparent;
    color: white;
    padding: 15px 25px 15px 25px;
    font-size: 13px;
    margin-top: 40px !important;
    text-decoration: none;
}

.profesional {
    background-image: url(/assets/images/035244_9f46dd7c6e524eef94172c670fff1913~mv2_d_1920_1343_s_2.avif);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;
    margin-top: -300px;
    position: relative;
    z-index: -1;
}

.profesional::after {
    position: absolute;
    content: "";
    background-color: rgba(69, 76, 90, 0.374);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.profesional-text {
    display: block;
    margin-top: 400px;
    text-align: center;
    z-index: 2;
}

#portfolio {
    padding-top: 150px;
    height: 100%;
    width: 100%;
    background-image: url(/assets/images/portfolio-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.portfolio-text {
    display: block;
    text-align: center;
    z-index: 2;
}

.experiance-text {
    display: block;
    text-align: center;
    z-index: 2;
}

.portfolio-text a {
    color: white;
    text-decoration: none;
}

.portfolio-text a:hover {
    color: #00ff66;
}

.profesional-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffff;
    letter-spacing: 10px;
}

.portfolio-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffff;
    letter-spacing: 10px;

}

.experiance-text h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffff;
    letter-spacing: 10px;
    z-index: 2;
    position: relative;
}

.profesional-text h3 {
    font-size: 24px;
    font-weight: 500;
    color: #ffff;
    letter-spacing: 2px;
    margin-top: 15px;
}

.portfolio-text h3 {
    font-size: 24px;
    font-weight: 500;
    color: #ffff;
    letter-spacing: 2px;
    margin-top: 15px;
}

.skill-line {
    display: flex;
    align-items: center;
}

.skill-name {
    flex: 0 0 120px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.skill-percent {
    flex: 0 0 50px;
    text-align: right;
    font-weight: 500;
    color: #fff;
}

.progress {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0 !important;
    height: 8px;
    width: 600px;
}

.progress-bar {
    height: 16px;
    width: 0%;
    background-color: #00ff66 !important;
    border-radius: 0 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: transparent !important;
    color: #00ff66 !important;
}

.nav-pills .nav-link {
    color: white !important;
}

#pills-tab {
    margin-top: 60px !important;
}

.projects-section {
    padding: 60px 20px;
    color: #fff;
    display: flex;
    justify-content: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
}

.project-card {
    border-radius: 20px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 100, 0.2);
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
}

.portfolio-img {
    height: 100% !important;
    object-fit: cover;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(96, 96, 96, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.overlay i {
    font-size: 2rem;
    color: #ffc107;
    padding: 18px;
    border-radius: 12px;
}

.image-container:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.image-container:hover .overlay {
    opacity: 1;
}


.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
    color: #fff;
    text-align: start;
}

.project-card p {
    font-size: 1rem;
    color: #aaa;
    margin: 5px 0 0;
    text-align: start;
}

.card-discription {
    color: white !important;
    font-size: 12px;
    text-align: start;
    margin-top: 15px;
}

.portfolio-main-text {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
    color: white;
}

#experiance {
    padding-top: 150px;
    padding-bottom: 420px;
    height: 100%;
    width: 100%;
    background-image: url(/assets/images/mountain.avif);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

#contact {
    padding-top: 150px;
    padding-bottom: 250px;
    height: 100%;
    width: 100%;
    background-image: url(/assets/images/books.avif);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}


#contact::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: rgba(10, 17, 36, 0.594);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

#experiance::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: rgba(9, 19, 48, 0.664);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #00d084, #00d084);
    top: 0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: calc(50% - 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #00d084;
    border-radius: 50%;
    z-index: 10;
}

.timeline-date {
    color: #00d084;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 14px;
    line-height: 1.6;
    color: #dddcdc;
}

.main-container {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-top: -500px;
}


.contact-container {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Left Section */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info h1 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-info p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 14px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    color: #ecf0f1;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Right Section - Form */
.form-section {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    color: #ecf0f1;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
    grid-column: 1 / -1;
}

/* Phone Field with Country Selector */
.phone-field {
    position: relative;
    grid-column: 1 / -1;
}

.phone-input-wrapper {
    display: flex;
    gap: 0;
    position: relative;
}

.country-selector-btn {
    background: #1abc9c;
    border: none;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: background 0.3s ease;
    min-width: 50px;
}

.country-selector-btn:hover {
    background: #16a085;
}

.country-selector-btn svg {
    width: 20px;
    height: 20px;
}

.phone-input-wrapper input {
    flex: 1;
    border-radius: 0 4px 4px 0;
    margin: 0;
}

/* Country Dropdown */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.country-dropdown.active {
    max-height: 300px;
    overflow-y: auto;
}

.search-box {
    padding: 12px;
    background: #1abc9c;
    border: none;
    border-radius: 4px 4px 0 0;
    width: 100%;
    font-size: 14px;
    color: #ffffff;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.country-list {
    list-style: none;
}

.country-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 14px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #ecf0f1;
}

.country-item:last-child {
    border-bottom: none;
}

.country-item:hover {
    background: #f0f0f0;
}

.country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.country-name {
    flex: 1;
}

.country-code {
    color: #95a5a6;
    font-size: 13px;
}

/* Submit Button */
.submit-btn {
    background: #1abc9c;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    grid-column: 1 / -1;
    width: 100%;
}

.submit-btn:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.social-icons a {
    color: #ecf0f1;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1abc9c;
}

footer {
    background-color: #2c314a;
    height: 100%;
    width: 100%;
    padding: 25px 0px 25px 0px;
}

footer .container {
    max-width: 1000px !important;
}

.copyright h5 {
    font-size: 15px;
    color: white;
    text-align: center;
}

.details {
    color: white;
    font-weight: 800;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .contact-info h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .ccontact-container {
        gap: 30px;
        padding: 30px 20px;
    }

    .contact-info h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .contact-info p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .country-dropdown.active {
        max-height: 250px;
    }

    .social-icons {
        gap: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 400px) {
    .contact-container {
        padding: 15px 15px;
        gap: 25px;
    }

    .main-container {
        padding: 0px;
        padding-bottom: 50px;
        padding-top: 50px;
    }

    .contact-info h1 {
        font-size: 22px;
    }

    label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px;
        font-size: 12px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        width: calc(100% - 60px);
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    .timeline {
        padding: 20px 0;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        width: calc(100% - 50px);
    }

    .timeline-dot {
        left: 15px;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .timeline-content {
        padding: 18px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-date {
        font-size: 12px;
    }

    .timeline-description {
        font-size: 13px;
    }
}

@media (max-width: 375px) {

    .timeline::before {
        left: 12px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 45px;
        width: calc(100% - 45px);
    }

    .timeline-dot {
        left: 12px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-date {
        font-size: 11px;
    }

    .timeline-description {
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


@media(max-width:992px) {
    .navbar-collapse.collapse {
        display: flex;
        justify-content: start !important;
    }
}

@media(max-width:1024px) {
    header .container .row .col-lg-3 img {
        height: 280px !important;
    }
}

@media(max-width:768px) {
    .text-white.small {
        padding-left: 0px;
        padding-right: 0px;
        font-size: 14px;
    }

    .profesional-text h1 {
        font-size: 35px;
    }

    .portfolio-text h1 {
        font-size: 35px;
    }

    .experiance-text h1 {
        font-size: 35px;
    }

    .profesional-text h3 {
        font-size: 20px;
    }

    .portfolio-text h3 {
        font-size: 20px;
    }

    .info-box {
        padding: 50px;
    }

    .progress {
        width: 400px !important;
    }

    .projects-container {
        width: 500px;
    }
}

@media(max-width:576px) {
    .header-text {
        margin-top: 50px !important;
    }

    .progress {
        width: 100% !important;
    }

    .skill-name {
        font-size: 12px !important;
    }

    .profesional-text h1 {
        font-size: 25px;
    }

    .portfolio-text h1 {
        font-size: 25px;
    }

    .experiance-text h1 {
        font-size: 25px;
    }

    .profesional-text h3 {
        font-size: 15px;
    }

    .portfolio-text h3 {
        font-size: 15px;
    }
}

@media(max-width:426px) {
    .header-text h1 {
        font-size: 35px;
    }

    .header-text h3 {
        font-size: 18px;
    }

    .profesional-text h1 {
        font-size: 20px;
    }

    .profesional-text h3 {
        font-size: 14px;
    }


    .portfolio-text h1 {
        font-size: 20px;
    }

    .experiance-text h1 {
        font-size: 20px;
    }

    .portfolio-text h3 {
        font-size: 14px;
    }

    .projects-container {
        width: 350px;
    }

    #pills-tab {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media(max-width:419px) {
    .profesional {
        margin-top: -351px;
    }
}