/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* VARIABLES */
:root {
    --accent-color: #bd50cb;
    --background-color: #ffffff;
    --text-color: #080000;
    --text-color-muted: #858585;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 128px;

    /* Typography */
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-md: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 28px;
    --font-size-xxl: 88px;
}
/* Dropdown setup */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}

/* Dropdown content - hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style dropdown links */
.dropdown-content li {
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown-content li a {
    padding: 10px 15px;
    color: #333;
    white-space: nowrap;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
}
/* GENERAL STYLING */
body {
    background-color: var(--background-color);
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0 20px;
    color: var(--text-color);
}

#page {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: var(--space-md);
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

nav {
    margin-left: auto;
}

.logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
}

nav ul li a:link,
nav ul li a:visited {
    color: var(--text-color);
    opacity: 0.7;
}

/* TYPOGRAPHY */
a:link,
a:visited {
    color: var(--accent-color);
    text-decoration: none;
}

h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: var(--font-size-xl);
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    font-weight: 200;
    margin-top: var(--space-xl);
}

h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

p {
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color-muted);
    margin-bottom: var(--space-md);
}

/* SECTIONS */
#about {
    margin-top: var(--space-xxl);
}

.about-header {
    display: flex;
    align-items: center; /* Aligns name and profile picture vertically */
    gap: var(--space-md); /* Adds spacing between name and profile picture */
}

.about-header h1 {
    flex: 1; /* Makes the name take up the remaining space */
    margin: 0; /* Removes default margin */
    font-size: var(--font-size-xxl);
    line-height: 1.2;
}

.profile-picture {
    width: 200px; /* Adjusted size for larger profile picture */
    height: 200px; /* Ensure it’s a perfect square */
    object-fit: cover; /* Keeps the image aspect ratio intact */
    border-radius: 8px; /* Slightly rounded corners */
    margin-left: 0; /* Moves it closer to the right */
}

#about p {
    margin-top: var(--space-md);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-color-muted);
}

section {
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.card {
    background: #f4f4f9; /* Light neutral background */
    border-radius: 20px;
    padding: var(--space-xs) var(--space-lg) var(--space-lg);
    border: 1px solid #ddd; /* Soft border for subtle separation */
    margin-bottom: var(--space-lg);
    color: var(--text-color); /* Ensures good contrast with the light background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a soft shadow for depth */
}


.card p {
    margin: var(--space-xs) 0;
    font-size: var(--font-size-sm); /* Slightly larger for readability */
    line-height: 1.6; /* Improves text readability */
}

/* SKILLS */
#skills p {
    line-height: 1.8;
}

/* EXPERIENCE */
#experience .job p.role {
    font-size: var(--font-size-md);
}

/* RECENT WORK */
.project {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr 3fr;
    column-gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
}

.project .thumbnail {
    grid-row: span 2;
}

.project img {
    width: 100%;
    margin-top: var(--space-md);
    border-radius: 14px;
}

.project p a {
    display: inline; /* Allows links to appear inline with text */
    margin-top: 0; /* Removes unnecessary margin for inline links */
}

/* CONTACT */
#contact {
    text-align: center;
}

#contact h2 {
    margin-bottom: 0;
}

#contact p {
    margin-top: 0;
    font-size: var(--font-size-lg);
    font-weight: 200;
    line-height: 1.4;
    color: var(--text-color);
}

/* FOOTER */
footer {
    margin-top: var(--space-xl);
    padding: 0 0 var(--space-lg);
    color: var(--text-color-muted);
    text-align: center;
}

footer .social {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    justify-content: center;
    align-items: center;
}

footer .social a:hover svg {
    fill: var(--accent-color);
}

/* MEDIA QUERIES */
@media screen and (max-width: 600px) {
    :root {
        --accent-color: #bd50cb;
        --background-color: #ffffff;
        --text-color: #080000;
        --text-color-muted: #858585;

        /* Spacing */
        --space-xs: 4px;
        --space-sm: 8px;
        --space-md: 16px;
        --space-lg: 32px;
        --space-xl: 64px;
        --space-xxl: 128px;

        /* Typography */
        --font-size-xs: 14px;
        --font-size-sm: 16px;
        --font-size-md: 18px;
        --font-size-lg: 20px;
        --font-size-xl: 24px;
        --font-size-xxl: 48px;
    }

    header {
        align-items: flex-start;
    }

    .logo {
        font-size: var(--font-size-xl);
    }

    nav ul {
        flex-direction: column;
        gap: 14px;
        list-style: none;
        align-items: flex-end;
    }

    .profile-picture {
        width: 100px; /* Smaller profile picture */
        height: 100px; /* Match width */
        margin-left: 0px;
    }

    section {
        margin-top: var(--space-xl);
        margin-bottom: var(--space-lg);
    }

    h2 {
        margin-top: var(--space-lg);
    }

    .project {
        grid-template-columns: 1fr;
    }
}


#portfolio-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

#portfolio-gallery h1 {
    font-size: var(--font-size-xxl);
    color: var(--accent-color); /* Use the accent color for variety */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox p {
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
}
/* Tabs spacing fixes */
.tabs .tabpanel { padding-top: 8px; }
.tabs .tabpanel > section { margin-top: 0; }  /* kill the global section margin inside tabs */
.tabs .tabpanel h1 { margin-top: 0; }         /* remove default h1 top margin */
#portfolio-gallery { padding-top: 16px; }     /* or 0 if you want it tight */
/* Bigger, bolder tab labels */
.tablist .tab {
    font-size: clamp(18px, 2.2vw, 24px); /* scales nicely from ~18–24px */
    font-weight: 600;
    line-height: 1.2;
    padding: 0.85rem 1.1rem;             /* keep the click target comfy */
  }
  
  /* Optional: make the active one pop a bit more */
  .tab[aria-selected="true"] {
    border-bottom-width: 3px;
  }
  
  /* FIGURES / IMAGES (make them smaller + adjustable) */
figure {
    margin: var(--space-md) 0;
  }
  
  figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
  
  /* Default: small-ish figures */
  figure.small img {
    width: min(320px, 100%);
  }
  
  /* Even smaller option */
  figure.tiny img {
    width: min(220px, 100%);
  }
  
  /* Medium option */
  figure.medium img {
    width: min(600px, 100%);
  }
  
  /* Optional caption styling */
  figcaption {
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
    line-height: 1.4;
  }
  footer {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  
  footer h2 {
    margin-bottom: 0.75rem;
  }
  
  footer a {
    color: inherit;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  