/* Global Styles */
* {
    font-family: 'Outfit', 'Orpheus Pro', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-spacing: 2px;
    transition: 0.3s ease-in-out;
}

body {
    background-color: white;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: rgb(23, 22, 20);
    color: #ffffff;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 65px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rhs-elements {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 30px;
}

#night {
    border: none;
    cursor: pointer;
    background: none;
}

.navbar a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    padding: 10px;
    transition: border-bottom 0.6s;
}

body.dark-mode .navbar a {
    color: #ffffff;
    transition: 0.3s ease-in-out;

}

.navbar a:hover {
    border-bottom: 1px solid black;
}

body.dark-mode .navbar a:hover {
    border-bottom: 1px solid white;
    transition: 0.3s ease-in-out;

}

.navbar img {
    max-width: 30px;
    height: 30px;
    object-fit: contain;
}

.letstalk {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white !important;
    width: 100px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    padding: 10px 20px;
    /* Added for better text spacing */
    font-size: 16px;
    /* Explicit size for readability */
    transition: background-color 0.3s ease;
    /* Smooth hover transition */
}

.letstalk:hover {
    background-color: #333;
    /* Hover feedback */
}

body.dark-mode .letstalk {
    background-color: white;
    color: black !important;
    transition: 0.3s ease-in-out;

}

body.dark-mode .letstalk:hover {
    background-color: #ccc;
    /* Hover feedback for dark mode */
    transition: 0.3s ease-in-out;

}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.dark-mode .menu-toggle span {
    background: #ffffff;
    transition: 0.3s ease-in-out;

}

.rhs-elements {
    transition: all 0.3s ease;
}

.rhs-elements.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 5px;
}

body.dark-mode .rhs-elements.active {
    background: rgba(0, 0, 0, 0.95);
    transition: 0.3s ease-in-out;

}

.rhs-elements.active a,
.rhs-elements.active .letstalk {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    margin: 5px 0;
    font-size: 14px;
}

.rhs-elements.active .letstalk {
    width: auto;
    background-color: black;
    color: white;
    height: 50px;
}

body.dark-mode .rhs-elements.active .letstalk {
    background-color: white;
    color: black;
    transition: 0.3s ease-in-out;

}

/* Section 1 */
.section-1 {
    width: 100%;
    height: 355px;
    background-color: #ececee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.dark-mode .section-1 {
    background-color: #171614;
    transition: 0.3s ease-in-out;

}

.section-1 h1 {
    font-size: 45px;
}

.section-1 p {
    line-height: 30px;
    margin-top: 15px;
    font-size: 17px;
    width: 500px;
    text-align: center;
}

/* Section 2 */
.section-2 {
    width: 100%;
    height: 900px;
    display: flex;
    justify-content: space-between;
    background-color: white;
}

body.dark-mode .section-2 {
    background-color: #1b1b21;
    transition: 0.3s ease-in-out;

}

