/* ===========================
   RESET
=========================== */

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


html {
    height: 100%;
}


body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: Arial, Helvetica, sans-serif;

    background: #111;
    color: white;
}


/* ===========================
   HEADER / NAVBAR
=========================== */


.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 25px 60px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #111111;

    z-index: 1200;
}


.logo img {

    height: 55px;

    width: auto;

}



/* Desktop Navigation */

.nav-links {

    display: flex;

    gap: 45px;

}


.nav-links a {

    position: relative;

    color: #bdbdbd;

    text-decoration: none;

    font-size: 15px;

    letter-spacing: 2px;

    transition: .3s;

}


.nav-links a:hover {

    color:white;

}


.nav-links a::after {

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0%;

    height:2px;

    background:white;

    transition:.3s;

}


.nav-links a:hover::after {

    width:100%;

}


/* Hide desktop logo when menu open */

.logo.hidden {

    visibility:hidden;

}



/* ===========================
   HAMBURGER
=========================== */


.hamburger {

    display:none;

    background:none;

    border:none;

    cursor:pointer;

    width:35px;

    height:35px;

    z-index:1300;

}


.hamburger span {

    display:block;

    width:30px;

    height:2px;

    background:white;

    margin:7px 0;

    transition:.3s ease;

}



/* Transform hamburger into arrow */


.hamburger.active span:nth-child(1) {

    transform:rotate(45deg);

    width:20px;

    margin-left:10px;

    margin-top:12px;

}


.hamburger.active span:nth-child(2) {

    width:30px;

}


.hamburger.active span:nth-child(3) {

    transform:rotate(-45deg);

    width:20px;

    margin-left:10px;

    margin-top:2px;

}



/* ===========================
   MOBILE MENU
=========================== */


.mobile-menu {

    position:fixed;

    top:0;

    right:-100%;

    width:100%;

    height:100vh;

    background:#111;

    padding:40px;

    display:flex;

    flex-direction:column;

    transition:.4s ease;

    z-index:1100;

}


.mobile-menu.active {

    right:0;

}



.mobile-logo img {

    height:40px;

    width:auto;

}



.mobile-nav {

    display:flex;

    flex-direction:column;

    gap:35px;

    margin-top:80px;

}



.mobile-nav a {

    color:#bdbdbd;

    text-decoration:none;

    font-size:18px;

    letter-spacing:2px;

    transition:.3s;

}


.mobile-nav a:hover {

    color:white;

}


.phone {

    margin-top:auto;

    color:white;

    text-decoration:none;

    font-size:16px;

}



/* ===========================
   MAIN CONTENT
=========================== */


main {

    flex:1;

    padding-top:120px;

}

.main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;

    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main-left,
.main-right {
    flex: 1;
}

#main-left-on-contact {
  border-right: solid 1px #bdbdbd;
}

/* Logo */
.main-site-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

/* Background image */
.main-site-background {
    width: 100%;
    height: auto;
    display: block;
}

#page-background {
    opacity: 0;
    animation: fadeInBackground 1s ease-out forwards;
}

@keyframes fadeInBackground {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Text */
.main-site-text {
    font-size: clamp(0.80rem, 1.10vw, 1.10rem);
    line-height: 1.5;
    margin-top: 1.5rem;
    text-align: justify;
}

#page-image {
    opacity: 0;
    transform: translateX(-15px);
    animation: fadeInImage 1.2s ease-out forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

#page-text {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInText 1.4s ease-out forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

#page-socials {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSocials 1.7s ease-out forwards;
}

@keyframes fadeInSocials {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.main-site-text i {
  font-size: clamp(1.2rem, 1.4vw, 1.4rem);
}

.main-site-text a {
  text-decoration: none;
  color: #bdbdbd;
  font-weight: bold;
}

.main-site-text a:hover{
  color: #ffffff;
  text-decoration:underline;
}

#main-content-wedding {
  margin: 0 10% 0 10%;
}

.wedding-team-text {
  padding: 0 15% 7% 15%;
  text-align: justify;
}

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

    .main-container {
        flex-direction: column;
        text-align: center;
    }
    #main-content-wedding {
      margin: 0 10% 0 10%;
      padding: 0;
    }

    .main-left,
    .main-right {
        width: 100%;
    }

    .main-site-logo {
        margin: 0 auto;
        max-width: 350px;
    }

    .main-site-background {
        max-width: 500px;
        margin: 0 auto;
    }
    .main-left {
        flex-direction: column;
        align-items: stretch; /* ili center ako želiš centrirano */
    }

    #main-left-on-contact {
      border-right: solid 1px #111111;
    }

    .main-contact-left table {
        border-right: none;
        padding-right: 0;
        margin-bottom: 2rem;
    }

}

.social-media-buttons {
  width: 32px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.social-media-buttons:hover {
  filter: grayscale(0%);
}

.portfolio-title {
    font-size: clamp(2rem, 2vw, 2rem);
    line-height: 1.5;
    margin-top: 1.5rem;
    text-align: center;
}

.main-container-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.portfolio-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: 8px; /* Optional */
    aspect-ratio: 9 / 16;
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.portfolio-thumbnail:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.main-site-background_wd {
    flex: 1;
    max-width: calc(50% - 0.5rem);
    height: auto;
    display: block;
}


.main-left-title {
  font-size: clamp(3rem, 3vw, 3rem);
}

.main-left-subtitle {
  font-size: clamp(1.3rem, 1.4vw, 1.4rem);
}


.main-contact-left hr {
  width: 92px;
}

/* .main-contact-left table {
  border-right: solid 2px #FFFFFF;
  padding-right: 27px;
} */

.main-contact-left td {
  horizontal-align: middle;
  height: 32px;
  padding-bottom: 17px;
}

.main-contact-right {
  text-align: left;
}

.social-media-contact {
  width: 32px;
  height: auto;
  filter: grayscale(100%);
}

.contact-links {
  text-decoration: none;
  color: #bdbdbd;
}

.contact-links:hover {
  color: #FFFFFF;
}

.contact-form-input {
  width: 100%;
  padding: 5px 5px 5px 5px;
  border-radius: 5px;
  border: solid 2px #bdbdbd;
  background-color: #111111;
  color: #ffffff;
}

.contact-form-button {
  width: 150px;
  height: 25px;
  border-radius: 5px;
  border: solid 2px #bdbdbd;
  background-color: #111111;
  color: #FFFFFF;
}

.contact-form-button:hover {
  background-color: #bdbdbd;
  color: #111111;
}
/* ===========================
   FOOTER
=========================== */


.footer {

    width:100%;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:15px 10px;

    background:#0b0b0b;

    color:#bdbdbd;

    font-size:13px;

}


.footer-logo {

    height:30px;

    width:auto;

    margin-bottom:8px;

}


.footer-nav {

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:10px;

}


.footer-nav a {

    color:#bdbdbd;

    text-decoration:none;

    transition:.3s;

}


.footer-nav a:hover {

    color:white;

}


.footer-nav span {

    color:#555;

}


.footer-credit {

    margin:0;

    color:#777;

}


.footer-credit a {

    color:#bdbdbd;

    text-decoration:none;

}


.footer-credit a:hover {

    color:white;

}

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide.active {
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 40px;
    height: 60px;

    background: rgba(0,0,0,0.5);
    color: white;

    border: none;
    cursor: pointer;

    font-size: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* ===========================
   RESPONSIVE
=========================== */


@media(max-width:900px) {


    .navbar {

        padding:25px;

    }


    .nav-links {

        display:none;

    }


    .hamburger {

        display:block;

    }


    main {

        padding-top:100px;

    }

}
