/* --------------------COLOR PALLET------------------------ */
/* Dark Green      #3c8453 (60,132,83)   | Sandy Beige           #bcaa96 (188,170,150) */
/* Dark Gray       #222222 (34,34,34)    | Light Gray            #d3d4d6 (211,212,214) */
/* White           #ffffff (255,255,255) | Off-White             #f6f6f6 (246,246,246) */
/* LinkedIn Blue   #0a66c2 (10,102,194)  | Darker LinkedIn Blue  #004182 (0,65,130)    */
/* Navy Deep       #0a2342 (10,35,66)    | Electric Blue         #1976d2 (25,118,210)  */
/* Slate Gray      #37474f (55,71,79)    | Cool Light Gray       #eceff1 (236,239,241) */
/* Aqua Signal     #00b8d9 (0,184,217)   | Midnight Black        #0d1117 (13,17,23)    */
/* Soft Graphite   #161b22 (22,27,34)    | Cyber Blue            #3b82f6 (59,130,246)  */
/* Smoke Gray      #c6d0d8 (198,208,216) | Snow White            #f8fafc (248,250,252) */
/* Emerald Neon    #10b981 (16,185,129)  | Teal 300              #4db6ac (77,182,172)  */
/* Indigo 900      #1a237e (26,35,126)   | Indigo 600            #3949ab (57,73,171)   */
/* Light Blue 400  #42a5f5 (66,165,245)  | Gray 50               #fafafa (250,250,250) */

/* ---------------------GLOBAL SYTLES---------------------- */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

body {
    background-color: #dbeafc; /* Pastel Blue */
    background-size: cover;
    margin: 0;
}

body.home {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background: #000; /* Fallback background */
}

/* --------------------------HOME-------------------------- */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.25);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    z-index: 0;

}
.hero {
  min-height: 100vh;              /* ensures full screen height */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;

  background-image: url(../images/backgrounds/bg-blue-abstract-background.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 14px;

  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

  align-items: center;
  z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-align: center;
}

.hero-content h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #6bb6ff;
    text-align: center;
}

.hero-paragraphs {
    align-self: stretch;
    text-align: left;
    margin-bottom: 18px;
    max-width: 900px;
}

.btn-primary {
    display: inline-block;
    text-align: center;
    margin-top: 20px;
    padding: 14px 26px;

    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    font-weight: bold;
    border-radius: 10px;

    text-decoration: none;
    letter-spacing: 0.5px;

    box-shadow: 0 6px 14px rgba(25, 118, 210, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(25,118,210,0.5);
}

/* -------------------------RESUME------------------------- */

.resume header::before {
    background: url(../images/backgrounds/bg-polygon-tech-blue.webp) center;
    background-size: cover;
    content: '';
    display: block;
    height: 375px;
    z-index: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    margin: 0 auto;    
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #222;
}

.header-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: #1976d2;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* -----------------------BASE CARD------------------------ */

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

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    border: 2px solid rgba(25,118,210,0.4);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ----------------------PROJECT CARD---------------------- */

.project-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    margin-bottom: 20px;
    text-decoration: none;

    opacity: 0;    /* for JS fade-in animation */
    transform: translateY(30px);   /* Initial state for animation */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;  /* Extend base for opacity */
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail imag {
    transform: scale(1.05);
}

.project-info {
    flex: 1;
}

.project-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #222;
}

.project-description {
    text-align: left;
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.5;
}

.project-highlights {
    text-align: left;
    margin: 0;
    padding-left: 20px;
    color: #555;
    list-style-type: disc;
    line-height: 1.5;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ---------CERTIFICATIONS & PROFESSIONAL TRAINING--------- */
/* CERTIFICATION CARDS */
.cert-card {
    max-width: 300px;
}

/* Verified / Active */
.cert-card.verified {
    border: 2px solid rgba(0,128,0,0.6); /* Green glow */
}

.cert-card.verified:hover {
    box-shadow: 0 10px 20px rgba(0, 128, 0, 0.2);
    
}

.cert-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cert-actions a, .cert-actions button {
    flex: 1 1 100px;
    text-align: center;
}

.verify-code {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--clr-muted);
}

.verify-btn, .pdf-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

/* Verify Button (Green) */

.verify-btn {
    background: rgba(0, 255, 153, 0.15);
    border-color: rgba(0, 255, 153, 0.4);
    color: #00ff99;
}

.verify-btn:hover {
    background: rgba(0, 255, 153, 0.25);
    border-color: rgba(0, 255, 153, 0.7);
}

/* PDF Button (Blue) */

.pdf-btn {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.pdf-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.7);
}

/* Copy Code Button (Default) */

.copy-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(25, 118, 210, 0.15);
    border-color: rgba(25, 118, 210, 0.4);
    color: #222;
    cursor: pointer;
    transition: all 0.25 ease;
}

