*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;

}
body{
    background-color: #0d1b2a;
    color: #fff;
    font-family: 'Bebas Neue','Poppins',sans-serif;
    font-weight: 400;
}
nav{
    display: flex;
    width: 100%;
    height: 80px;
    background-color:#1b263b / 18%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 10px 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 36px;
    backdrop-filter: blur(50px);
}
.separator {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #00feba, #5b5ea6);
    margin: 60px 0;
    border-radius: 1px;
    opacity: 0.6;
  }
.logo{
    
    display: flex;
    align-items: center;
    margin: 0 20px;
}
 
.logo img{
    height: 200px; 
    display: block;
}
nav ul{
    display: flex;
    list-style: none;
    gap: 30px;
}
/* hamburger base */
.menu-toggle{ display: none; }
.mobile-menu, .hamburger{
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-right: 16px;
}
.mobile-menu span, .hamburger span{
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}
nav ul li{
    margin-left: 20px;
    
}
nav ul li a{
    margin: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
nav ul li a:hover{
    color: #0077b6;   
}

header{
    margin-top: 0;
    display: flex;  
    gap: 40px;
    height: 80vh;
    background-color: #0d1b2a;
    color: #fff;
    padding: 40px 20px 20px;
    margin: 20px;
   
    
}

.hero-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 16px;

}
.hero-text-p{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 80px;
}

.hero-text h1{
    font-size: 3rem;
    line-height: 1.1;
}

.hero-text p{
    font-size: 2.25rem;
    opacity: 0.9;
    
}

.hero-image{
    width: 40vw;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    pointer-events: none; /* keep navbar clickable under small overlap */
    will-change: transform;
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce){
  .hero-image{ animation: none; }
}
#download-btn{
    margin-left: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1;
}
#download-btn img{
    width: 1em;
    height: 1em;
}
.btn{

    display: block;
    background-color: #1b263b ;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    width: 240px;
    height: 50px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;  
}
.btn,
.btn:link,
.btn:visited{
    text-decoration: none;
    color: #fff;
}
.btn a{
    text-decoration: none;
    color: #fff;
}
.omniebutton .btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    width: 240px;
    height: 50px;

}
.btn:hover{
    background-color: #1b263b;
    color: #fff;
    border: 1px solid transparent;
    background:
    linear-gradient(#0d1b2a, #0d1b2a) padding-box,
    linear-gradient(90deg, #00feba, #5b5ea6) border-box;
    transition: all 0.3s ease;
    cursor: pointer;
}
#about{
    font-size: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align to left */
    justify-content: flex-start;
    gap: 16px;
    margin: 40px;
    
}
#about h2{
    font-size: 2rem;
    display: block; /* ensure it takes full line and aligns left */
    text-align: left;
}
#about .btn-read-more{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px auto; /* center horizontally */
    align-self: center; /* center within flex column */
    padding: 10px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* unify button text size */
.btn{ font-size: 1rem; height: 44px; width: 200px; }

#projects{
    text-align: center;
    font-size: 24px;
}

.project{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
    border: 2px solid transparent; /* enable gradient border */
    border-radius: 16px;
    background:
        linear-gradient(#0d1b2a, #0d1b2a) padding-box,
        linear-gradient(90deg, #00feba, #5b5ea6) border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: 400px;
    width: 400px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project.pokazane{ display: inline-flex; }
.ukryte{ display: none; }
.project:hover{
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Center the 'More' button under projects */
#pokaz-ukryte{
    display: block;
    margin: 20px auto;
}
.project img{
   
    width: 300px;
}

.project .project-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    margin: 20px;
   
}
.project .project-text img{
    height: 50px;
    width: 50px;
    
}
#projects a{
    text-decoration: none;
    color: #fff;
}
#projects a:hover{
    color: #0077b6;
    
}

.skill{
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    margin: 20px;
}
.skill img{
    height: 150px;
    width: 150px;
}
#skills h2{
    text-align: center;
}
.logo-css-split{
    position: relative;
    display: inline-block;
    line-height: 0; /* remove inline-gap to prevent misalignment */
}
.logo-css-split .logo-css{
    display: block;
}
.logo-css-split .gray-half{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    clip-path: inset(0 0 0 50%);
}
#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 56px;
    margin: 20px;
    
}
#name{
    gap: 10px;
    background-color: #1b263b;
    width: 250px;
    height: 25px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
#email{
    gap: 10px;
    background-color: #1b263b;
    width: 250px;
    height: 25px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
#message{
    background-color: #1b263b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    width: 500px;
    height: 100px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
#name:hover, #email:hover, #message:hover{
    background-color: #1b263b;
    color: #fff;
    border: 2px solid red;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Contact form spacing and layout */
#contact form{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

#contact input,
#contact textarea{
    width: min(600px, 90%);
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    background-color: #1b263b;
    color: #fff;
}

#contact textarea{
    min-height: 140px;
    resize: vertical;
}

#contact .btn-submit{
    align-self: center;
    width: min(300px, 70%);
    padding: 12px 16px;
}
footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 100%;
    min-height: 56px;
    padding: 8px 12px;
    background-color:#1b263b ;
}
.social{
    display: flex;
    gap: 12px;
   
}
.social a{
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
.social a:hover{ opacity: 0.8; }

/* Responsive styles */
@media (max-width: 1024px){
    .logo img{ height: 120px; }
    .hero-text h1{ font-size: 2.5rem; }
    .project{ width: 320px; height: 340px; }
    .project img{ width: 240px; }
    .skill img{ width: 120px; height: 120px; }
}

@media (max-width: 768px){
    nav{ height: 64px; }
    .logo img{ height: 80px; }
    .mobile-menu, .hamburger{ display: flex; }
    nav ul{
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: #1b263b;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
        display: none;
        border-radius: 0 0 10px 10px;
    }
    .menu-toggle:checked ~ #nav-menu{ display: flex; }
    header{ flex-direction: column; align-items: center; gap: 24px; height: auto; }
    .hero-text{ align-items: center; text-align: center; border: none; }
    .hero-image{ width: 70vw; max-width: 360px; border: none; }
    .btn{ width: 200px; height: 44px; font-size: 1rem; }
    #about{ margin: 20px; }
    .project{ width: 280px; height: 300px; }
    .project img{ width: 200px; }
    .skill{ flex-wrap: wrap; gap: 12px; }
    .skill img{ width: 100px; height: 100px; }
    #message{ width: 90%; }
}

@media (max-width: 480px){
    .logo img{ height: 64px; }
    nav ul li a{ margin: 8px; font-size: 1rem; }
    .hero-text h1{ font-size: 2rem; }
    .hero-text p, .hero-text-p{ font-size: 1rem; margin: 16px; }
    .hero-image{ width: 85vw; max-width: 320px; }
    .project{ width: 90%; height: auto; }
    .project img{ width: 80%; }
    .skill img{ width: 80px; height: 80px; }
    #contact form{ gap: 12px; }
    #contact input, #contact textarea{ width: 92%; }
    #contact .btn-submit{ width: 70%; }
}
.logo-html{ display: inline-block; }

.logo-css::before{ content: none; }
.logo-js{
    filter: grayscale(100%);
}
.logo-react{
    filter: grayscale(100%);
}
.logo-css::after{ content: none; display: none; }

