

  html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    
  }
  #about {
  min-height: 100vh;
}

  body {
    scroll-snap-type: y proximity; /* vertikalno snapovanje */
    overflow-y: scroll;
  }

  section {
    height: 100vh; /* svaki section zauzima pun ekran */
    scroll-snap-align: start; /* snap na početku section-a */
  }

body {
    margin: 0; 
    background: url('./images/photo-1659469377768-4f42f2f091c5.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;  
    max-width: 100vw;
    overflow-x: hidden;
    font-family: "Bad Script", serif;
    font-weight: bold;
    font-style: normal;
    text-align: center;
    transition: background 0.5s ease, color 0.5s ease; 
}



/* Dark Mode Styles */
body.dark-mode {  
    background: url('https://getwallpapers.com/wallpaper/full/c/1/6/6346.jpg');    
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;  
    font-family: "Bad Script", serif;
    font-weight: bold;
    font-style: normal;
    text-align: center;
    transition: background 0.5s ease, color 0.5s ease; 
    color: #f1f1f1;
    margin: 0; 
}

body.dark-mode .toggle-mode {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

:root {
  --toggle-bg: rgba(0, 0, 0, 0.6);
  --toggle-color: #fff;
}

body.dark-mode {
  --toggle-bg: rgba(255, 255, 255, 0.8);
  --toggle-color: #222;
}

#toggle-mode {
  background: transparent;
  border: 2px solid #405153;
  color: #839092;
  border-radius: 50%;
  padding: 0.7rem;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

#toggle-mode:hover {
  background: #6a8abb;
  color: #fff;
  transform: scale(1.1);
}




/* Section Layout */
header, section {
    min-height: 100vh;    
    display: flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    color: whitesmoke;
    transition: background-color 1.5s ease;    
    border-bottom: 1px solid white;
}

@media (max-height: 648px) {
    section {
        height: auto; /* låter innehållet expandera naturligt */
        padding: 2rem 1rem; /* lägg till utrymme */
    }

    .headLine, .title {
        font-size: 1.2rem;
        padding: 10px;
        max-width: 90%;
    }

    #technical_skills {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}


@media (max-width: 1024px) {
  section {
 background: linear-gradient(
   180deg,
  #000000 0%,
  #0a0f29 80%,
  #141414 95%,
  #1a1a1a 90%,
  #2c2c2c 100%
);


      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: scroll;
  }
  
  .titleOfProject {
    text-align: center !important;
  }
}

@media (max-width: 520px) {
   

    .headLine .title {
 background: transparent !important;
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;  
    }
}

#home {   
    background: url('https://images.pexels.com/photos/4067506/pexels-photo-4067506.jpeg?auto=compress&w=1260&h=750&dpr=2');
  	width: 100%;
    height: auto;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

#name {
border-radius: 5px;


}

.headLine, .title {
 background: linear-gradient(
    rgba(0, 0, 0, 0.6), 
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(6px);
border-radius: 15px;
padding: 15px;
border-radius: 50px;
text-shadow: 2px 2px 15px #333;
max-width: 60%;
}

@media (max-width: 600px) {
  .headLine,
  .title {
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.5rem !important;
  }
}


#about {
    width: 100%;    
    margin: 0 auto;    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;        
}

.aboutTxt {
    max-width: 400px;
}

@media screen and (max-width: 600px) {

    #about {
        max-width: 100%;
        min-height: 100vh;
    }

}

.photo {     
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 40vh; 
    border-radius: 20px;
    object-fit: contain;
    
}

#technical_skills {
height: auto;
width: 100%;
}

#skillsBtnslide {
background: transparent;
}

@keyframes slide {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

#skillsBtnslide.animate {
    animation: slide 0.6s ease-in-out;
}


.skillsDivisions.transitioning {
    opacity: 0;
    transition: opacity 0.5s ease; 
  }
  
  .skillsDivisions {
    opacity: 1;
  }
  
.down-arrow ion-icon {
  color:  #00bcd4;
}


