@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    --primary-color: crimson;
    --dark-bg: #111;
    --dark-card-bg: #222;
    --light-bg: #fff;
    --light-text: #fff;
    --dark-text: #333;
    --body-text: #111;
    --border-radius: 6px;
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Ubuntu', sans-serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

/* ============================================
   SECTION THEME CLASSES (Alternating Pattern)
   ============================================ */
section {
    padding: 100px 0;
    font-family: var(--font-main);
}

/* Light sections (default - white background) */
.section-light {
    background: var(--light-bg);
    color: var(--body-text);
}

/* Dark sections (black background) */
.section-dark {
    background: var(--dark-bg);
    color: var(--light-text);
}

/* ============================================
   REUSABLE SECTION TITLE COMPONENT
   ============================================ */
.section-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: var(--font-heading);
}

/* Title underline */
.section-title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    transform: translateX(-50%);
}

.section-light .section-title::before {
    background: var(--body-text);
}

.section-dark .section-title::before {
    background: var(--light-text);
}

/* Title subtitle text */
.section-title::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    font-size: 20px;
    color: var(--primary-color);
    padding: 5px;
    transform: translateX(-50%);
}

.section-light .section-title::after {
    background: var(--light-bg);
}

.section-dark .section-title::after {
    background: var(--dark-bg);
}

/* ============================================
   REUSABLE BUTTON COMPONENT
   ============================================ */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    color: var(--primary-color);
    background: transparent;
}

.btn-large {
    font-size: 25px;
    padding: 12px 36px;
}

.btn-small {
    font-size: 18px;
    padding: 8px 16px;
}

/* ============================================
   REUSABLE CARD COMPONENT
   ============================================ */
.card {
    background: var(--dark-card-bg);
    border-radius: var(--border-radius);
    padding: 25px 35px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    background: var(--primary-color);
}

.card-box {
    transition: var(--transition);
}

