/* ==========
    IMPORTS
   ========== */
/* Fonts from Google Fonts: https://fonts.google.com/ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');



/* ===========
    VARIABLES 
   =========== */
/* Colour Variables */
:root {
    --accentT: #3DC2B2; /* Puerto Rico Turquoise */
    --accentY: #FCF2B5; /* Drover Yellow Accent */
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html, body {
    overflow-x: hidden; /* ensures no element on the page causes overflow on x-axis */
}
.max-width {
    max-width: 1500px;
    padding: 0 80px;
    margin: auto;
}



/* ================
    NAVBAR STYLING 
   ================ */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 30px 0; 
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}
.navbar.sticky {
    padding: 15px 0; 
    background: var(--accentT);
}
.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Navbar: Logo Styling */
.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}
.navbar .logo a span {
    color: var(--accentT);
    transition: all 0.3s ease;
}
.navbar.sticky .logo a span {
    color: #fff;
}
/* Navbar: List Styling */
.navbar .menu li {
    list-style: none;
    display: inline-block;
}
.navbar .menu li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}
/* Navbar: List Hover Effect */
.navbar .menu li a:hover {
    color: var(--accentT);
}
.navbar.sticky .menu li a:hover {
    color: var(--accentY);
}



/* =====================
    MENU BUTTON STYLING
   ===================== */
.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}
.menu-btn:hover {
    color: var(--accentY);
}



/* ======================
    HOME SECTION STYLING
   ====================== */
.home {
    display: flex;
    background: url('images/pexels-pachon-in-motion-426015731-18337643.jpg') no-repeat center;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
}
.home .max-width {
    margin: auto 0;
    padding-left: 80px;
    padding-top: 20px;
    text-align: left;
    width: 1500px;
}
.home .home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Text-1: "Hello, my name is" */
.home .home-content .text-1 {
    font-size: clamp(18px, 2.5vw, 27px);
    line-height: 1.3;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    word-break: keep-all;
}
/* Text-2: "Alexander Glimmark" */
.home .home-content .text-2 {
    font-size: clamp(35px, 7vw, 75px);
    font-weight: 600;
    line-height: 1.2;
    margin-left: -3px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    white-space: normal;
    word-break: keep-all;
    max-width: 100%;
}
/* Text-3: "And I'm an aspiring ..." */
.home .home-content .text-3 {
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.3;
    margin: 5px 0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-align: left;
    display: inline-block;
    white-space: nowrap; 
}

.home .home-content .text-3 .typing {
    display: inline;
    color: var(--accentT);
    font-weight: 600;
    text-shadow: none;
}
.home .home-content a {
    display: inline-block;
    background: var(--accentT);
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--accentT);
    transition: all 0.3s ease;
}
.home .home-content a:hover {
    color: var(--accentT);
    background: none;
}

.typed-cursor {
    display: inline;
    vertical-align: baseline;
    margin-left: 2px;
    color: var(--accentT);
    animation: blink 0.7s infinite;
}



/* ===================================
    SIMILAR CONTENT STYLING: SECTIONS
   =================================== */
section {
    padding: 100px 0;
    font-family: 'Poppins', sans-serif;
}
section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}
section .title::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
}
section .title::after {
    position: absolute;
    bottom: -13px;
    left: 50%;
    font-size: 20px;
    color: var(--accentT);
    padding: 5px;
    background: #111;
    transform: translateX(-50%);
}



/* =======================
    ABOUT SECTION STYLING
   ======================= */
.about {
    color: #fff;
    background: #111;
}
.about .title::after {
    content: 'who i am';
}
.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
/* About: Left column */
.about .about-content .left {
    width: 45%;
}
.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}
/* About: Right column */
.about .about-content .right {
    width: 55%;
}
.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}
.about .about-content .right .text span {
    color: var(--accentT);
}
.about .about-content .right p {
    text-align: justify;
    font-size: 18px;
}
.about .about-content .right a {
    display: inline-block;
    background: var(--accentT);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--accentT);
    transition: all 0.3s ease;
}
.about .about-content .right a:hover {
    color: var(--accentT);
    background: none;
}



/* ===================================
    AREAS OF INTEREST SECTION STYLING
   =================================== */
