:root {
  --primary-color: gold;
  --secondary-color: orange;
  --bg-color: #111;
  --nav-color: gray;
  --nav-text: black;
  --text-color: #fff;
  --text-light: #ddd;
  --card-bg: #222;
  --nav-bg:         var(--nav-color, gray);        /* panel background */
  --nav-text:       var(--nav-text, black);        /* link color */
  --nav-hover:      var(--primary-color, gold);    /* link hover */
  --panel-width:    260px;                         /* slide-in width */
  --panel-top:      70px;                          /* navbar height offset */
  --transition:     0.35s ease;                    /* timing */
  --backdrop-color: rgba(0,0,0,0.4); 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 70px; /* Offset for fixed navbar */
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--nav-color);
  padding: 1rem 5%;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nav-text);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.75rem;
  color: var(--nav-text);
}

.nav-menu li a {
  padding: 0.5rem 0;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--nav-text);
}

.nav-menu li a.active {
  color: var(--nav-text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-menu li:last-child::after {
  display: none;
}

/* Intro Section */
.intro {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
  url('office.jpg') center/cover no-repeat;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  margin-bottom: 2rem;
}

.intro h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.intro h1 span {
  color: var(--secondary-color);
}

.cv-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 2rem;
  transition: all 0.3s;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.cv-button:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* About Section */
.about-section {
  display: flex;
  padding: 5rem 10%;
  gap: 3rem;
  background-color: var(--card-bg);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.about-text {
  flex: 1;
}

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

.about-text p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #444;
}

.tab {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  transition: color 0.3s;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Tab Contents */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.skill-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease; 
  filter: none;
}

.skill-item:hover img {
  transform: scale(1.5); 
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
}

.skill-item span {
  font-weight: 500;
  color: var(--text-color);
}

/* Other Sections */
.section {
  padding: 5rem 10%;
  min-height: 100vh;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-section {
    flex-direction: column;
    padding: 3rem 5%;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; 
  }
  
  .intro h1 {
    font-size: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .intro h1 {
    font-size: 2rem;
  }
  
  .profile-photo {
    width: 150px;
    height: 150px;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

section {
  min-height: 100vh;
  padding: 6rem 10%;
}

.about-container {
  display: flex;
  gap: 3rem;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.button-group {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
}

.hire-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.hire-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 165, 0, 0.4);
}

.download-btn {
  border: 2px solid var(--secondary-color);
  background-color: transparent;
  color: var(--primary-color);
}

.download-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

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

.project-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

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

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-section {
  background-color: var(--bg-color);
  padding: 5rem 10%;
}

.contact-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.6;
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background-color: #1a1a1a;
  color: var(--text-color);
  font-size: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--text-light);
}

.contact-form button {
  padding: 0.8rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.9;
}

footer {
  background-color: #111;
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 4rem;
}

footer small {
  font-size: 0.9rem;
  color: var(--text-light);
}

footer .social-links {
  margin-top: 1rem;
}

footer .social-links a {
  color: var(--text-light);
  font-size: 1.3rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: var(--primary-color);
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;             
  font-size: 1.8rem;
  color: var(--nav-text);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;            
  padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--panel-top);
    right: 0;
    width: var(--panel-width);
    height: calc(100% - var(--panel-top));
    background: var(--nav-bg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 950;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .nav-menu li::after {
    display: none;
  }
  
  .nav-menu li a {
    display: block;
    padding: 0.8rem 0;
  }

  .nav-menu ul {
  list-style: none;
  width: 100%;
  margin-top: 1rem;
}
.nav-menu li + li {
  margin-top: 1rem;
}
.nav-menu a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-menu a:hover {
  color: var(--nav-hover);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--nav-hover);
  transition: width var(--transition);
}
.nav-menu a:hover::after {
  width: 100%;
}

  .nav-overlay {
  position: fixed;
  inset: 0;                  
  background: var(--backdrop-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility 0s linear var(--transition);
  z-index: 900;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; 
    position: relative;
    overflow: hidden;
  }
  
  .about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Projects Section */
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    grid-template-columns: 1fr 1.5fr;
    display: grid;
    align-items: center;
    gap: 1.5rem;
  }
  
  .project-card img {
    height: 100%;
    max-height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 0;
  }
  
  .section, .about-section {
    padding: 3rem 5%;
    min-height: auto;
  }
  
  section {
    padding: 4rem 5% !important;
  }
  
  .intro {
    padding: 4rem 2rem !important;
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  
  .project-card img {
    max-height: 200px;
    width: 100%;
  }
  
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  /* Reduce font sizes */
  .intro h1 {
    font-size: 2rem;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  /* Tab adjustments */
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem;
  }
}










