:root {
  --white: #efe8e8;
  --bright-cyan: #42afe1; 
  --primary-blue: #0098db;
  --deep-purple: #252446;
  --darkest-purple: #1e1f2f;
}

/* General Styles */
body {
  font-family: 'Tektur';
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--white); /* White text for better contrast */
  background-color: var(--dark-blue); /* Dark blue background */
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  background: var(--deep-purple);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  white-space: nowrap; /* Prevent text wrapping */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap; 
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: clamp(0.8rem, 2vw, 1rem); /* Responsive font size */
  white-space: nowrap; /* Prevent text wrapping */
}

nav ul li a:hover {
  color: var(--bright-cyan);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
  nav ul {
    gap: 1.5rem; /* Further reduce gap for smaller screens */
  }

  nav ul li a {
    padding: 0.5rem 0.8rem; /* Adjust padding for smaller screens */
    font-size: clamp(0.7rem, 2vw, 0.9rem); /* Smaller font size for mobile */
  }
}

@media (max-width: 480px) {
  nav ul li a {
    padding: 0.5rem 0.6rem; /* Even smaller padding for very small screens */
    font-size: clamp(0.6rem, 2vw, 0.8rem); /* Smaller font size for very small screens */
  }
}

/* Sections */
section {
  padding: 4rem 1.5rem;
  text-align: center;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--bright-cyan); 
}

#about {
  background: linear-gradient(135deg, var(--primary-blue), var(--deep-purple));
  color: var(--white);
  padding-top: 1rem;
  padding-bottom: 3rem;
  text-align: center;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.profile-photo-container {
  width: 250px;
  height: 250px;
  margin-top: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--bright-cyan);
  box-shadow: 0 4px 15px rgba(0f, 0, 0, 0.2);
  flex-shrink: 0;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-text {
  text-align: left;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.3rem;
  line-height: 1.6;
}


#portfolio {
  background: var(--darkest-purple); 
}

    #portfolio iframe {
        width: 100%;
        max-width: 870px;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        margin-top: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: none;
    }


#projects {
  background: var(--darkest-purple);
}

.project {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 2rem;
  background: var(--deep-purple);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project iframe {
  width: 100%;
  max-width: 400px;
  height: 250px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid var(--);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-description {
  text-align: left;
  flex: 1;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
  box-sizing: border-box; 
}

.btn-source {
  background: var(--primary-blue); 
  color: var(--white);
}

.btn-source:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0.95;
}

.btn-build {
  background: var(--primary-blue); 
  color: var(--white);
}

.btn-cv {
  background: var(--medium-blue); 
  color: var(--white);
  margin: 1.5 rem 0;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0.95;
}


#contacts {
  background: var(--darkest-purple); 
}

.email-link {
  display: inline-flex; /* Align icon and text horizontally */
  align-items: center; /* Vertically center the icon and text */
  gap: 0.5rem; /* Space between icon and text */
  color: var(--white); /* Use your bright cyan color variable */
  text-decoration: none; /* Remove underline */
  font-weight: 600; 
  transition: color 0.3s ease;
  padding-right: 1rem;
}

.email-link:hover {
  color: var(--primary-blue); 
}

.email-link i {
  font-size: 2.5rem; 
}

.fab {
  font-size: 1.4rem; 
}
.fas {
  font-size: 1.3rem; 
}



.regular-link {
  color: var(--bright-cyan); 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.regular-link:hover {
  color: var(--primary-blue); 
  text-decoration: underline;
}


footer {
  background: var(--deep-purple);
  color: var(--white);
  text-align: center;
  padding: 0.2rem;
}

.tektur-font {
  font-family: "Tektur";
  font-optical-sizing: auto;
  font-weight: 700; 
  font-style: normal;
  font-variation-settings: "wdth" 100;
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: row; /* Keep navigation horizontal */
    gap: 0.5rem; /* Reduce gap for smaller screens */
    justify-content: center; /* Center navigation items */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  nav ul li a {
    font-size: 0.9rem; /* Smaller font size for mobile */
    padding: 0.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo-container {
    width: 250px;
    height: 250px;
  }

  .project {
    flex-direction: column;
    padding: 1.5rem;
  }

  .project iframe {
    width: 100%;
    height: auto;
  }

  .project-buttons {
    flex-direction: row; /* Keep buttons horizontal */
    gap: 0.5rem; /* Reduce gap between buttons */
    justify-content: center; /* Center buttons */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .btn {
    width: auto; /* Allow buttons to shrink */
    padding: 0.8rem 1.2rem; /* Adjust padding */
  }

  h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {

  #portfolio video {
    height: auto;
  }

  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .project-buttons {
    flex-direction: row; /* Keep buttons horizontal */
    gap: 0.5rem; /* Reduce gap between buttons */
    justify-content: center; /* Center buttons */
  }

  .btn {
    width: auto; /* Allow buttons to shrink */
    padding: 0.8rem 1rem; /* Adjust padding */
  }
}

