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

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

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

#main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px;
    background: #000;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}


#main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    background-color: #111;
}

nav a.active {
    color: #00aaff;
    font-weight: bold;
}


.logo {
    grid-column: 1;
    justify-self: start;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

#theme-toggle {
    grid-column: 3;
    justify-self: end;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s;
}


nav {
    grid-column: 2;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #ff5733;
    font-weight: bold;
}

.content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.text {
    max-width: 600px;
}

.text h2 {
    font-size: 30px;
    color: #bbb;
}

.text h1 {
    font-size: 40px;
    line-height: 1.2;
}

#about {
    margin-bottom: 60px;
}

.text span {
    color: #00aaff;
}

.text .highlight {
    color: #ff5733;
    font-weight: bold;
}

.text p {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
}

.text .buttons {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin-top: 20px;
}

.text .button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a.active {
  position: relative;
  color: #ff5733 !important;
  font-weight: bold;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #ff5733;
  border-radius: 2px;
}



.button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button img.icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.button:hover {
    cursor: pointer;
    background-color: #0056b3;
}

.text .button img.icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.text .button:hover {
    background-color: #0056b3;
}

.image, .image2 {
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image2 {
    display: none;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.image img, .image2 img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.image2:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.projects, .contact {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.projects h2, .contact h2 {
    color: #bbb;
    font-size: 30px;
    padding: 20px;
}

.projects h3, .contact h3 {
    color: #00aaff;
    font-size: 25px;
    margin: 20px;
}

.projects h4 {
    color: #ff5733;
    font-size: 20px;
    margin: 20px;
}

.projects p {
    margin: 20px;
}

.contact p {
    margin-top: 10px;
    margin-bottom: 30px;
}

#contact {
    margin-top: 20px;
}

.wulkan span {
    color: #ff0000;
}

.code {
    width: 400px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.code:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.game {
    width: 600px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.game:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.app {
    width: 600px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.app:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.apex, .futrank, .pong, .koktajlovetel, .koktajlovetab {
    width: 49%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.koktajlovetel{
    height: 500px;
    width: auto;
}

.old {
    width: 39%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.futrank, .koktajlovetab {
    height: 350px;
}

.apex:hover, .futrank:hover, .old:hover, .pong:hover, .koktajlovetel:hover, .koktajlovetab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.pong {
    height: 400px;
}

.ai {
    width: 60%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}


.ai:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.icon-light {
  display: none;
}
.icon-dark {
  display: inline;
}

body.light-mode .icon-light {
  display: inline;
}
body.light-mode .icon-dark {
  display: none;
}


.vehicle {
    width: 30%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.vehicle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
}


.footer-content {
    max-width: 1200px;
    margin: auto;
}

.footer-content p {
    font-size: 14px;
    color: #bbb;
    margin: 0;
}

body.light-mode .footer-content p {
    color: #333;
}

body.light-mode .socials a {
    color: #000;
}

body.light-mode .socials a:hover img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 20px 0 0;
    padding: 0;
}

.socials li {
    margin: 0 10px;
}

.socials a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.socials img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.socials a:hover img {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

body.light-mode {
    background-color: #fff;
    color: #000;
}


body.light-mode #main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


body.light-mode nav a {
    color: #000;
}

body.light-mode nav a:hover {
    color: #ff5733;
}

body.light-mode .logo {
    color: #007bff;
}

.mobile-theme-toggle {
    display: none;
}

#hamburger-btn {
    display: none;
}

#about,
#projects,
#contact {
    scroll-margin-top: 100px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #007bff;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background-color: #f2f2f2;
    color: #000;
    border: 1px solid #ccc;
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
    color: #666;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    outline: 2px solid #007bff;
}

body.light-mode .contact-form .button:hover {
    background-color: #0056b3;
}

footer {
  padding: 20px 40px;
  text-align: center;
  color: #fff;
  margin-top: 40px;

  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

body.light-mode footer {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}

/* Media Queries */
@media (max-width: 768px) {

    #main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: sticky;
    }

    .text .buttons {
        justify-content: center;
    }
    

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .content {
        flex-direction: column;
        padding: 20px;
    }

    .image2 {
        display: block;
        margin: 20px auto;
        width: 75%;
        height: auto;
        margin-top: 20px;
    }

    .image {
        display: none;
    }
    
    .projects .wulkan, .projects .rownolegle, .projects .skrypty, .projects .psiw, .projects .friends, .projects .cvrptw, 
    .projects .cvrptwO, .projects .aisd, .projects .ask, .projects .others, .projects .clips, .projects .wbudowane,
    .projects .zbd sub, .projects .pong-container, .projects .php, .projects .koktajlove  {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .code, .game, .vehicle, .app, .ai, .pong, .apex, .futrank, .old, .koktajlovetel, .koktajlovetab {
        width: 90% !important;
        max-width: 400px;
        height: auto !important;
        margin: 10px auto;
    }

    .contact-form {
        width: 90%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .button {
        margin: 10px 0;
    }
    
    footer {
        padding: 20px 20px; 
    }

    .footer-content p {
        text-align: center;
        margin-bottom: 10px;
    }
    

    .socials {
        justify-content: center;
        gap: 20px;
    }

    #hamburger-btn {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1101;
    }


    .video-wrapper {
        max-width: 95%;
        padding: 0;
    }

    #nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
    }

    #nav-menu.active {
        transform: translateY(0);
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 30px;
        list-style: none;
    }

    #nav-menu ul li a {
        color: #fff;
        font-size: 24px;
        text-decoration: none;
        font-weight: bold;
    }

    #nav-menu ul li a:hover {
        color: #ff5733;
    }

    #theme-toggle {
        display: none;
    }

    .mobile-theme-toggle {
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .mobile-theme-toggle i {
        font-size: 26px;
        color: #fff;
        cursor: pointer;
    }

    body.light-mode #nav-menu {
        background-color: rgba(255, 255, 255, 0.95);
    }

    body.light-mode #nav-menu ul li a {
        color: #000;
    }

    body.light-mode #nav-menu ul li a:hover {
        color: #ff5733;
    }

    body.light-mode .mobile-theme-toggle i {
        color: #000;
    }

    #hamburger-btn .hamburger-inner,
    #hamburger-btn .hamburger-inner::before,
    #hamburger-btn .hamburger-inner::after,
    #hamburger-btn.is-active .hamburger-inner,
    #hamburger-btn.is-active .hamburger-inner::before,
    #hamburger-btn.is-active .hamburger-inner::after,
    #hamburger-btn.hamburger--collapse.is-active .hamburger-inner,
    #hamburger-btn.hamburger--collapse.is-active .hamburger-inner::before,
    #hamburger-btn.hamburger--collapse.is-active .hamburger-inner::after {
        background-color: #aaa !important;
    }

}