/* =========================
   GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #0c0c0c;
    color: #ffffff;
    overflow-x: hidden;
}

/* =========================
   PARTICLE BACKGROUND
========================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* =========================
   HEADER
========================= */
header {
    width: 100%;
    position: fixed;
    top: 0;
    background: rgba(18, 18, 18, 0.8);
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 50;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 16px;
    color: #eaeaea;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #1a73e8;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    padding: 150px 50px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-left h1 span {
    color: #1a73e8;
}

.hero-left p {
    margin: 15px 0;
    font-size: 18px;
    color: #cfcfcf;
}

.stats {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.stat h2 {
    font-size: 38px;
    color: #1a73e8;
}

.btn {
    background: #1a73e8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #0d57c7;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 40px 50px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
    color: #1a73e8;
}

/* =========================
   GLASS EFFECT BOX
========================= */
.glass-box,
.contact-glass {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

/* =========================
   SKILLS GRID (Updated)
========================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);

    /* animation */
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* Animation delays */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

/* Keyframes animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TIMELINE
========================= */
.timeline {
    width: 100%;
    max-width: 750px;
    margin: auto;
    padding: 30px;
    border-left: 3px solid #1a73e8;
}

.timeline-item {
    margin-bottom: 30px;
}

.timeline-item h3 {
    font-size: 20px;
    color: #1a73e8;
    margin-bottom: 8px;
}

.timeline-item span {
    color: #bbbbbb;
}

/* =========================
   SERVICES
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.service-card {
    background: rgba(255,255,255,0.04);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

/* =========================
   UML CARDS
========================= */


.uml-card {
    background: rgba(255,255,255,0.04);
    padding: 18px 20px;         /* reduced padding */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #eaeaea;
    text-align: left;
    min-height: auto;           /* ensures no forced height */
}

/* Title */
.uml-card h3 {
    text-align: center;
    font-size: 18px;            /* smaller text */
    margin-bottom: 8px;         /* reduced space */
}

/* Project description */
.uml-card p {
    text-align: left;
    font-size: 14px;            /* smaller font */
    line-height: 1.45;          /* tighter spacing */
    margin-bottom: 10px;        /* less gap before UML */
    color: #dcdcdc;
}

/* UML diagram */
.uml-card pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    font-size: 13px;            /* reduce font size */
    line-height: 1.3;           /* compressed lines */
    margin-top: 5px;            /* reduce space above */
    padding: 8px 0 0 0;         /* reduce block padding */
}

/* =========================
   EDUCATION
========================= */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.edu-card {
    background: rgba(255,255,255,0.04);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.edu-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* =========================
   CONTACT SECTION
========================= */
.contact-bottom-section {
    padding: 100px 50px 60px;
    display: flex;
    justify-content: center;
}

.contact-glass {
    width: 100%;
    max-width: 650px;
    padding: 35px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(14px);
}

.contact-glass h2 {
    font-size: 30px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.contact-items p {
    font-size: 17px;
    margin: 5px 0;
    color: #e0e0e0;
}

.contact-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 25px;
    background: #1a73e8;
    color: white;
    margin-top: 40px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 25px;
    }

    nav {
        position: absolute;
        top: 70px;
        right: -100%;
        background: rgba(18,18,18,0.9);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        width: 220px;
        transition: 0.3s;
    }

    nav.active {
        right: 20px;
    }

    .hamburger {
        display: block;
    }
}

/* =========================
   CERTIFICATIONS (HORIZONTAL)
========================= */

.certificate-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* wraps nicely on small screens */
}

.certificate-card {
    background: rgba(255,255,255,0.04);
    padding: 12px;
    width: 240px; /* small size */
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.certificate-card img {
    width: 100%;
    height: 120px;       /* small thumbnail height */
    object-fit: cover;   /* perfect cropping */
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.certificate-card p {
    margin-top: 8px;
    font-size: 13px;
    color: #cccccc;
}

/* Floating Contact Button (POPUP + Animation) */
.contact-fab {
    position: fixed;
    right: 22px;
    bottom: 28px;
    background: #1a73e8;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(26,115,232,0.8);
    z-index: 9999;
    transition: 0.25s ease-in-out;
    border: 3px solid rgba(255,255,255,0.3);

    /* Attention-grabbing animations */
    animation: popUp 0.8s ease-out, pulse 2s infinite ease-in-out 1s;
}

/* Hover effect */
.contact-fab:hover {
    transform: scale(1.18);
    background: #0d57c7;
    box-shadow: 0 0 25px rgba(13,87,199,0.95);
}

/* POPUP Animation */
@keyframes popUp {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); }
}

/* Gentle pulsing */
@keyframes pulse {
    0%   { transform: scale(1); box-shadow: 0 0 15px rgba(26,115,232,0.7); }
    50%  { transform: scale(1.08); box-shadow: 0 0 22px rgba(26,115,232,1); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(26,115,232,0.7); }
}

