/* ===== Root Variables ===== */
:root {
  --primary-color: #123458;
  --secondary-color: #F1EFEC;
  --accent-color: #D2691E;
}

/* ===== Global Styles ===== */
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Section Defaults */
section {
  min-height: 100vh;
  background: linear-gradient(to top, var(--secondary-color), #D4C9BE);
  padding: 50px 10%;
  box-sizing: border-box;
  color: var(--primary-color);
}

/* Logo */
.logo {
  font-size: 25px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Nav Links */
.nav-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 18px;
}

.nav-link:hover {
  font-size: 20px;
  border-bottom: 2px solid var(--primary-color);
  border-radius: 30%;
  transform: translateY(2px);
}

/* Home Section */
.home-img img {
  width: 300px;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  box-shadow: 20px 10px 10px rgba(0, 0, 0, 0.2);
}

.home-text h1,
.home-text h2 {
  color: var(--primary-color);
}

/* Animated Words */
.animated-words span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: var(--accent-color);
  animation: wordRotate 4s linear infinite;
}

.animated-words span:nth-child(1) { animation-delay: 0s; }
.animated-words span:nth-child(2) { animation-delay: 2s; }

@keyframes wordRotate {
  0% { opacity: 0; transform: translateY(100%); }
  5% { opacity: 1; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; }
}


/* Social Icons */
a i {
  color: var(--primary-color);
  font-size: 28px;
  margin-right: 15px;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
}

a i:hover {
  transform: scale(1.3);
  color: var(--accent-color);
}


/* Download Button */
.download-btn {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: var(--accent-color);
}

/*progress-bar*/
.progress-bar{
    transition:.7s;
    background: var(--primary-color);
}



/*about*/
.about{
    color: #123458;
    padding: 100px 10%;
}

.about h2 {
    color: #123458;
    text-align: center;
}

.about strong{
    color: #D2691E;
    font-size: 22px;
}

.about p{
    color: #123458;
    font-size: 22px;
}

/*playing videos*/
#video-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#video-modal-content {
  position: relative;
  background: #000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

/*work*/
.work .box{
  background-color: rgba(240,240,240,0.5);
  height: 500px;
  padding: 1.5%;
}
.work h5{
  padding: 2.5%;
  background-color: var(--secondary-color);
}
.box p{
  color: var(--accent-color);
  font-size: 17px;
  background-color: var(--secondary-color);;
}
.work .box img{
   padding: 5px;
   position : relative ;
   overflow:hidden;
}
.image-container {
  position: relative;
  overflow: hidden;
}
.image-container img {
  display: block;
  width: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  transform: translateX(-110%);
  transition: transform 0.5s ease;
  font-size: 18px;
  font-weight: bold;
}
.image-container:hover .overlay {
  transform: translateX(0);
}
.overlay .btn-link {
  margin-top: 15px;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.overlay .btn-link:hover {
  background-color: #D4C9BE;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  opacity: 0.8;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
}