/* Reset default browser styles */
* {
    margin: 0;
    padding: 20;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #1c1c1c;
    line-height: 1.6;
    padding: 0 20px;
}

/* Header (Hero Section) */
header {
    text-align: center;
    padding: 80px 20px;
    background: gainsboro;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

header h1 span {
    color: #1208c5; /* cool blue highlight */
}

header h3 {
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

#about {
    /* max-width: 900px; */
    background: white;
    padding: 40px;
    margin: 0 auto;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#about h2 {
    color: #4a6cf7;
    margin-bottom: 15px;
    font-size: 28px;
}

/* Navigation Bar */
.navbar {
    background: #d80808;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3b82f6;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    line-height: 1.6;
}

/* ===== Navigation Bar ===== */
.navbar {
    width: 100%;
    background: white;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #6d6e73;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4169E1;
    font-weight: bold;
}

/* ===== Hero / Home Section ===== */

.home-bg {
    background: url("bg.gif");
}

html, body {
    height: 100%;
}




#home {
    padding-top: 40px;
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
}

header span {
    color: #4169E1;
}

header h3 {
    margin-top: 10px;
    font-size: 1.3rem;
    color: #555;
}

/* ===== Section Box Style ===== */
section {
    width: 80%;
    margin: 95px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);

    /* background: url("bg.gif"); */
    background-size: cover;        /* ensures GIF covers the section */
    background-position: center;   /* centers the GIF */
    background-repeat: no-repeat;  /* prevents tiling */
}

section h2 {
    font-size: 1.8rem;
    color: #0a0a0a;
    margin-bottom: 10px;
}

section p {
    font-size: 1rem;
    color: #444;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 15px;
    }

    header h1 {
        font-size: 2.3rem;
    }
}

/* ===== Skills Section ===== */

#skills {
    padding: 60px 10%;
    background: hsl(0, 0%, 100%);
    text-align: center;
}

#skills h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    justify-items: center;
}

.skill-card {
    width: 100%;
    max-width: 340px; /* lock visual width */
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
    border-left: 5px solid #4169E1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    min-height: 150px;
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.skill-card p {
    font-size: 0.95rem;
    color: #555;
}


/* ===== About Section ===== */

#about {
    padding: 60px 10%;
    background: #ffffff;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    width: 300px;
    /* height: 260px; */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== Projects Section ===== */

#projects {
    padding: 60px 10%;
    background: #f7f7f7;
}

#projects h2 {
    text-align: center;
    font-size: 2rem;
    color: #222;
    margin-bottom: 40px;
}

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

.project-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.project-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.project-card p {
    color: #555;
    line-height: 1.5;
}

.project-icon {
    font-size: 40px;
    color: #0078ff;
    margin-bottom: 15px;
    display: block;
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03); /* lifts the card */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);  /* stronger shadow */
}

.project-icon {
    font-size: 50px;
    color: #333;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-icon:hover {
    transform: scale(1.3) rotate(10deg);  /* grows and rotates */
    color: #0077ff;                        /* color highlight */
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Project Card Styling */
.project-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Icon Container */
.project-icon-container {
    display: inline-block;
    position: relative;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Icon Styling */
.project-icon {
    font-size: 50px;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-icon:hover {
    transform: scale(1.3) rotate(10deg);
    color: #0077ff;
}

/* Optional: Animated Pulse Background on Hover */
.project-icon-container:hover::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    top: -10%;
    left: -10%;
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

#contact-card {
  width: 80%;
  margin: 50px auto;
  text-align: center;
}

#contact-card h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4169E1;
}

.contact-card-form {
  background: #e2e4ed;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 50%;
  align-self: center;
  margin: 50px auto;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group label span {
  color: #d00;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button[type="submit"] {
  background: #047113;
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

button[type="submit"]:hover {
  background: #2d4fa0;
}

.success-message {
  display: none;
  margin-top: 18px;
  color: #0a7a0a;
  font-weight: bold;
  font-size: 1rem;
}


/* Certifications Section */
.cert-section {
    padding: 60px 0;
    text-align: center;
}

.cert-section h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

/* Grid Layout */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for 3x3 layout */
    gap: 25px;
    width: 80%;
    margin: auto;
}

/* Center the 7th tile in the last row */
.cert-grid > .cert-card:nth-child(7) {
    grid-column: 2; /* center column */
}

/* Glassmorphism Card */
.cert-card {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    background: rgba(41, 35, 219, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 180px;
    overflow: hidden;
    width: 95%;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.03);
}

/* Icon + Title Content */
.cert-content {
    text-align: center;
}

.cert-content img {
    width: 100px;
    margin-bottom: 10px;
}

/* Hover popup */
.cert-hover {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(97, 93, 200, 0.947);
    color: rgb(255, 255, 255);
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    transition: all 0.35s ease;
}

.cert-card:hover .cert-hover {
    bottom: 0;
}

.cert-hover p {
    color: #e0f8ff;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

@media (min-width: 900px) {
    /* Remove old rule since we handle 7th tile centering explicitly */
}



/* Section wrapper */
#skills-scroll {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    width: 80%;
    margin: 40px auto;
}

#skills-scroll h2 {
    text-align: center;
    color: #000000;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Outer container */
.scroll-container {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Sliding track */
.scroll-track {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    animation: scrollLeft 18s linear infinite;
}

/* Icons */
.scroll-track img {
    height: 110px;               /* Uniform height */
    width: 240px;               /* Fixed width container */
    object-fit: contain;        /* Keeps original proportions */
    padding: 10px;              /* Makes spacing consistent */
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-track img:hover {
    transform: scale(1.12);
    opacity: 1;
}


/* Animation: Move right → left continuously */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Final Footer Strip */
.final-strip {
    width: 100%;
    background-color: #1e0c84;
    margin-top: 80px;
}

.strip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
}

/* Left corner alignment */
.strip-left-only {
    justify-content: flex-start;
}

/* Button group */
.strip-actions {
    display: flex;
    gap: 14px;
}

/* Buttons */
.strip-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover effect */
.strip-btn:hover {
    background-color: #ffffff;
    color: #433ddc;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: #1f7a1f; /* professional green */
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 9999;
}

/* Visible state */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 600px) {
    .footer-layout {
        flex-direction: column;
        gap: 12px;
    }

    .footer-right {
        text-align: right;
    }
}

.final-strip {
    position: relative;
    width: 100%;
    background-color: #7121e1;
}

.strip-container {
    position: relative;
    width: 100%;
    padding: 16px 24px;
}

/* Left buttons */
.strip-actions {
    display: flex;
    gap: 14px;
}

/* FORCE right placement */
.footer-right {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #cccccc;
    opacity: 0.85;
    white-space: nowrap;
}





