/**
* Template Name: Kelvin - Combined and Corrected Styles
* Original Files: style.css, custom.css
* Purpose: Merged into one stylesheet, corrected mobile topbar spacing issue.
*/

/* =======================================================
   1. BASE STYLES (FROM style.css)
   ======================================================= */

body {
    background-color: #f2f2f2;
    font-family: "Lato";
    font-weight: 300;
    font-size: 16px;
    color: #555;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}


/* Titles */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway";
    font-weight: 300;
    color: #333;
}


/* Paragraph & Typographic */

p {
    line-height: 28px;
    margin-bottom: 25px;
}

.centered {
    text-align: center;
}


/* Links */

a {
    color: #1abc9c;
    word-wrap: break-word;
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

a:hover,
a:focus {
    color: #7b7b7b;
    text-decoration: none;
    outline: 0;
}

a:before,
a:after {
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}


/*---------------------------------------------------
3.1 Topbar (FROM style.css)
---------------------------------------------------*/

#section-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    overflow: visible;
    font: normal 16px/24px 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#section-topbar a {
    color: #fff;
}

#topbar-inner {
    background: #111;
    line-height: 0;
    text-align: center;
}


/* Top Bar Fade In/Out (FROM style.css) */
#section-topbar {
 opacity: 0;
  pointer-events: none;          /* makes links unclickable while hidden */
  transform: translateY(-20px);  /* small upward offset */
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#section-topbar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#section-topbar ul#nav {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    border-right: 1px solid #222;
    /* For IE, the outcast */
    zoom: 1;
    display: flex;
    justify-content: center;
}

#section-topbar ul#nav>li {
    display: block;
    float: left;
    padding: 0;
}

#section-topbar ul#nav a {
    display: block;
    font: normal 11px/18px "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-decoration: none;
    padding: 18px 20px 18px 20px;
    border-left: 1px solid #222;
}

#section-topbar ul#nav a:focus {
    background: #111;
    text-decoration: none;
    border-left: 1px solid #111;
}

#section-topbar ul#nav a:hover {
    background: #222;
    text-decoration: none;
    border-left: 1px solid #111;
}

#section-topbar ul#nav .active a {
    background: #44bbaa;
    border-left: 1px solid #111;
}

#section-topbar ul#nav .active a:hover {
    background: #44bbaa;
}

#section-topbar i {
    font-size: 25px;
}


/*---------------------------------------------------
SECTION WRAPS (FROM style.css)
---------------------------------------------------*/


/* Header Wrap */

.hero-img {
    width: 100%;
}

#headerwrap {
    /* background: url(../img... (rest of the comment is cut off) */
    /* padding-top: 62px; (Commented out in original style.css) */
    text-align: center;
    background-attachment: relative;
    background-position: center center;
    min-height: 500px;
    width: 100%;
    -webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#headerwrap h1 {
    font-size: 80px;
    color: white;
}

#headerwrap h3 {
    font-size: 20px;
    color: white;
}

/* Intnro Wrap */

#intro {
    background: #2c3e50;
    padding-top: 60px;
    padding-bottom: 60px;
    color: white;
}

#intro h5, p {
    color: white;
}

#intro i {
    color: white;
    font-size: 20px;
    padding-right: 8px;
    vertical-align: middle;
}

#skillswrap {
    background: #2c3e50;
    padding-top: 60px;
    padding-bottom: 60px;
    color: white;
}

#skillswrap h5, p {
    color: white;
}

#black {
    color: black;
}

.typography-preset-2 h5 {
    font-size: 2rem;
    margin-top: unset;
    left: -40px;
    top: 10px;
    position: relative;
}

.typography-preset-3 h5{
    font-size: 3rem;
    margin-top: unset;
}

.typography-preset-18px {
    font-size: 18px;
}

#footwrap {
    background: #2f2f2f;
    padding-top: 50px;
    padding-bottom: 50px;
    border: 1px solid red;
}

#footwrap p {
    color: black !important;
}

/* Contact Section (last part of style.css) */
.validation {
    color: red;
    display: none;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-size: 13px;
}

.contact-form .loading {
    display: none;
    color: #555;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin: 15px 0;
}

.contact-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    -webkit-animation: animate-loading 1s linear infinite;
    animation: animate-loading 1s linear infinite;
}

