@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

hr {
    border: none;          /* remove default border */
    height: 3px;           /* thickness */
    background-color: #0F1038; /* color */
    margin: 2rem 0;        /* optional: spacing above/below */
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    margin: 0 auto;
/*    width: 100%;*/
    max-width: 1500px;
    height: 100vh;
    overflow-x: hidden !important;
    background-color: black;
    color: white;
}

header{
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5rem 9% 5rem;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, black 70%, transparent 100%);
    padding-bottom: 50px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;                      /* space between image and “TravGalax” */
}

.logo{
    font-size: 3rem;
    color: #FFFFFF;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #6b6dd7;
    border-bottom: 3px solid #6b6dd7;
}

#navButton{
    display: none;
}

@media(max-width:995px){
    #navButton{
        position: absolute;
        display: block;
        top: 1.5rem;
        right: 1.5rem;
        border-radius: 4px;
        background-color: #6b6dd7;
        width: 5rem;
    }
    #navButton i{
        color: #ffffff;
        font-size: 3rem;
        padding: 1rem;
    }
    
    #navIcon {
      transition: transform 0.35s cubic-bezier(.2,.9,.2,1), opacity 0.2s;
      transform-origin: center;
      display: inline-block; /* ensure transform works well */
    }
    
    /* when button has class open, animate */
    #navButton.open #navIcon {
      transform: rotate(90deg) scale(1.08);
    }
    
    nav{
        position: absolute;
        display: block;
        top: 8rem;
        right: 0;
        width: 40%;
        border: 3px solid #6b6dd7;
        border-right: 0;
        border-bottom-left-radius: 2rem;
        border-top-left-radius: 2rem;
        background-color: #161616;
        /* padding: 1rem solid; */
        /* border-top: 0.1rem solid rgba(0,0,0,0.1); */
        
        opacity: 0;
        transform: scale(0.85) translateX(50px); /* start slightly to the right */
        filter: blur(8px);
        transition:
            opacity 0.35s ease,
            transform 0.35s ease,
            filter 0.35s ease;
        pointer-events: none;
    }

    nav.active{
        opacity: 1;
        transform: scale(1) translateX(0); /* slide to normal position */
        filter: blur(0);
        pointer-events: auto;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        padding: 0 1rem;
    }

    nav a.active{
        border-bottom: 0.5rem solid #6b6dd7;
    }
    
    .home{
        align-items: initial !important;
    }
    
    .home-content-news h1 {
        font-size: 2.5rem !important;
        line-height: 1 !important;
    }
    
    .app-header {
        display: grid !important;
    }
}

section{
    min-height: 100vh;
    padding: 7rem 9% 7rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home-content, .home-content-news {

}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content-news h1 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.3;
}

span{
    color: #6b6dd7;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-content-news p {
    font-size: 1.5rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #6b6dd7;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #6b6dd7;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #6b6dd7;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #6b6dd7;
    box-shadow: 0  0 25px #6b6dd7;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #6b6dd7;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #6b6dd7;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #6b6dd7;
    color: black;
    box-shadow: 0 0 25px #6b6dd7;
}

.typing-text{
    font-size: 324px;
    font-weight: 600;
    min-width: 580px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #6b6dd7;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

.app-header {
    display: flex;
    align-items: center;   /* center icon + text vertically */
    gap: 20px;             /* space between icon and text */
    margin-bottom: 15px;
    justify-content: space-between;
}

.app-left {
    display: flex;
    align-items: center;
    gap: 20px; /* space between icon and title block */
}

.app-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;   /* optional: rounded look */
}

.app-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 15px;
}

.app-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.app-title span {
    color: #6c63ff; /* purple highlight */
}

.app-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #aaa;   /* lighter subtitle */
}

/*
.notice {
  max-width: 1500px;
  margin: 0 auto;
  padding: 160px 9% 60px;
}
*/

.notice {
    max-width: 1200px;
    margin: 160px auto 60px;
    padding: 40px 30px;
    border-radius: 24px;
}

.footer {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    margin-top: 60px;
    line-height: 12.5px;
}

.legal-links{
    --text:#d9dbe6;            /* base text */
    --accent:orange;          /* your orange accent */
    font-size: 1.25rem;
    color:var(--text);
}

.legal-links a{
    color:var(--text);
    text-decoration:none;
    background:
        linear-gradient(var(--accent),var(--accent)) bottom left / 0 2px no-repeat;
    transition: background-size .25s ease, color .25s ease, opacity .25s ease;
    opacity:.9;
}
.legal-links a:hover,
.legal-links a:focus-visible{
    color:#fff;
    background-size: 100% 2px;
    outline:none;
}
.legal-links span {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1;
    opacity: .45;
}

@media (prefers-reduced-motion: reduce){
    .legal-links a{ transition:none; }
}

@keyframes cursor{
    to{
        border-left: 3px solid #6b6dd7;
    }
}

@keyframes words{
    0%, 20%{
        content: "a Web Developer";
    }
    21%, 40%{
        content: "an Apple Developer";
    }
    41%, 60%{
        content: "an Android Developer";
    }
    61%, 80%{
        content: "a Photographer";
    }
    81%, 100%{
        content: "a Traveler";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 6rem;
    }
}