 /* Modern Color Scheme */
 :root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #4f46e5;
    --accent: #8b5cf6;
    --dark: #111827;
    --light: #f3f4f6;
    --text-light: #e5e7eb;
    --text-dark: #1f2937;
    --success: #10b981;
    --card-bg: #1e293b;
    --border: #374151;
    --gradient-start: rgba(79, 70, 229, 0.2);
    --gradient-end: rgba(139, 92, 246, 0.1);
    --accent-glow: rgba(139, 92, 246, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Header & Navigation */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.9));
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 0 2rem;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, var(--gradient-start), transparent 50%),
                radial-gradient(circle at 70% 50%, var(--gradient-end), transparent 50%);
    opacity: 0.7;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.6);
    transition: all 0.5s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    border-color: var(--accent);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: lightcyan;
    animation: fadeIn 1s ease;       
    
}

header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 700px;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

/* Sections */
section {
    padding: 6rem 5%;
    position: relative;
}

section:nth-child(odd) {
    background-color: rgba(17, 24, 39, 0.7);
}

section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 100px;
}

/* About Section */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about video {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#about p {
    max-width: 800px;
    text-align: justify;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    width: 50%; /* Adjust width */
    margin: 0 auto; /* Center block */
    text-align: left; /* Align text to the left */
}

/* Styling for labels */
.contact-label {
    font-weight: bold;
    color: #bd18cc;
}

/* LinkedIn button styling */
.linkedin-text {
    color: rgba(238, 229, 229, 0.897);
    font-weight: bold;
    background-color: #e9eff1;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}

/* Optional: Style links */
a {
    text-decoration: none;
    color: #d8e2e7;
    font-weight: bold;
}



/* Education Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--dark);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -13px;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin-bottom: 0.5rem;
}

.timeline-item ul {
    margin-left: 1.5rem;
}

.timeline-item ul li {
    margin-bottom: 0.5rem;
}

/* Skills Section */
#skills p {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#skills strong {
    color: var(--accent);
}

/* Certifications Section */
#certifications {
    text-align: center;
}

#certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.responsive {
    padding: 0 6px;
    float: left;
    width: 33.33333%;
}

.gallery {
    border: 1px solid #ccc;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.gallery:hover img {
    opacity: 0.8;
}

.desc {
    padding: 8px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Projects Section */
#projects {
    text-align: center;
}

#projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card video {
    width: 100%;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(37, 99, 235, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    padding: 2rem 5%;
    text-align: center;
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
}

footer p {
    font-size: 1.1rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* Mouse trail effect */
.mouse-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
}

@media screen and (max-width: 768px) {
    .responsive {
        width: 50%;
        padding: 0 4px;
    }
    
    .gallery img {
        height: 180px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    .responsive {
        width: 100%;
        padding: 0 8px;
    }
    
    .gallery img {
        height: 250px;
    }
    
    .desc {
        font-size: 0.85rem;
        padding: 6px;
    }

    section {
        padding: 4rem 5%;
    }

    section h2 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
  header {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    min-height: unset !important;
  }
  .profile-photo {
    width: 120px !important;
    height: 120px !important;
  }
  .profile-video {
    position: static !important;
    display: block !important;
    margin: 16px auto 0 auto !important;
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* Certificate Lightbox Modal Styles */
#certificate-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#certificate-modal[style*="display: flex"] {
  display: flex !important;
}
#certificate-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
#certificate-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
}
#certificate-modal-close:focus {
  outline: none;
}
#certificate-modal-desc {
  color: #fff;
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  #certificate-modal-img {
    max-width: 98vw;
    max-height: 60vh;
  }
  #certificate-modal-close {
    top: 8px;
    right: 16px;
    font-size: 2rem;
  }
  #certificate-modal-desc {
    font-size: 1rem;
    margin-top: 10px;
  }
}

/* Project Card Styles */
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30,60,114,0.08);
  padding: 24px;
  margin: 24px auto;
  max-width: 400px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: 0 8px 32px rgba(30,60,114,0.16);
}
.project-image {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  margin-bottom: 16px;
  object-fit: cover;
}
.project-title {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  color: #1e3c72;
}
.project-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 18px;
}
.project-link-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #1e3c72, #a044ff);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.project-link-btn:hover {
  background: linear-gradient(135deg, #2a5298, #6a3093);
}
@media (max-width: 600px) {
  .project-card {
    padding: 14px;
    max-width: 98vw;
  }
  .project-image {
    max-width: 98vw;
  }
}

#tools {
  margin: 48px auto 0 auto;
  max-width: 900px;
  padding: 0 16px;
}
#tools h2 {
  text-align: center;
  color: #1e3c72;
  margin-bottom: 32px;
}
#tools-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.tool-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30,60,114,0.08);
  padding: 20px 18px 18px 18px;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s;
}
.tool-card:hover {
  box-shadow: 0 8px 32px rgba(30,60,114,0.16);
}
.tool-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #f3f3f3;
}
.tool-title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  color: #1e3c72;
}
.tool-type {
  display: inline-block;
  background: #e0e7ff;
  color: #3b3b7a;
  font-size: 0.9rem;
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.tool-description {
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 14px;
}
.tool-link-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #1e3c72, #a044ff);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.tool-link-btn:hover {
  background: linear-gradient(135deg, #2a5298, #6a3093);
}
@media (max-width: 700px) {
  #tools-container {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .tool-card {
    max-width: 98vw;
  }
}

/* Responsive certificate thumbnails */
#certificates-container .responsive {
  width: 100%;
  max-width: 180px;
  margin: 8px auto;
  display: inline-block;
  vertical-align: top;
}
#certificates-container .gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30,60,114,0.08);
}
@media (max-width: 700px) {
  #certificates-container {
    text-align: center;
  }
  #certificates-container .responsive {
    max-width: 48vw;
    min-width: 120px;
    width: 48vw;
    margin: 8px 2vw;
    display: inline-block;
  }
  #certificates-container .gallery img {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 900px) {
  #certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 32px;
    align-items: flex-start;
  }
  #certificates-container .responsive {
    width: 30%;
    max-width: 260px;
    min-width: 180px;
    margin: 12px 1.5%;
    display: block;
  }
}