.interest {
    color: #fff;
    background: #111;
}
.interest .title::before {
    background: #fff;
}
.interest .title::after {
    background: #111;
    content: 'what i provide';
}
.interest .interest-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
/* Interest: Card (link) Styling */
.interest .interest-content a.card {
    display: block;
    width: calc(33% - 20px);
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 20px 25px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* subtle default shadow */
}
/* Interest: Hover Effects */
.interest .interest-content a.card:hover {
    /* background: var(--accentT); */
    transform: translateY(-4px); /* lifts slightly upward - scale(1.05) */
    box-shadow: 0 0px 25px var(--accentT), 0 0 50px var(--accentT);
    animation: glowBorder 3s infinite alternate;     /* softer outer glow */
}
/* Interest: Icon Styling */
.interest .interest-content a.card i {
    font-size: 50px;
    color: var(--accentT);
    transition: color 0.3s ease;
}
/* Interest: Icon Hover - Scales and turns white */
.interest .interest-content a.card:hover i {
    color: var(--accentY);
    transform: scale(1.3);
}
/* Interest: Text Inside Card */
.interest .interest-content a.card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}



/* ========================
    SKILLS SECTION STYLING
   ======================== */
.skills {
    color: #fff;
    background: #111;
}
.skills .title::after {
    content: 'what i know';
}
.skills .skills-content {
    display: flex;
    align-items: flex-start;    /* Align items by their top edge */
    justify-content: space-between;
    flex-wrap: wrap;
}
.skills .skills-content .column {
    width: calc(50% - 30px);
    margin-top: 0;  /* Reset any uneven spacing */
}
.skills .skills-content .text span {
    color: var(--accentT);
}
/* Skills: Left column */
.skills .skills-content .left .text {
    font-size: 22px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 10px;
}
.skills .skills-content .left p {
    position: relative;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
}
.skills .skills-content .left a {
    color: var(--accentT);
    font-size: 14px;
}
/* Skills: Right column / grid */
.skills .skills-grid-container {
    background: #222;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
}
.skills .grid-title {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}
.skills .grid-title span {
    color: var(--accentT);
}
.skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    justify-items: center;
}
/* Skills: Cards */
.skills .skill-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
/* Skills: Logo Images */
.skills .skill-card img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: brightness(0.95) saturate(0.9);
    transition: all 0.3s ease;
    margin-bottom: 12px;
    background: #222;
    border-radius: 8px;
    padding: 6px;
}
.skills .skill-card p {
    cursor: default;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}
/* Skills: Hover Effect */
.skills .skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: #181818;
}
.skills .skill-card:hover img {
    filter: brightness(1.2) saturate(1.2);
    transform: scale(1.20);
}
.skills .skill-card:hover p {
    color: var(--accentT);
}



/* =====================
    LIA SECTION STYLING
   ===================== */
