body {
    background-color: #DBE2E9;
    background-image: radial-gradient(circle, rgba(0,0,0,0.05) 2px, transparent 1px);
    background-size: 20px 20px;

    margin: 40px 80px;
    color: #333;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0077cc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 100px;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.model {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    margin-bottom: 50px;
}

.model h2 {
    font-size: 2rem;
    margin-top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 20px;
    color: #005fa3;
}

.model h3
{
    font-size: 1rem;
    margin-top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 10px;
    color: #005fa3;
}

figure {
    display: block;
    margin: 30px auto;
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    max-width: 90%;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*
.model img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}*/

.model p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Fixed white navbar with subtle gradient */
.navbar-container {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(219, 226, 233, 0.85));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 20px;
}

/* Container for navbar content */
.navbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* Top-level menu */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Parent list item positioning */
.navbar ul li {
    position: relative;
}

/* Links styling */
.navbar ul li a {
    color: darkslategray;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

/* Hover effect for main links */
.navbar ul li a:hover {
    background-color: #e0f0ff;
}

/* Dropdown menu (hidden initially with opacity and transform, not display:none) */
.navbar .dropdown-menu {
    display: block !important;  /* keep block for animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    min-width: 160px;
    padding: 6px 0;
    z-index: 2000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: none;  /* disable interactions when hidden */
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Show dropdown on hover with fade + slide-up */
.navbar ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* enable interactions */
}

/* Dropdown menu list items */
.dropdown-menu li {
    margin: 0;
}

/* Dropdown links styling */
.dropdown-menu a {
    padding: 8px 16px;
    border-radius: 0;
    font-weight: 300;
    color: darkslategray;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

/* Dropdown links hover effect */
.dropdown-menu a:hover {
    background-color: #f0f8ff;
}





.intro-section {
    display: flex;
    align-items: flex-start; /* align tops */
    gap: 30px;               /* space between paragraph and card */
    max-width: 1000px;
    margin: 0 auto 40px auto; /* center horizontally with bottom margin */
    padding: 0 20px;
}

.intro-section p {
    flex: 1;                 /* paragraph takes remaining space */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: left;
    margin: 0;               /* reset default margins */
    padding-top: 8px;        /* optional vertical alignment */
    color: #333;
}

.featured-card {
    flex: 0 0 600px;          /* fixed width for card */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
}

.featured-card h2 {
    margin-top: 0;
    color: #0077cc;
    font-size: 1.8rem;
}

.featured-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}


.card-container
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 2000px;
    margin: 40px auto;
    padding: 0 20px;
}

.card-content p
{
    text-align: left;
}

.card-content h2
{
    text-align: center;
}


.card
{
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 400px;
}

.card:hover {
    transform: translateY(-5px);
    background-color: #f5faff; /* subtle blue tint */
}


.short-desc {
    color: #777;
    margin-top: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 119, 204, 0.9);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay
{
    cursor: pointer;
    opacity: 1;
}

.skills-section {
    max-width: 1000px;
    margin: 60px auto 40px auto; /* space around whole section */
    padding: 0 20px;
    text-align: center; /* center header and skills */
}

.skills-section h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #0077cc;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.skill {
    background-color: #0077cc;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: default;
    /* animation */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Subtle "pop" on hover */
.skill:hover {
    background-color: #005fa3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 95, 163, 0.4);
}

/* Optional: pulse animation on load */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* You can animate all skills on page load */
.skill {
    animation: pulse 2s ease infinite;
    animation-delay: var(--delay);
    animation-iteration-count: 1; /* just once */
}

/* Use CSS variables to delay animation for each skill */
.skill:nth-child(1) { --delay: 0s; }
.skill:nth-child(2) { --delay: 0.1s; }
.skill:nth-child(3) { --delay: 0.2s; }
.skill:nth-child(4) { --delay: 0.3s; }
.skill:nth-child(5) { --delay: 0.4s; }
.skill:nth-child(6) { --delay: 0.5s; }


.fun-personal {
    background-color: #f0f4f8;
    padding: 30px 20px;
    border-radius: 12px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    text-align: center;
}

.fun-personal h2 {
    color: #0077cc;
    font-size: 2rem;
    margin-bottom: 15px;
}

.fun-personal p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.fun-personal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Class to trigger the animation */
.fun-personal.visible {
    opacity: 1;
    transform: translateY(0);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

.comparison-table thead {
    background-color: #0077cc;
    color: #ffffff;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 1rem;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f4f9fd;
}

.comparison-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.comparison-table th {
    font-weight: 600;
    font-size: 1.05rem;
}

.comparison-table td {
    color: #333;
}

.comparison-table caption {
    caption-side: top;
    font-size: 1.3rem;
    font-weight: bold;
    color: #005fa3;
    margin-bottom: 10px;
}

