/* Reset and global styles */
body, ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: radial-gradient(#FF5733, #9933CC);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
}

/* Header styles */
header {
    color: #000;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
    top: 0;
    z-index: 999;
}

.header-photo img {
    width: 80px;
    border-radius: 50%;
}

.header-title {
    flex: 4;
    padding: 5px;

}
#name {
  font-size: 2.6rem; /* Large header name */
  font-weight: 600;
  color: #111;
}

#role {
  font-size: 1.2rem; /* Smaller subtitle */
  font-weight: 400;
  color: #333;
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
  #name {
    font-size: 2rem;
  }

  #role {
    font-size: 1rem;
  }
  section {
    scroll-margin-top: 100px; /* each section offsets when linked via anchor */
    scroll-behavior: smooth;
}
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 20px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

/* Scroll bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background-color: #3498db;
    width: 0%;
    z-index: 9999;
    transition: width 0.25s ease-out;
}

section {
    scroll-margin-top: 100px; /* each section offsets when linked via anchor */
    scroll-behavior: smooth;
}

#profile p {
    color:#111;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: justify;
}

/* Section Headings */
h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

h3, h4 {
    color: #282525;
}


/* Portfolio Box */
.portfolio-box {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    mix-blend-mode: multiply;
    text-align: justify;
    transition: transform 0.3s ease;
}

.portfolio-box:hover {
    transform: translateY(4px);
}

.portfolio-box h3 a {
    padding :30px;
}

.portfolio-box div h3 a:hover  {
    color:#2df08e;
}


/* Skills Section */
#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

#skills ul li {
    list-style: none;
    border-radius: 10px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    animation: float 6s ease-in-out infinite;
}

#skills ul li:hover {
    transform: translateY(-5px);
}

#skills ul li:nth-child(even) {
    animation-delay: 3s;
}

#skills ul li i {
    font-size: 32px;
    margin-bottom: 8px;
}

#skills ul li span:last-child {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

#certificate a{
    text-decoration: none;
    color:#111
}

#certificate a:hover {
    color: #28e4bf;
    transition: 1s;
    transform: translateX(1px);
}

/* Contact section styles */
.box {
    width: 150px;
    margin: 10px;
    display: inline-block;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}

.unorder {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.ab {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.ab:hover {
    color: #28e4bf;
}

.img {
    font-size: 36px;
    margin-bottom: 5px;
}