.lia {
    color: #fff;
    background: #111;
    padding: 100px 0;
}
.lia .title::after {
    content: 'internship';
}
.lia .lia-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
/* Left Column */
.lia .lia-left {
    flex: 0 0 45%;
}
.lia .lia-left h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accentT);
    margin-bottom: 15px;
}
.lia .lia-left p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #fff;
}
.lia .lia-left a {
    display: inline-block;
    background: var(--accentT);
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}
.lia .lia-left a:hover {
    background: transparent;
    color: var(--accentT);
    border: 2px solid var(--accentT);
}
/* Right Column */
.lia .lia-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 25px
}
/* LIA Cards */
.lia .lia-card {
    margin-top: 0;
    background-color: #222;
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
/* LIA: Card Content */
.lia .lia-card-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.lia .lia-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lia .lia-card-header i {
    color: var(--accentT);
    font-size: 22px;
}
.lia .lia-card-header h3 {
    font-size: 22px;
    font-weight: 600;
}
.lia .lia-card p {
    font-size: 15px;
    color: #fff;
}
/* LIA: Card Hover Pop */
.lia .lia-card:hover {
    /* background: var(--accentT); */
    transform: translateY(-4px);
    box-shadow: 0 0px 25px var(--accentT), 0 0 50px var(--accentT);
    animation: glowBorder 3s infinite alternate;
}
.lia .lia-card:hover .lia-card-header i {
    color: var(--accentY);
    transform: scale(1.3);
    transition: transform 0.3s ease, color 0.3s ease;
}



/* =========================
    CONTACT SECTION STYLING
   ========================= */
.contact {
    color: #fff;
    background: #111;
}
.contact .title::after {
    content: 'get in touch';
}
.contact .contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.contact .contact-content .column {
    width: calc(50% - 30px);
}
.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.contact .contact-content .text span {
    color: var(--accentT);
}
/* Contact: Left column */
.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 .info {
    margin-left: 30px;
}
.contact .contact-content .row i {
    font-size: 25px;
    color: var(--accentT);
}
.contact .contact-content .info .head {
    font-weight: 600;
}
/* Contact: Right Column */
.contact .right form .fields {
    display: flex;
}
.contact .right form .field,
.contact .right form .fields .field {
    height: 45px;
    width: 100%;
    margin-bottom: 15px;
}
.contact .right form .textarea {
    height: clamp(40px, 15vh, 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%;
    color: #fff;
    background-color: #222;
    border: 0.5px solid var(--accentT);
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
}
.contact .right form .textarea textarea {
    padding-top: 10px;
    resize: none;
}
.contact .right form .button {
    height: 47px;
    width: calc(50% - 10px);
}
/* Contact: Button (send) */
.contact .right form .button button {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accentT);
    background: var(--accentT);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact .right form .button button:hover {
    color: var(--accentT);
    background: none;
}
/* Form success & error messages */
.form-message {
    display: none;
    text-align: center;
    margin-top: 15px;
    font-size: 15px;
    transition: opacity 0.3s ease;
}
.form-message.success {
    color: var(--accentT);
}
.form-message.error {
    color: #e74c3c;
}



/* ========================
    FOOTER SECTION STYLING
   ======================== */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-family: 'Poppins', sans-serif;
}
/* Footer: Social Icons */
footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
footer .social-icons .icon {
    color: #fff;
    font-size: 22px;
    transition: all 0.3 ease;
}
footer .social-icons .icon:hover {
    color: var(--accentT);
    transform: scale(1.3);
}
/* Footer Text */
footer span {
    display: block;
    font-size: 14px;
}
footer span a {
    color: var(--accentT);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer span a:hover {
    text-decoration: underline;
    color: var(--accentY);
}



/* ==============================
    RESPONSIVE MEDIA QUERY START
   ============================== */
@media (max-width: 1300px) {
    .home .max-width {
        margin-left: 0px;
    }
}

@media (max-width: 1220px) {
    .home .home-content .text-3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        white-space: normal;
    }
}

@media (max-width: 1104px) {
    .about .about-content .left img {
    height: 350px;
    width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    /* .max-width{
        padding: 0 50px;
    } */

    /* Menu Button */
    .menu-btn {
        display: block;
        z-index: 999;
    }
    .menu-btn i.active:before {
        content: '\f00d';
    }

    /* === Navbar Manu === */
    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        right: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }
    .navbar .menu.active {
        right: 0;
    }
    .navbar .menu li {
        display: block;
    }
    .navbar .menu li:hover {
        color: var(--accentT);
    }
    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    /* === Home Section === */
    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    /* === About Section === */
    .about .about-content .column {
        width: 100%;
    }
    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }
    .about .about-content .right {
        flex: 100%;
    }

    /* === Interest Section === */
    .interest .interest-content a.card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    /* === Skills Section === */
    .skills .skills-content .column {
        width: 100%;
    }
    .skills .skills-content .left {
        flex: 100%;
    }
    .skills .skills-content .right {
        flex: 100%;
        margin-top: 30px;
    }

    /* === LIA Section === */
    .lia .lia-content {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    .lia .lia-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .lia .lia-right {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 40px;
        width: 100%;
    }
    .lia .lia-card {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    } 

    /* === Contact Section === */
    .contact .contact-content .column {
        width: 100%;
    }
    .contact .contact-content .left {
        flex: 100%;
    }
    .contact .contact-content .right {
        flex: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .skills .skills-grid-container {
        padding: 25px;
    }
    .skills .skill-card {
        padding: 20px 8px;
        max-width: 110px;
    }
    .skills .skill-card img {
        width: 45px;
        height: 45px;
    }
    .skills .grid-title {
        font-size: 20px;
    }
}

@media (max-width: 700px) {
    .home .home-content .text-3 {
        white-space: normal;
        display: inline-block; /*used to be block*/
    }
    .home .home-content .text-3 .typing {
        display: inline-block; /*used to be block*/
        vertical-align: baseline; /*new*/
        /* margin-top: 0px; was set to 5px */
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }
    .home .home-content a {
        font-size: 20px;
    }
    .home .home-content .text-3 {
        flex-direction: column;
        align-items: flex-start;
        font-size: clamp(24px, 6vw, 40px);
        white-space: normal;
        display: inline-block;  /*new*/
    }
    .home .home-content .text-3 .typing {
        display: inline-block; /*was set to block*/
        vertical-align: baseline; /*new*/
        width: auto;    /*used to be 100%*/
        text-align: left;
        margin-top: 0;  /*new*/
    }
    .interest .interest-content a.card {
        width: 100%;
    }
}    


/* ====================
    Globar Animations 
   ==================== */
/* Border glow animation */
@keyframes glowBorder {
    0% {
        box-shadow: 0 0 8px var(--accentT), 0 0 16px var(--accentT);
    }
    100% {
        box-shadow: 0 0 20px var(--accentT), 0 0 40px var(--accentT);
    }
}

/* Animation for success */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Blinking animation for cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