.copy-btn:hover {
    background: rgba(25, 118, 210, 0.25);
    border-color: rgba(25, 118, 210, 0.7);
}

/* Expired */

.cert-card.expired {
    opacity: 0.7;
    border: 2px solid rgba(128, 128, 128, 0.6);
}

.cert-card.expired:hover {
    box-shadow: 0 10px 20px rgba(128, 128, 128, 0.2); /* gray glow */
}

/* Training / Not Obtained */

.cert-card.training {
    opacity: 0.7;
    border: 2px solid rgba(25,118,210,0.6);
}
.cert-card.training svg {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
}

.cert-card.training h3, .cert-card.training p {
    margin: 5px 0;
    color: #1976d2;
}

.cert-card.training:hover {
    box-shadow: 0 10px 20px rgba(25, 118, 210, 0.2); /* subtle blue glow */
}

/*  Common Elements */

.cert-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cert-card h3 {
    font-size: 1rem;
    margin: 5px 0;
    color: #222;
}

.cert-card p {
    font-size: 0.85rem;
    color: #555;
}

/*  Icon Container */

.cert-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* -------------TECHNICAL SKILLS & COMPETENCIES------------ */

.skills-section {
    margin: 60px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.skills-section .card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skill-card {
    align-items: flex-start !important;
    text-align: left !important;
}

.skill-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.skill-card ul {
    list-style: disc;
    padding-left: 22px;
}

.skill-card li {
    margin-bottom: 8px;
}

.skill-icon {
    font-size: 2rem;
    color: #1976d2;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

/* ---------------------WORK EXPERIENCE-------------------- */

.experience-section {
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.experience-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.experience-section .section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.experience-section .section-header .army-logo {
    max-width: 80px;
    height: auto;
}

.experience-section .card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.card.work-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.card.work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(25,118,210,0.3);
}

.job-icon {
    margin-bottom: 12px;
}

.job-img {
    height: 60px;
    width: auto;
}

.company-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.company-img {
    max-width: 80px;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

.card.work-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

.card.work-card .company-name {
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}

.card.work-card .job-responsibilities {
    text-align: left;
    list-style: disc;
    padding-left: 22px;
    color: #555;
}

.card.work-card .job-responsibilities li {
    margin-bottom: 6px;
}

.experience-subsection {
    margin-bottom: 40px;
}

.experience-subsection h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* --------------------AWARDS AND HONORS------------------- */

.awards-section .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card Styles */

.award-ribbon {
    width: 60px;
    height: auto;
    margin-bottom: 12px;
}

/* Title and List */

.award-card h3 {
    margin: 8px 0;
    font-size: 1.1rem;
    color: #222;
}

.award-instances {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    color: #555;
    margin: 0;
}

/* Different colors for types */

.award-card.personal {
    border: 4px solid #10b981; /* Emerald Green */
}

.award-card.unit {
    border: 4px solid #0a2342; /* Navy Deep */
}

.award-card.academic {
    border: 4px solid #f0c419; /* Gold / Academic */
}

/* ------------------------EDUCATION----------------------- */
.education-section {
    margin: 20px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.education-section .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.education-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.edu-ribbon {
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.edu-logo {
    max-width: 120px;
    height: auto;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-logo:hover {
    transform: scale(1.05);
    box-shadow: o o 12px rgba(25, 118, 210, 0.5); /* glow effect */
}

.edu-name {
    font-weight: 600;
    margin-top: 8px;
    font-size: 1.1rem;
    color: #222;
}

.edu-details p {
    margin: 4px 0;
    color: #555;
}

.honors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.honor-icon {
    width: 24px;
    height: 24px;
}

/* --------------------SECURITY CLEARANCE------------------ */

.security-section {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
}

.security-section .card-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    gap: 20px;
}

.clearance-card {
    max-width: 400px;
}

.clearance-icon {
    margin-bottom: 10px;
}
/* -------------------------FOOTER------------------------- */

footer {
  background: #0a0a0a;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #0a0a0a;
  margin-top: 40px;
}

.contact-section h2 {
  color: #6bb6ff;
  margin-bottom: 15px;
}

.contact-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ddd;
  text-decoration: none;

  transition: color 0.2s, transform 0.2s;
}

.contact-item:hover {
  color: #6bb6ff;
  transform: translateY(-3px);
}

.attribution {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ---------------RESPONSIVE DESIGN ELEMENTS--------------- */

@media (max-width: 600px) {
    .project-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-thumbnail img {
        width: 100%;
        height: auto;
    }
    .awards-grid, .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .project-card:active {
        transform: scale(0.97);
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    }
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .skill-card {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
    .resume-btn {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
    .hero-content {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}