@-webkit-keyframes animate-loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes animate-loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* =======================================================
   2. CUSTOM OVERRIDES & ADDITIONS (FROM custom.css)
   ======================================================= */

.custom-header {
    background: rgba(55, 75, 111, 0.5);
}

.custom-header h3 {
    padding-bottom: 16px;
}

#intro {
    padding-top: 48px; /* Overrides style.css padding-top: 60px */
}

.contained {
    padding: 0 140px;
}

#resume .container.desc.contained {
    padding: 0 140px;
}

#resume .container.desc.contained .col-lg-2.typography-preset-3 {
    padding-top: 48px;
}

#resume .education-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 96px;
}

#resume .education-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#resume .education-item {
    flex: 1;
}

#resume .education-item t {
    font-weight: bold;
    font-size: 1.1em;
}

#resume .education-date {
    min-width: 120px;
    text-align: right;
}

#resume .education-date p {
    margin: 0;
}

@media (max-width: 992px) {
    #resume .col-lg-2 {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #resume .education-entry {
        flex-direction: column;
        gap: 10px;
    }
    #resume .education-date {
        text-align: left;
        min-width: auto;
    }
}

.typed-style {
    font-weight: bold;
}

.clock {
    background: #555;
    color: #fff;
    font-size: 2rem;
    text-align: center;
    font-weight: 500;
}

.form__form-clock {
    text-align: center;
    margin-top: 45px;
}

#footer-p {
    text-align: center;
    color: azure !important;
}

.embedded-map {
    margin-top: 45px;
}


/* Media queries */

@media screen and (max-width: 1200px) {
    #headerwrap h1 {
        font-size: 60px;
        margin-top: unset;
        padding-top: 24px;
    }
    #headerwrap h3 {
        font-size: 18px;
        margin-bottom: unset;
        padding-bottom: 24px;
    }
    .education-item p {
        margin-bottom: unset;
    }
}

@media screen and (max-width: 992px) {
    #headerwrap h1 {
        font-size: 48px;
    }
    #headerwrap h3 {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    #headerwrap h1 {
        font-size: 36px;
    }
    #headerwrap h3 {
        font-size: 14px;
    }
}


/* Navigation bar responsive styles (Cleaned and fixed) */

@media screen and (max-width: 768px) {
    #topbar-inner {
        padding: 0 15px;
        background: rgba(55, 75, 111, 0.95);
        /* Removed redundant position/top/z-index as #section-topbar is already fixed */
        width: 100%;
        height: 56px;
    }
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        right: 15px;
        top: 50%; /* Adjusted for better vertical alignment */
        transform: translateY(-50%);
        z-index: 1001;
    }
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    #nav {
        display: none;
        position: fixed;
        top: 48px;
        right: -100%;
        width: 200px;
        height: auto;
        background: rgba(55, 75, 111, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        padding: 10px 0;
        transition: right 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(5px);
        border-radius: 0 0 0 10px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    }
    #nav.active {
        display: flex;
        right: 0;
        right: 30px;
        top: 46px;
        width: 30%;
    }
    .menu-item {
        margin: 5px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        width: 100%;
        text-align: right;
    }
    #nav.active .menu-item {
        opacity: 1;
        transform: translateX(-12px);
    }
    .menu-item a {
        font-size: 1.1em;
        padding: 8px 20px;
        display: block;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        outline: none;
        display: flex !important;
        justify-content: center;
        padding: 16px 0 16px 32px !important;
    }
    .menu-item a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }
    .menu-item a i {
        margin-right: 10px;
    }
    .custom-header { 
        padding-bottom: 16px;
    }
}

/* Base responsive styles (FROM custom.css) */

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}


