* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    -webkit-box-sizing: border-box; 
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

html, body {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    /* border: solid 2px red; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-image: url('/pics/pexels-marek-piwnicki-3907296-14082663.jpg');
    background-size: cover;
    /* background-color: #000000;
    background: #2A7B9B;
    background: linear-gradient(90deg,rgba(42, 123, 155, 1) 0%, rgba(113, 203, 125, 1) 0%, rgba(180, 114, 208, 1) 0%, rgba(164, 87, 199, 1) 3%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 1) 77%, rgba(164, 87, 199, 1) 97%, rgba(180, 114, 208, 1) 100%); */
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --matrix-green: #70db70;
    --matrix-green-background: rgb(15, 62, 15, 0.1);
    --primary-black: #000000;
    --body-color: #051405;
    /* --main-purple: rgb(65, 32, 116); */
    --main-purple: #A457C7;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 5px 10px;
}

#main {
    width: 80vw;
}

header {
    background-color: var(--main-purple);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {    
    background: #2A7B9B;
    background: linear-gradient(90deg,rgba(42, 123, 155, 1) 0%, rgba(113, 203, 125, 1) 0%, rgba(180, 114, 208, 1) 0%, rgba(164, 87, 199, 1) 3%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 1) 77%, rgba(164, 87, 199, 1) 97%, rgba(180, 114, 208, 1) 100%);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 90px;
}

/* SEKCJA DROP DOWN */

.dropbtn {
    background-color: var(--primary-black);
    color: var(--main-purple);
    display: flex;
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
    border: none;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
    display: none;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    margin-right: 2rem;
    background-color: var(--primary-black);
    min-width: 3rem;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {background-color: #ddd;}
  
  .dropdown:hover .dropdown-content {display: block;}
  
  .dropdown:hover .dropbtn {background-color: var(--main-purple);}

/* KONIEC SEKCJI DROP DOWN */

.logo {
    /* border: solid 2px red; */
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin-left: 12.5%;
}

.social-links {
    /* border: solid 2px red; */
    display: flex;
    flex-direction: row;
    align-items:center;
    transform: translateY(3px);

}

.social-links a {
    display: block;
    color: var(--white);
    font-size: 1.5rem;
    padding-left: 13px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 12.5%;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--main-purple);
}

section {
    /* background: linear-gradient(135deg, var(--matrix-green-background)); */
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    /* border: solid red 2px; */

    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 90px) !important;
    padding-left: 2%;
    justify-content: center;
    align-items: center;
    align-items: center;
}

.hero-content-text {
    /* border: solid red 2px; */
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 50%;
    max-width: 100%;
    height: 100%;
}

.hero-content-list {
    /* border: solid red 2px; */
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items:flex-start;
    text-align:justify;
    text-justify: auto;
    padding-top: 10rem;
    width: 100%;
    height: 100%;
}

.hero-content-list ul {
    /* border: solid red 2px; */
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align:justify;
    min-width: 80%;
    max-width: 100%; 
    height: 100%;
}

.hero-content-list li {
    /* border: solid red 2px; */
    font-weight: 500;
    margin: 0 30px;
    font-size: 3rem;    
}

.social-links-hero {
    /* border: solid 2px red; */
    display: flex;
    flex-direction: row;
    align-items:center;
    transform: translateY(3px);

}

.social-links-hero a {
    display: block;
    color: var(--white);
    font-size: 3.2rem;
    padding: 20px 20px;
    transition: transform 0.3s ease;
}

.social-links-hero a:hover {
    transform: translateY(-3px);
}

.hero-content-image {
    /* border: solid red 2px; */
    display: flex;
    min-width: 50%;
    max-width: 100%;
    min-height: 80vh;
    max-height: 90vh;
}

.hero-content-image img {
    max-width: 100%;
    max-height: 100%;
}

.hero-content-text h1 {
    /* border: solid red 2px; */
    font-size: 3rem;
    margin-top: 0;
}

#about {
    /* border: solid red 2px; */
    min-width: 70%;
    max-width: 100%;
    margin: 0;
    /* margin-top: 7rem; */
    margin-top: 4rem;
    color: var(--white);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* min-height: calc(100vh - 500px) !important; */
}

.about-content-image {
    max-width: 40%;
}

.about-content-image img {
    min-width: 100%;
    max-width: 100%;
    min-height: 110%;
}

.about-content {
    /* border: solid red 2px; */
    width: 100%;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    padding-right: 3%;
    /* padding-top: 65px; */
    min-width: 50%;
    max-width: 90%;
    height: 50%;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-content p {
    font-size: 1.5rem;

}

#skills {
    font-size: 1.5rem;
    color: var(--white);
}

#skills h2 {
    padding: 1rem 0 0 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    /* background: linear-gradient(135deg, var(--matrix-green-background)); */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li::before {
    content: "•";
    color: var(--white);
    position: absolute;
    left: 0;
}

#contact {
    /* border: solid 2px red; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    text-align: left;
    /* min-height: calc(100vh - 220px) !important; */
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 200px;
    margin-bottom: 120px;
    min-width: 70%;
    max-width: 100%;
}

