:root {
  --primary-color: #333;
  --secondary-color: #666;
  --accent-color: #000000;
  --light-color: #f8f9fa;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff, #ffffff, #e9e9e9, #ffffff);
  background-size: 400% 400%;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(214, 214, 214, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: -1;
}

/* Header & Hero Section */
header.hero {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #f0f0f0, #e0e0e0, #ffffff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-size: 100% 100%;
}

/* Main Navigation */
.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  height: 80px;
  position: relative;
}

.logo-container {
  position: relative;
  top: 20px;
  margin-right: 40px;
}

.logo-image {
  height: 100px;
  width: auto;
  max-width: 200px;
  transition: all 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8rem;
  margin: 0 0 0 40px;
  padding: 0;
  height: 100%;
  align-items: center;
  position: relative;
  top: 5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 0;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.5rem;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.home-link::after {
  display: none !important;
}

.home-link:hover::after {
  display: none !important;
}
.nav-links a.active::after {
  width: 100%;
}

/* Intro Section */
.intro-container {
  display: flex;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  align-items: center;
  gap: 3rem;
}

.intro-text {
  flex: 1;
  text-align: left;
}

.profile-image {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 80px;
}

.profile-pic {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.13));
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

/* Certification Gallery */
.certification-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.cert-image {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 170px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-image:hover {
  transform: scale(1.03);
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cert-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cert-image:hover .cert-details {
  transform: translateY(0);
}

/* Design Grid */
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.design-board {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  height: 220px;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.design-board:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.25);
}

/* Floating Navigation */
.floating-logo-container {
  position: fixed;
  bottom: 50px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 0px;
  box-sizing: border-box;
}

.floating-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.floating-nav {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  gap: 10px;
  width: 180px;
}

.floating-nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: right;
  position: relative;
}

.floating-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 6px;
  right: 12px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.floating-nav a:hover::after {
  width: calc(100% - 24px);
}

.floating-nav a.active {
  color: var(--accent-color);
}

.floating-nav a.active::after {
  width: calc(100% - 24px);
}

.floating-logo-container.active .floating-nav {
  display: flex;
}

.floating-logo-container.active .floating-logo {
  transform: rotate(90deg);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.25);
  color: rgb(0, 0, 0);
}

/* Responsive Design */
@media (max-width: 900px) {
  .certification-gallery,
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo-container {
    top: 0;
    margin-right: 0;
    text-align: center;
  }
  
  .nav-links {
    gap: 2rem;
    margin: 1rem 0 0 0;
    top: 0;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .certification-gallery,
  .design-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-container {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image {
    flex: 0 0 auto;
    top: 0;
    margin-top: 2rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Fix for HOME link underline */
.nav-links a[href="#"]::after {
  width: 0 !important;
}

.nav-links a[href="#"].active::after {
  width: 100% !important;
}