/* CRITICAL FIX: Ensure no default margins on the viewport elements in mobile */
@media screen and (max-width: 768px) {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* Fix for white stripe issue (Consolidated and Corrected) */
@media screen and (max-width: 768px) {
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12 {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }
    .col-lg-offset-1,
    .col-lg-offset-2,
    .col-lg-offset-3,
    .col-lg-offset-4,
    .col-lg-offset-5,
    .col-lg-offset-6,
    .col-lg-offset-7,
    .col-lg-offset-8,
    .col-lg-offset-9,
    .col-lg-offset-10,
    .col-lg-offset-11,
    .col-lg-offset-12 {
        margin-left: 0;
    }
    #section-topbar {
        width: 100vw;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    #topbar-inner {
        width: 100%;
        margin: 0;
        padding: 0 15px;
    }
    
    /* FIX FOR WHITE SPACE: Ensure header content starts below the fixed top bar (60px buffer) */
    #headerwrap {
        width: 100vw;
        margin: 0;
        padding: 0;
        /* padding-top: 60px !important;  */
    }
    
    .img-responsive {
        max-width: 100%;
        height: auto;
    }
    .embedded-map {
        width: 100% !important;
        height: 300px !important;
    }

    /* Additional responsive fixes */
    .hero-img {
        content: url("../img/facundo-profile.jpg");
        width: 100%;
        height: auto;
    }
    #intro {
        padding-top: 100px !important;
    }
    .desc {
        padding: 0 15px;
    }
    hr.col-lg-10 {
        width: 100%;
        margin: 20px 0;
    }
    #skillswrap {
        padding: 40px 0;
    }
    #skillswrap .container {
        padding: 0 15px;
    }
    #footwrap {
        padding: 40px 0;
    }
    #footwrap .container {
        padding: 0 15px;
    }
    .contact-form {
        padding: 0 15px;
    }
}


/* Fix for overlapping header at 700px - kept for .custom-header styles */
@media screen and (max-width: 700px) {
    .custom-header {
        margin-top: 20px;
        padding-top: 20px;
    }
}


/* Fix for very small screens */

@media screen and (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    #headerwrap h1 {
        font-size: 32px;
        padding: 0 10px;
    }
    #headerwrap h3 {
        font-size: 14px;
        padding: 0 10px 16px 0;
    }
    .education-item t {
        font-size: 1em;
    }
    .education-item p {
        font-size: 0.9em;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 618px;
    left: 0;
    z-index: 1;
}


/*Pricing*/

@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
body {
    font-family: "Nunito", sans-serif;
}

#pricing {
    padding: 40px 0;
    background-color: #f8f9fa;
}

#pricing .title h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
}

#pricing .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

#pricing .col-lg-4 {
    display: flex;
    padding: 0 15px;
    margin-bottom: 30px;
}

#pricing .pricing_box {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#pricing .pricing_box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#pricing .pricing_box span.tag {
    font-size: 20px;
    color: #2c3e50;
    display: inline-block;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 15px;
}

#pricing .pricing_box h2 {
    line-height: 1;
    margin-top: 10px;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
}

#pricing .pricing_box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

#pricing .pricing_box ul li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
}

#pricing .pricing_box ul li i {
    color: #5666a5;
    margin-right: 10px;
    font-size: 18px;
}

#pricing .pricing_box a.btn {
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    padding: 15px 40px;
    background-color: #5666a5;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
}

#pricing .pricing_box a.btn:hover {
    background-color: #feda1f;
    color: #000;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    #pricing .col-lg-4 {
        width: 50%;
    }
}

@media (max-width: 767.9px) {
    #pricing .col-lg-4 {
        width: 100%;
    }
    #pricing .pricing_box {
        padding: 30px;
    }
    #pricing .pricing_box h2 {
        font-size: 36px;
    }
    #pricing .title h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/*CTA Button*/

@import url(https://fonts.googleapis.com/css?family=Raleway:400);

.snip1431 {
    font-family: "Raleway", Arial, sans-serif;
    border: none;
    background-color: #5666a5;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    padding: 0px 30px;
    display: inline-block;
    margin: 15px 30px;
    text-transform: uppercase;
    line-height: 46px;
    font-weight: 400;
    font-size: 1em;
    outline: none;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

/* Tech List (FROM custom.css) */
.tech-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tech-list li {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.tech-list li i {
    color: #1abc9c;
    margin-right: 8px;
}

/* Modal and CTA Styles (FROM custom.css) */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    max-width: 900px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-content {
    padding: 20px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

#cta {
    background-color: #f2f2ff;
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #5666a5;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Portfolio grid and overlay styles (FROM custom.css) */

@media (max-width: 768px) {
    .tech-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tech-list li {
        font-size: 13px;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    z-index: 9999;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: #ccc;
}