.getintouch {
    width: 45%;
    height: 590px;
    padding: 70px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.findme{
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75px;
}


.getintouch h2 {
    font-size: 36px;
    font-weight: bold;
    display: inline-block;
    background: linear-gradient(90deg, #1789cb 0%, rgb(223, 80, 171) 33%, #6363aa 66%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.getintouch a {
    font-size: 14px;
    text-decoration: none;
    color: #000;
}

body.dark-mode .getintouch a {
    color: #ffffff ;
    transition: 0.3s ease-in-out;

}

body.dark-mode .getintouch img {
    filter: brightness(0) invert(1);
    transition: 0.3s ease-in-out;

}

.getpic {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background-color: rgba(232, 232, 232, 0.752);
}

body.dark-mode .getpic {
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s ease-in-out;

}

.getpic img {
    width: 25px;
    filter: brightness(100%);
}

body.dark-mode .getpic img {
    filter: brightness(150%);
    transition: 0.3s ease-in-out;
}

.sidetext {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-left: 13px;
}

.sidetext a {
    color: rgb(77, 77, 226);
}

.sidetext p {
    font-size: 14px;
    color: #000;
}

.sidetext .location-text {
    font-size: 13px;
    color: rgb(39, 39, 52);
}

body.dark-mode .sidetext p,
body.dark-mode .sidetext .location-text {
    color: #ffffff !important;
    transition: 0.3s ease-in-out;
}

body.dark-mode .sidetext a {
    color: rgb(77, 77, 226);
    transition: 0.3s ease-in-out;

}

body.dark-mode .sidetext p[style*="color: rgb(39, 39, 52)"] {
    color: #ffffff;
    transition: 0.3s ease-in-out;

}

.email,
.location,
.phone {
    width: 80%;
    height: 75px;
    border-radius: 5px;
    padding-left: 10px;
    background-color: rgba(192, 192, 192, 0.658);
    display: flex;
    flex-direction: row;
    align-items: center;
}

body.dark-mode .email,
body.dark-mode .location,
body.dark-mode .phone {
    background-color: rgba(0, 0, 0, 0.8);
    transition: 0.3s ease-in-out;

}

.messageside {
    width: 37%;
    height: 600px;
    margin-right: 80px;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.06);
}

body.dark-mode .messageside {
    background-color: #1b1b21;
    box-shadow: 0 0 8px 8px rgba(255, 255, 255, 0.06);
    transition: 0.3s ease-in-out;

}

.messageside label,
.messageside h3 {
    font-size: 14px;
    color: #313131;
}

body.dark-mode .messageside label,
body.dark-mode .messageside h3 {
    color: #ffffff;
    transition: 0.3s ease-in-out;

}

.messageside h3 {
    font-size: 17px;
    font-weight: 600;
}

.name,
.addy,
.message {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.name {
    height: 100px;
}

.addy {
    height: 100px;
}

.message {
    height: 400px;
}

.namebox,
.mailbox {
    height: 50px;
    margin-top: 10px;
    padding-left: 15px;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
}

.messagearea {
    max-width: 100%;
    min-width: 100%;
    max-height: 250px;
    min-height: 100px;
    height: 250px;
    margin-top: 10px;
    border-radius: 5px;
    padding: 15px;
    border: 1px solid rgb(133, 133, 133);
}

body.dark-mode .namebox,
body.dark-mode .mailbox,
body.dark-mode .messagearea {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #cccccc;
    transition: 0.3s ease-in-out;

}

input:focus,
textarea:focus {
    border: none;
    box-shadow: 0 0 10px #944a8a, 0 0 20px #3481a7, 0 0 30px #165a38;
}

.arrow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    gap: 20px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    color: white;
    background-color: #1789cb;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

body.dark-mode .arrow {
    background-color: #1a6e9e;
    transition: 0.3s ease-in-out;

}

.arrow:hover {
    background-color: #275772;
}

body.dark-mode .arrow:hover {
    background-color: #3a8bb4;
    transition: 0.3s ease-in-out;

}

.arrow img {
    width: 20px;
    transition: transform 0.3s ease-in-out;
}

.arrow:hover img {
    transform: translateX(8px);
}

/* Section 3 */
.section-3 {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.dark-mode .section-3 {
    background-color: #1b1b21;
    border-top: 1px solid rgba(255, 255, 255, 0.401);
    transition: 0.3s ease-in-out;

}

.section-3 h2 {
    margin-left: 20px;
}

.footerlinks {
    display: flex;
    gap: 30px;
}

.footerlinks a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
}

body.dark-mode .footerlinks a {
    color: #ffffff;
    transition: 0.3s ease-in-out;

}

.footerimgs {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.footerimgs img {
    width: 22px;
    height: 22px;
}

body.dark-mode #night,
body.dark-mode .getpic,
body.dark-mode .footerimgs img {
    filter: brightness(0) invert(1);
    transition: 0.4s ease;

}

/* Responsive Styles for Tablet (768px to 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        height: 65px;
    }

    .navbar h3 {
        font-size: 23px;
        margin-left: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .rhs-elements {
        display: none;
    }

    .rhs-elements.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 20px;
        width: 250px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-radius: 20px;
    }

    body.dark-mode .rhs-elements.active {
        background: rgba(0, 0, 0, 0.95);
        transition: 0.3s ease-in-out;

    }

    .rhs-elements.active a,
    .rhs-elements.active .letstalk {
        width: 120px;
        text-align: center;
        padding: 20px;
        margin: 5px 0;
        font-size: 14px;
    }

    .rhs-elements.active .letstalk {
        width: 120px;
        background-color: black;
        color: white;
        height: 50px;
    }

    body.dark-mode .rhs-elements.active .letstalk {
        background-color: white;
        color: black;
        transition: 0.3s ease-in-out;

    }

    .section-1 {
        height: 355px;
        margin-top: 65px;
    }

    .section-1 h1 {
        font-size: 45px;
    }

    .section-1 p {
        line-height: 30px;
        margin-top: 15px;
        font-size: 17px;
        width: 500px;
    }

    .section-2 {
        width: 100%;
        height: 1300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .getintouch {
        width: 100%;
        height: 690px;
        align-items: center;
        margin-right: 0px;
        justify-self: center;
        margin-top: -80px;
    }

    .findme{
        width: 100%;
        height: 100px;
        margin-top: 15px;
        text-align: center;
        align-items: center;
    }

    .messageside {
        width: 90%;
        height: 600px;
        justify-self: center;
        align-self: center;
        margin-right: 0px;
        margin-top: -45px;
    }
}

/* Responsive Styles for Phone and Smaller (≤768px) */
@media screen and (max-width: 768px) {
    .navbar {
        height: 65px;
    }

    .navbar h3 {
        font-size: 23px;
        margin-left: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .rhs-elements {
        display: none;
    }

    .rhs-elements.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 20px;
        width: 250px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-radius: 20px;
    }

    body.dark-mode .rhs-elements.active {
        background: rgba(0, 0, 0, 0.95);
        transition: 0.3s ease-in-out;

    }

    .rhs-elements.active a,
    .rhs-elements.active .letstalk {
        width: 120px;
        text-align: center;
        padding: 20px;
        margin: 5px 0;
        font-size: 14px;
    }

    .rhs-elements.active .letstalk {
        width: 120px;
        background-color: black;
        color: white;
        height: 50px;
    }

    body.dark-mode .rhs-elements.active .letstalk {
        background-color: white;
        color: black;
        transition: 0.3s ease-in-out;

    }

    .section-1 {
        height: 355px;
        margin-top: 65px;
    }

    .section-1 h1 {
        font-size: 45px;
    }

    .section-1 p {
        line-height: 30px;
        margin-top: 15px;
        font-size: 17px;
        width: 90%;
        max-width: 500px;
    }

    .section-2 {
        width: 100%;
        height: 1300px;
        /* Increased from auto for phones */
        flex-direction: column;
        justify-content: flex-start;
    }

    .getintouch {
        width: 100%;
        height: 600px;
        margin-top: 30px;
        align-items: center;
    }

    .email,
    .location,
    .phone {
        width: 360px;
    }

      .findme{
        width: 100%;
        margin-top: 30px;
        text-align: center;
        align-items: center;
    }

    .messageside {
        align-self: center;
        width: 90%;
        height: 600px;
        margin-right: 0;
        margin-top: -50px;
        padding: 25px;
    }

    .section-3 {
        width: 100%;
        height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 30px;
    }

    .section-3 h2 {
        margin-left: 0px;
        margin-top: 10px;
    }

    .footerimgs {
        margin-right: 0px;
    }
}