.skillsRefreshWrapper {
    text-align: center;
    margin-top: 20px;  
          
  }
  
  .sliderRefreshBtn {
    background: #007bff;
    border: none;
    border-radius: 50px;
    padding: 0.7em 1.5em;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
    transition: transform 0.5s ease;
    transform-origin: center center;
    -webkit-tap-highlight-color: transparent;
      display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
    outline: none;
  }

  .sliderRefreshBtn:hover {
  background: #0056b3;
  transform: scale(1.1);
}
  
 @keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}

.sliderRefreshBtn .icon {
  display: inline-block;
  transition: transform 0.5s ease;
}

.sliderRefreshBtn.spin .icon {
  animation: spin 0.5s ease forwards;
}

.sliderRefreshBtn.spin  {
  animation: spin 0.5s ease forwards;
  color: #007bff;
}
  


@media (min-width: 480px) {

    .skillsDivisions {
        display: grid;
        gap: 1rem;
        justify-items: center;
        
    }

    .skillsDivisions {
        grid-template-columns: 1fr 1fr 1fr;
        transition: 1s;
    }
}

.skills_wrapper {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 2s ease; /* Adjust timing for smoother transition */
  }
  
  .skills_wrapper.visible {
    opacity: 1;
    transform: scale(1);
  }
  
  .slider {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0; /* Start with hidden state */
    transform: scale(0.9); /* Optional: To make the whole slider slightly smaller initially */
    transition: opacity 1s ease, transform 1s ease; /* Transition to fade in and scale up */
  }
  
  .slider.show {
    opacity: 1;
    transform: scale(1); /* Scale back to normal */
  }

.sliderBtns, .cert-nav-arrow{    
    
    font-size: 20px;
    color: #f1f1f1;
    background: rgb(58, 58, 136);
}


.sliderBtns:hover {
    cursor: pointer;
}



@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Skills Wrapper */
.skills_wrapper {
    display: block;
    margin: 8px;
}

.skillsDiv, .aboutTxt {
    opacity: 1;
    scale: 1;
    transition: opacity 1s ease-in 0.2s, transform 1s ease-in 0.2s;
}

.skillsDiv.visible, .aboutTxt.visible {
    opacity: 1;
    scale: 1;
}

.certsDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}

.certsDiv div {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
}

.certsDiv h2 {
padding: 15px;
border-radius: 50px;
text-shadow: 2px 2px 15px #333;
}


@media (max-width: 768px) {
    .certificationsImages:hover {
        transform: none;
        }  

}


/* About Section Image */
.photo {
    border-radius: 20px;
    height: 250px;
    width: 200px;
    max-width: 80%;
}

.sectionProjects {       
        
        width: 100%;
        height: auto;
    
}


/* Image Section Styling */
.imageSection {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;  
  height: auto;  
  gap: 2rem;      
  padding: 15px;                     
}

@media (min-width: 1200px) {
    .imageSection {
        width: 80%;
    }
}

.project {
    width: 100%;  
    max-width: 500px;   
    height: 100%;
    box-sizing: border-box; 
    margin: 0; 
    transition: 0.3s;
    cursor: pointer;    
    border-radius: 20px;
    background-color: transparent;
    border-bottom: 1px solid gray;
     
}


.slide-in-right {
    opacity: 1 !important;
    transform: scale(1);
    animation: slide-in-right 0.7s ease-out forwards;
}


.project .img {
    width: 100%; 
    height: 300px; 
    border-radius: 20px;
    object-fit: cover;    
    z-index: 1; 
}

/* Slide-In from Right Animation */
.active {
    opacity: 1 !important;
    transform: scale(1);
    animation: slide-in-right 0.7s ease-out forwards;
}

#cakery {
height: auto;
max-width: 250px;
}

/* Hover Effect on Image */
.project:hover {
    transform: scale(0.98);         /* Slight zoom effect */
    opacity: 1;                    /* Make the image visible on hover */
}

