/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: larger;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 15px 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-menu a:hover {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6610f2, #0d6efd);
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
    text-align: center;      
}

.hero .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero img {
    margin-top: 35px;
    border-radius: 25px;
    max-width: 400px;
    width: 200%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.05);
}

/* Section Titles */
.section h2 {
    text-align: center;
    color: #0d6efd;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

/* Shift About Me content slightly right */
#about p,
.cv-buttons {
    margin-left: 20px;
    font-size: larger;  /* adjust this value to move more or less */
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #0d6efd;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* CV & LinkedIn Buttons */
.cv-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

/* Make LinkedIn button bigger */
.linkedin-btn {
    font-size: 1.3rem;       /* increases button text size */
    padding: 14px 32px;      /* bigger button padding */
}

.linkedin-btn i {
    font-size: 1.8rem;       /* bigger LinkedIn icon */
    vertical-align: middle;  /* aligns icon nicely with text */
    margin-right: 8px;       /* space between icon and text */
}


.cv-btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.skill-btn {
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #0d6efd;
}

/* The content box that appears below skill name */
.skill-content {
    display: none;
    background: #f0f8ff;        /* light blue box */
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 0.95rem;
    color: #333;
}

/* Show content when active */
.skill-card.active .skill-content {
    display: block;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 10px;
    background: #333;
    color: white;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .tagline {
        font-size: 1rem;
    }
    .header {
        padding: 30px 15px;
    }
}

/* Certificates Section */
.cert-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Certificates Grid */
.cert-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.cert-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
    text-align: center;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cert-img {
    width: 100%;
    max-width: 180px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cert-img:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


/* Certificates Section Centering */
#certificates {
    text-align: center; /* center everything inside certificates section */
}

#certificates .issued {
    font-size: 25px;
    margin-bottom: 15px;
    color: #555;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 50px 20px;
}


/* Ensure body takes full height */
html, body {
    min-height: 50%;
    display: flex;
    flex-direction: column;
}

/* Make main content grow */
body > *:not(footer) {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}


