/* ==========================================================================
   1. FONT IMPORTS
   ========================================================================== */
@font-face {
    font-family: 'Autobus';
    src: url('/assets/omnibus-font/AutobusOmnibus-K7127.ttf') format('truetype');
}

/* ==========================================================================
   2. BASE STYLES & RESETS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    color: #dad5d5;
    font-size: 22px;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.flag-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    font-weight: bold;
    font-size: 1rem;
    color: #000;
    background: linear-gradient(to bottom, #aa151b 0%, #aa151b 33%, #f1bf00 33%, #f1bf00 66%, #aa151b 66%, #aa151b 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.flag-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}


.flag-button-en {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.flag-button-en:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


.hero {
    height: 100vh;
    background: radial-gradient(circle at top right, #00aeef, #000000 45%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 1rem;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
    /*padding: 2rem;*/
    gap: 3rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    order: 1;
    max-width: 1300px;
}

.hero-text h1 {
    font-size: 5vw;
    font-weight: bold;
    color: #00AEEF;
    line-height: 1.0;
}

.hero-text p {
    font-size: 2rem;
    color: #ccc;
    margin-top: 4rem;
}

.hero-image {
    flex-shrink: 0;
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 6rem;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.subheadline {
    padding-right: 10rem;
}

.subheadline a {
    color: inherit;
    font-weight: bolder;
    font-size: 1.3rem;
}
.subheadline a:hover {
    color:white;
}

/* Resume link styling */
.resume-link {
    position: relative;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.explore-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    padding: 0.6rem 1.0rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    color: #222;
    transition: color 0.3s ease;
    margin-top: 3rem;
}

/* Pseudo-element for animated fill */
.explore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #00AEEF;
    z-index: -1;
    transition: width 0.4s ease;
}

/* Trigger fill on hover */
.explore-btn:hover::before {
    width: 100%;
}

.explore-btn:hover {
    color: white;
    border-color: #ffffff;
}

.arrow-icon {
    margin-left: 1rem;
    width: 50px;
    height: 50px;
    padding: 6px;
    border: 1px solid #333;
    border-radius: 50%;
    transform: rotate(45deg);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    background-color: white;
    z-index: 1;
}

.explore-btn:hover .arrow-icon {
    background-color: #fff;
    border-color: #82d4f5;
    transform: rotate(90deg);
}

.arrow-icon path {
    fill: #333;
    transition: fill 0.3s ease;
}

.explore-btn:hover .arrow-icon path {
    fill: #00AEEF;
}

.explore-button:hover ~ .subheadline a {
    color: white;
}




/* ==========================================================================
   5. SCROLLING BUTTONS
   ========================================================================== */
.scroll-arrow {
    width: 50px;
    height: 50px;
    fill: #00AEEF;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    overflow: hidden;
    align-items: center;
    --rotate: 0deg;
    transition: transform 0.3s ease, fill 0.3s ease, filter 0.3s ease;

}

.scroll-arrow.rotate-up {
    --rotate: 180deg;
    transform: rotate(180deg);
}