@media (max-width: 768px) {
    .project:hover {
        transform: none; /* Disable hover effect on mobile */
    } 


}

/* Pulse Effect for Down Arrows */
.pulse {
    animation: pulse 1.5s infinite ease-in-out alternate;
}

@keyframes pulse {
    from { transform: scale(0.8); }
    to { transform: scale(1.2); }
}

/* Styling the Down Arrows */
.down-arrow {
    margin-top: 20px;
    font-size: 2rem;
    text-decoration: none;
    color: white;
    transition: color 0.7s ease;
    opacity: 1;
    display: block;
}

.down-arrow:hover {
    color: #333;
}

/* Social Media Icons */
.social_media {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}


a {
    color: whitesmoke;
    text-decoration: none;
    transition: 0.5s;
}

.social_media a:hover {
    transform: scale(1.2);    
}

#mailLink:hover {
    transform: scale(1.2);
}

/*Media Query for Tablet*/
@media (max-width: 1100px) { 

    .project:hover {
        transform: none; /* Disable hover effect on mobile */
    } 

    #technical_skills {
    background-attachment: scroll;}

    .sectionProjects {
        background-attachment: scroll;
        padding-bottom: 20vh;
    }
}

@media (max-width: 500px) {
    .sectionProjects {
        height: auto;
    }
}

/* Media Query for Mobile */
@media only screen and (max-width: 767px) {

    #about{
        margin-bottom: 0;
    }



    .imageSection {
        flex-direction: column;      
        align-items: center;
        height: 100%;        
        gap: 1rem;                  
    }

    .project {
        width: 90%;                   
        max-width: 400px;            
        margin: 0 auto;             
       
    }
}

/* Style for the Toggle Mode Button */
.toggle-mode {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hover effect for the button */
.toggle-mode:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Ionicons styling */
ion-icon {
    pointer-events: none; 
    transition: transform 0.3s ease;
}

/* Dark Mode - Button icon */
body.dark-mode .toggle-mode ion-icon {
    color: #fff;
}

/* Optional: Adjust the icon size for better display */
ion-icon {
    font-size: 30px;
}

#mailLink {
    font-style: italic;
    font-weight: 400;
}



/* /* h3 text animation */
.typing-text {
    font-size: 2rem;
    font-weight: bold; 
    display: inline-block;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;   
    padding-right: 5px;
    
}

/* Create a typing effect animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Bounce-in effect for h3 (Web Designer & Front End Developer) */
@keyframes bounceIn {
    0% {
        transform: translateY(-2000px);
        opacity: 0;
    }
    60% {
        transform: translateY(30px);
        opacity: 1;
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.bounce-text {
    animation: bounceIn 1s ease-out forwards;
}

#contact {
    /* background-image: url("https://million-wallpapers.ru/wallpapers/4/35/503339429260115/apple-nastolnye.jpg"); */
	background-image: url('./images/backgroundimg.png');
    background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
    width: 100%;
    height: auto;
}



/* animations for certs */
 
  
  .certificationsImages {
    width: 150px !important;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .certificationsImages.show {
    opacity: 1;
    transform: scale(1);
  }

/* styling for mobile phones projects and arrows */

  .project-nav {  
    height: 100%;
  }
  
  @media (min-width: 480px) {
    .projectRenew {
      display: none;
    }
  }

  .oneProjectTitle, .titleEnding {
   background: linear-gradient(
    rgba(0, 0, 0, 0.6), 
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(6px);
border-radius: 15px;
padding: 15px;
border-radius: 50px;
text-shadow: 2px 2px 15px #333;
max-width: 100%;
text-align: center !important;
  }
  
  .project-details {
    text-align: center;
    
  }
  
  .project-details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  
  .projectImgsForPhone {
    width: 90%;
    max-height: 100%;
    height: auto;
    border-radius: 8px;
  }
  

  .project-fade {
    transition: opacity 0.7s ease;
    opacity: 1;
  }
  
  .project-hidden {
    opacity: 0;
  }
  