#contact h2 {
    margin-bottom: 20px;
    padding-left: 12.5%;
}

form {
    /* max-width: 600px; */
    min-width: 60%;
    max-width: 100%;
    margin: 0 auto;
    /* padding: 2rem; */
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: var(--white);
    color: var(--primary-black);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--main-purple);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #2A7B9B;
    background: linear-gradient(90deg,rgba(42, 123, 155, 1) 0%, rgba(113, 203, 125, 1) 0%, rgba(180, 114, 208, 1) 0%, rgba(164, 87, 199, 1) 3%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 1) 77%, rgba(164, 87, 199, 1) 97%, rgba(180, 114, 208, 1) 100%);
   
    color: var(--white);
    height: 90px;

}

#footer { 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LINKOWANIE SEKCJI NA STRONIE */
#hero {
    scroll-margin-top: 12rem;
}

#about{
    scroll-margin-top: 16rem;
}

#contact {
    scroll-margin-top: 15rem;
}

/* Style dla Popupu Statusu Formularza */
#status-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--main-purple);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000; 
    text-align: center;
    min-width: 300px;
    max-width: 90%; 
    font-family: Arial, sans-serif;
}

#popup-message {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

#popup-close-btn {
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--white);
    color: var(--body-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

#popup-close-btn:hover {
    background-color: var(--secondary-color);
}

#status-popup.info {
    background-color: #e0f7fa;
    color: var(--body-color);
}

#status-popup.success {
    background-color: var(--main-purple);
    color: var(--body-color);
}

#status-popup.error {
    background-color: #ffebee;
    color: #c62828;
}


/* MEDIA QUERIES */


@media (max-width: 1460px) {
    #hero {
        /* border: solid red 2px; */
        min-height: -webkit-calc(100vh - 90px);
        padding-top: 90px;
        justify-content: center;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content-list {
        padding: 0;
    }

    .hero-content-list ul {
        /* border: solid red 2px; */
        list-style-type:none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align:center;
        min-width: 80%;
        max-width: 100%; 
        height: 50%;
    }

    .hero-content-list li {
        font-size: 4rem;
    }

    #contact {
        margin-top: 130px;
    }

    /* NAV LINKS */

    #about {
        scroll-margin-top: 150px;
    }

    #contact {
        scroll-margin-top: 150px;

    }
}

@media (max-width: 768px) {

    #main {
        width: 100%;
    }

    section {
        padding: 1rem 5%;
    }

    nav {
        justify-content: space-evenly;
        height: 90px;
        align-items: center;
    }

    .logo {
        /* border: red solid 2px; */
        flex-direction: column;
        font-size: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
        margin-left: 2.5rem;
        margin-right: 2.5rem;
        text-align: center;
    }

    .social-links {
        /* border: red solid 2px; */
        display: flex;
        justify-content: flex-start;
        padding-left: 1.8px;
    }

    .social-links a {
        /* border: red solid 2px; */

        display: block;
        color: var(--white);
        font-size: 0.9rem;
        margin: 0 0.7rem;
        transition: transform 0.3s ease;
        margin-left: 0;
        padding-left: 0;

    }

    .dropbtn {
        margin-right: 2rem;
    }

    .nav-links {
        display: none;
    }

    .dropdown {
        position: relative;
        display: inline-block;
      }

    #hero {
        /* border: solid red 2px; */
        /* min-height: -webkit-calc(100vh - 90px); */
        height: 100vh;
        padding-top: 90px;
        justify-content: center;
        align-items: center;
        padding: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content-list {
        margin: 0;
        padding: 0;
        height: 50%;
    }

    .hero-content-list ul {
        /* border: solid red 2px; */
        list-style-type:none;
        font-size: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align:center;
        min-width: 80%;
        max-width: 100%; 
        /* height: 50%; */
        height: 100%;
    }

    .hero-content-list li {
        font-size: 3rem;
    }

    .social-links-hero {
        /* border: solid red 2px; */
        height: 20%;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }

    .hero-content-image {
        display: none;
    }

    .hero-content-text h1 {
        font-size: 2rem;
    }

    #about {
        /* border: solid red 2px; */
        /* min-height: -webkit-calc(100vh - 90px); */
        min-height: 100vh;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-content {
        /* border: solid red 2px; */
        max-height: 60%;
        max-width: 100%;
        text-align: left;
        font-size: 1.14rem;
        margin: 0;
        padding: 0;
    }

    .about-content-image {
        display: none;
    }

    #contact {
        /* border: solid red 2px; */
        padding: 0;
        padding-bottom: 2rem;
        margin: 0;
        /* margin-top: 5rem; */
        margin-top: 5rem;
    }

    #contact h2 {
        padding-left: 5%;
    }

    .skills-grid {
        gap: 0rem;
    }

    /* NAV LINKS */

    #about {
        scroll-margin-top: 150px;
    }

    #contact {
        scroll-margin-top: 150px;

    }
} 