html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
}
* {
    font-family: 'Cinzel', serif;
    color: rgb(236, 236, 236);
}
body{
    background:rgb(255, 255, 255);
    color: #dddddd;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/DSC03587-3.jpg);
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;

}
@media (max-width: 600px) {
    #header {
        background-position: center top; 
        background-size: cover;          
    }
}
.container{
    padding: 15px 0;
}

nav{
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 4px;               
    flex-wrap: wrap;
} 


.logo{
    width: 160px;
    margin-top: 10px;
    height: auto;
}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 1px 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 6px;
    text-transform: uppercase;

    padding: 6px 12px;
    border-radius: 8px;

    transition: 
        background-color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.header-text{
    margin-top: 1%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 10px;
}
.header-text h1 span{
    color:rgb(243, 243, 243);
}
.header-text span{
     font-family: 'Cinzel', serif;
    color:rgb(243, 243, 243);
}
/*-------------about-----------------*/
#about{
    padding: 70px 0;
    color:#ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 90%;
    border-radius: 15px;
    margin-left: 50px;
}
.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 50px;
    font-weight: 600;
    color: rgb(39, 39, 39);
    font-family: Arial, sans-serif;
}

.down-title{
    font-size: 20px;
    color:rgb(39, 39, 39);
    font-family: Arial, sans-serif;
    font-weight: 590;

}

#header{
    position: relative; /* TÄRKEÄ */
    transition: background-image 0.5s ease-in-out;
}

/* Nuolet */
.arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
      touch-action: manipulation; 
    z-index: 10;
    transition: 0.3s;
}

.arrow:hover{
    opacity: 0.6;
}

.left{
    left: 30px;
}

.right{
    right: 30px;
}

.site-title{
    text-align: center;
    margin-top: 20px;
}

.site-title h1{
    font-size: 28px;
    margin: 0;
    letter-spacing: 6px;
    text-transform: uppercase; 
}

.site-title h2{
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 4px;
    text-transform: uppercase; 
}






#portfolio-page{
    padding: 10px;
    background: #dddddd;
    min-height: 100vh;
}

.gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.gallery img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery img:hover{
    transform: scale(1.05);
}

.gallery img:first-child{
    grid-row: span 2;
}

.portfolio-wrapper{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    background: #ffffff;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  grid-auto-rows: 10px;
}

.item img{
  width: 100%;
  height: auto;
  display: block;
}

.item{
  grid-row-end: span 10;
}



#portfolio-banner{
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
}

#portfolio-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(images/DSC03587.jpg); 
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: none;
  transition: none; 
  filter: blur(10px);
}




#portfolio-banner .container{
  position: relative;
  z-index: 2;
}

.site-title{
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 10px;
  color: white;
}

.site-title h1{
  font-size: 40px;
  margin: 0;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.site-title h2{
  font-size: 14px;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
}






.hidden {
  display: none;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;           
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 0px;
  transform: scale(1);         
  transition: transform 0.4s ease;
}


#lightbox img.zoomed {
  transform: scale(1.7);      
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

#lightbox .nav.left {
  left: 30px;
}

#lightbox .nav.right {
  right: 30px;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  gap: 20px;
  padding: 0 60px;
}

.item img{
  width: 100%;
  height: auto;
  display: block;
}

#connect {
    padding: 50px 0;
    background-color: #868686;      
    text-align: center;
    
}

#connect.active {
    background-color: #868686;     
}

.social-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.icon svg {
    width: 80px;         
    height: 80px;
    color: #9a9a9a;      
    transition: all 0.3s ease;
}

.icon:hover svg {
    color: #444;         
    transform: scale(1.08);
}

.background-gradient {
  height: 10px; 
  background: linear-gradient(to bottom, #ffffff,#868686 );
  
}

.sub-title1 {
  font-family: 'Cinzel', serif;  
  color: rgb(236, 236, 236);     
  letter-spacing: 3px;           
  text-transform: uppercase;     
  font-weight: 600;               
  font-size: 50px;               
-webkit-font-smoothing: antialiased;     
  -moz-osx-font-smoothing: grayscale;  
    -webkit-font-smoothing: antialiased;       
  -moz-osx-font-smoothing: grayscale;        

  
  text-shadow:
     0 0 3px rgba(236, 236, 236, 0.4),
     0 0 5px rgba(236, 236, 236, 0.3); 
}

#footer-socials {
  background-color: #2e2a29; 
  padding: 90px 0;
  color: #ccc;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#footer-socials .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#footer-socials .footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

#footer-socials .footer-nav ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer-socials .footer-nav ul li a:hover {
  color: #fff;
}

.footer-social-icons {
  display: flex;
  gap: 20px;
}

.footer-icon svg {
  color: #ccc;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-icon:hover svg {
  color: #fff;
}
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 180px;
  font-style: italic;
}
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  margin-top: 80px; 
}