.scroll-button button:hover .scroll-arrow {
    fill: #00AEEF;
    filter: drop-shadow(0 0 8px #00AEEF);
    animation: pulse-glow 2s infinite;
    /* Respect existing transforms like rotate(180deg) */
    transform: translateY(5px) rotate(var(--rotate, 0deg));
}


.scroll-arrow.rotate-up button:hover{
    transform: translateY(5px);
    fill: #00AEEF;
    filter: drop-shadow(0 0 8px #00AEEF);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 6px #00AEEF);
    }
    50% {
        filter: drop-shadow(0 0 12px #00AEEF);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-button {
    left: 5rem; /* adjust as needed for padding */
    top: 50%;
    z-index: 10;
    display: flex;
    background: #111111;
    border: none;
}

.scroll-button button {
    border: none;
    outline: none;
    background: none;
}


.rotate-up {
    transform: rotate(180deg);
}

/* ==========================================================================
   6. FLOATING NAVIGATION
   ========================================================================== */
.floating-nav {
    position: fixed;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(6px);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    z-index: 100;
    transition: opacity 0.4s ease;
}

.floating-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.floating-nav li {
    color: #bbb;
    font-weight: 500;
    font-size: 0.95rem;
}

.floating-nav li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.floating-nav li a:hover {
    color: #00AEEF;
}

.floating-nav .active {
    background-color: #222;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* ARROWS NAV */

.bottom-nav {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(6px);
    padding: 0.25rem 0.25rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    z-index: 100;
    transition: opacity 0.4s ease;
}

.bottom-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.bottom-nav li {
    color: #bbb;
    font-weight: 500;
    font-size: 0.95rem;
}

.bottom-nav li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}


/* ==========================================================================
   7. MAIN CONTENT SECTIONS
   ========================================================================== */
main {
    padding: 4rem 2rem;
}

section {
    margin-bottom: 1rem;
    padding-left:1%;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

section p, section ul {
    padding-left: 0;
    padding-right: 0;
}


#about p {
    font-size: 1.7rem;
}

section h2 {
    color: #00AEEF;
    margin-bottom: 1rem;
    padding-left: 0rem;
    font-size: 5rem;
    /*margin-top: 20rem;*/
}

/* Apply consistent heading sizes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Normalize project card headings */
.project-card h3, .project-card p {
    text-align: center;
    padding: 1rem 0;
}

section ul {
    padding-left: 15rem;
    padding-right: 10rem;
}

/* ==========================================================================
   8. SKILLS SECTION & ABOUT SECTION
   ========================================================================== */
#skills {
    padding: 4rem 2rem;
    background-color: #000;
    color: #ddd;
}

#about-position{
    margin-top: 2vw;
    margin-bottom: 2vw;
    color:transparent;
}

#skills-position{
    margin-top: 2vw;
    margin-bottom: 2vw;
    color:transparent;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-column {
    flex: 1;
    min-width: 280px;
}

.skills-column h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff9100;
    padding-bottom: 0.5rem;
}

.skills-column ul {
    list-style: none;
    padding-left: 0;
}

.skills-column li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ddd;
    font-weight: bold;
}

.skills-column li i {
    color: #00AEEF;
    margin-right: 0.8rem;
    font-size: 1.5rem;
    width: 1.6rem;
    text-align: center;

}

/* ==========================================================================
   9. PROJECTS SECTION
   ========================================================================== */
#projects-position{
    margin-top: 9vw;
    margin-bottom: 2vw;
    color:transparent;
}

.projects-section {
    padding: 60px 40px;
    background-color: #000;
    color: #fff;
    text-align: left;
}

.projects-section h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #00AEEF;
    text-align: left;
    /*padding-left: 10rem;*/
    width:100%;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

#demoButton{
 font-weight:bolder;
}

#live-demo {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    padding:1.2rem;
    border-radius:0.5rem;
}

#live-demo.open {
    margin-top:1rem;
    max-height: 1500px;
    opacity: 1;
    overflow: hidden; /* <- keep this to avoid abrupt pops */
}

#live-demo.open:hover {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.demo-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(17, 17, 17, 0.71);
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 transparent;
}
.demo-card.open {
    max-height: 700px; /* More than iframe height */
    opacity: 1;
}
.demo-card:hover{
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}


.project-links button {
    background-color: #0d1117; /* dark background for contrast */
    color: #c9d1d9; /* soft light text color */
    border: 1px solid #58a6ff; /* subtle blue border */
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(88, 166, 255, 0.3);
}

.project-links button:hover {
    background-color: #161b22;
    color: #58a6ff;
    border-color: #58a6ff;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.6);
    transform: translateY(-1px);
}


.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #111;
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.project-card:hover h3 {
    color: #4dabf7;
    text-shadow: 0 0 8px rgba(77, 171, 247, 0.8);
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.project-card h3 {
    color: #fff;
    margin: 0 0 10px;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 800px;
    margin: auto;
}

.project-card p {
    color: #ddd;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 800px;
    margin: auto;
}

.project-links a {
    color: #3da9fc;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
}

.project-links a:hover {
    text-decoration: underline;
}




/* ==========================================================================
   10. FOOTER & CONTACT
   ========================================================================== */
footer {
    text-align: right;
    padding: 2rem;
    background: black;
    color: #A0A0A0;
    font-size: 1.3rem;
    border-top: 1px solid #222;
}

#contact {
    color: #00AEEF;
    margin-bottom: 1rem;
}

footer a {
    color: #A0A0A0;
    text-decoration: underline;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00AEEF;
}

.social-icons i {
    font-size: 3rem;
    padding: 0.5rem;
}

.scroll-top-link {
    font-size: 2.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}



/* ==========================================================================
   END OF FILE
   ========================================================================== */