.card:hover .card-box {
    transform: scale(1.05);
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.card-text {
    font-size: 25px;
    font-weight: 500;
    margin: auto 0 7px 0;
}

.card-date {
    font-size: 16px;
    color: inherit;
}

/* ============================================
   REUSABLE CONTENT LAYOUT
   ============================================ */
.content-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.content-flex-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.column-half {
    width: calc(50% - 30px);
}

.column-third {
    width: calc(33% - 20px);
}

/* ============================================
   NAVBAR STYLING
   ============================================ */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.navbar.sticky {
    padding: 15px 0;
    background: var(--primary-color);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: var(--light-text);
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span {
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar.sticky .logo a span {
    color: var(--light-text);
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    color: var(--light-text);
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: var(--primary-color);
}

.navbar.sticky .menu li a:hover {
    color: var(--light-text);
}

.menu-btn {
    color: var(--light-text);
    font-size: 23px;
    cursor: pointer;
    display: none;
}

/* ============================================
   HOME SECTION
   ============================================ */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("images/home-banner-low-min.jpg");
    background-size: cover;
    background-position: 70%;
    background-repeat: no-repeat;
    height: 100vh;
    color: var(--light-text);
    min-height: 500px;
    font-family: var(--font-heading);
}

.home .max-width {
    width: 100%;
    margin: auto 0 auto 0px;
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about .section-title::after {
    content: "who I am";
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right p {
    text-align: justify;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience .section-title::after {
    content: "where I worked";
}

.experience .experience-content {
    justify-content: center;
}

.experience .experience-content .card {
    width: calc(33% - 20px);
    background: var(--dark-card-bg);
    padding: 20px 25px;
    margin: 10px;
}

.experience .experience-content .card img {
    width: 90%;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.experience .experience-content .card img.ripple-logo {
    height: 100px;
}

.experience .experience-content .card:hover img {
    filter: brightness(0) invert(1);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills .section-title::after {
    content: "what I know";
}

.skills .skills-content .bars {
    margin-bottom: 15px;
}

.skills .skills-content .info {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content span {
    font-weight: 500;
    font-size: 18px;
}

.skills .skills-content .line {
    height: 5px;
    width: 100%;
    background: lightgrey;
    position: relative;
}

.skills .skills-content .line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--primary-color);
    width: var(--skill-width, 0%);
}

/* Skill-specific widths */
.skills .skills-content .left .nodejs::before { width: 90%; }
.skills .skills-content .left .ts::before { width: 90%; }
.skills .skills-content .left .angular::before { width: 80%; }
.skills .skills-content .left .mongodb::before { width: 90%; }
.skills .skills-content .left .git::before { width: 90%; }
.skills .skills-content .right .reactnative::before { width: 80%; }
.skills .skills-content .right .csharp::before { width: 70%; }
.skills .skills-content .right .oop::before { width: 90%; }
.skills .skills-content .right .tdd::before { width: 70%; }
.skills .skills-content .right .azpipelines::before { width: 90%; }

/* ============================================
   PROJECTS/CERTIFICATIONS SECTION
   ============================================ */
.projects .section-title::after {
    content: "what I achieved";
}

.projects .carousel .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.projects .carousel .card .card-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects .carousel .card img {
    height: 150px;
    width: 150px;
    padding: 5px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    transition: var(--transition);
}

.projects .carousel .card img.logo-contain {
    padding: 20px;
    object-fit: contain;
}

.projects .carousel .card:hover img {
    border-color: var(--light-text);
}

.projects .carousel .card .btn-small {
    margin-top: auto;
}

.projects .carousel .card:hover .btn-small {
    color: var(--primary-color);
    background: var(--light-text);
}

.projects .carousel .card .btn-small:hover {
    border-color: var(--light-text);
    color: var(--light-text);
    background: transparent;
}

/* Owl Carousel specific styles */
.owl-carousel .owl-stage {
    display: flex;
}

.owl-item {
    display: flex;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none !important;
    border-radius: 14px;
    border: 2px solid var(--primary-color) !important;
    transition: var(--transition);
}

.owl-dot.active {
    width: 35px;
    border-radius: 14px;
}

.owl-dot.active,
.owl-dot:hover {
    background: var(--primary-color) !important;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact .section-title::after {
    content: "get in touch";
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .left p {
    text-align: justify;
}

.contact .contact-content .left .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: var(--primary-color);
}

.contact .contact-content .row .info {
    margin-left: 30px;
}

.contact .contact-content .row .info .head {
    font-weight: 500;
}

.contact .contact-content .row .info .sub-title {
    color: var(--dark-text);
}

.contact .right {
    position: relative;
}

.contact .right .message-box {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    outline: 10px solid var(--primary-color);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    text-align: center;
    vertical-align: middle;
    color: var(--light-text);
}

.contact .right .message-box .centered-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
}

.contact .right .message-box .message-title {
    font-size: 30px;
    margin-bottom: 10px;
}

.contact .right form .fields {
    display: flex;
}

.contact .right form .fields .field,
.contact .right form .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}

.contact .right form .textarea {
    height: 80px;
    width: 100%;
}

.contact .right form .name {
    margin-right: 10px;
}

.contact .right form .email {
    margin-left: 10px;
}

.contact .right form .field input,
.contact .right form .textarea textarea {
    height: 100%;
    width: 100%;
    border: 1px solid lightgrey;
    border-radius: var(--border-radius);
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: var(--font-main);
}

.contact .right form .textarea textarea {
    padding-top: 10px;
    resize: none;
}

.contact .right form .button {
    height: 47px;
    width: 170px;
}

.contact .right form .button button {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 20px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.contact .right form .button button:hover {
    color: var(--primary-color);
    background: transparent;
}

/* Loader component */
.loader-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.loader {
    border: 5px solid #e6e6e6;
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 35px;
    height: 35px;
    animation: spin 2s linear infinite;
    align-self: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 20px 23px;
    font-family: var(--font-main);
}

footer span a {
    color: var(--primary-color);
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */
@media (max-width: 1300px) {
    .home .max-width {
        margin-left: 0px;
    }
}

@media (max-width: 1104px) {
    .about .about-content .left img {
        max-height: 450px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active::before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: var(--dark-bg);
        text-align: center;
        padding-top: 80px;
        transition: var(--transition);
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    .navbar.sticky .menu li a:hover {
        color: var(--primary-color);
    }

    .home .home-content .text-2 {
        font-size: 70px;
    }

    .home .home-content .text-3 {
        font-size: 35px;
    }

    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    .max-width {
        max-width: 800px;
    }

    .about .about-content .column-half,
    .skills .skills-content .column-half,
    .contact .contact-content .column-half {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about-content .right {
        flex: 100%;
    }

    .experience .experience-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    .contact .contact-content .column-half {
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }

    .home .home-content .text-2 {
        font-size: 60px;
    }

    .home .home-content .text-3 {
        font-size: 32px;
    }

    .home .home-content a {
        font-size: 20px;
    }

    .experience .experience-content .card {
        width: 100%;
    }

    .experience .experience-content .card img {
        width: 50%;
        height: 60px;
    }

    .experience .experience-content .card img.ripple-logo {
        height: 75px;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 45px;
    }

    .home .home-content .text-3 {
        font-size: 23px;
    }

    .contact .right form .button {
        margin: auto;
    }

    .experience .experience-content .card img {
        width: 70%;
        height: 60px;
    }

    .experience .experience-content .card img.ripple-logo {
        height: 75px;
    }
}
