/* ============================================
   Global Variables
   ============================================ */

:root {
    --color-background: #0b1120;
    --color-surface: #111827;
    --color-surface-light: #1f2937;

    --color-primary: #3b82f6;
    --color-primary-hover: #60a5fa;

    --color-text: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-border: #1e293b;

    --max-width: 1200px;
}


/* ============================================
   Reset / Base Styles
   ============================================ */

/*
   Remove the browser's default spacing so that
   the layout behaves consistently.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*
   Enable smooth scrolling when clicking
   navigation links such as #about or #projects.
*/
html {
    scroll-behavior: smooth;
}


/*
   Main website appearance.
*/
body {
    background-color: var(--color-background);
    color: var(--color-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
}


/*
   Make links inherit the website styling
   instead of using the browser default.
*/
a {
    color: var(--color-primary);
    text-decoration: none;
}


/*
   Provide visual feedback when hovering
   over clickable links.
*/
a:hover {
    color: var(--color-primary-hover);
}


/* ============================================
   Header / Navigation
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid var(--color-border);
}


/*
   Navigation container.

   max-width prevents content from becoming
   excessively wide on large monitors.
*/
nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/*
   Portfolio logo / name.
*/
nav > a {
    color: var(--color-text);

    font-size: 1.4rem;
    font-weight: 700;
}


/*
   Remove bullet points from navigation links.
*/
nav ul {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 24px;
}


nav ul a {
    color: var(--color-text-secondary);
    font-weight: 500;
}


nav ul a:hover {
    color: var(--color-primary);
}


/* ============================================
   Main Layout
   ============================================ */

main {
    width: 100%;
}


/*
   All sections use the same maximum width
   and spacing to maintain visual consistency.
*/
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px;
}


/*
   Section headings.
*/
section > h2 {
    margin-bottom: 40px;

    font-size: 2rem;
    color: var(--color-text);
}

/* ============================================
   Portfolio Profile Picture
   ============================================ */

#profile {
    /*
       Keep the profile section compact because
       the main introduction remains inside the
       hero section below.
    */
    padding-top: 80px;
    padding-bottom: 10px;

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}


.profile-picture {
    display: flex;
    justify-content: center;
    align-items: center;
}


/*
   Profile image appearance.

   object-fit: cover prevents the image from
   becoming stretched when displayed as a circle.
*/
.profile-picture img {
    width: 260px;
    height: 260px;

    object-fit: cover;

    border: 4px solid var(--color-primary);
    border-radius: 50%;

    box-shadow:
        0 0 0 10px rgba(59, 130, 246, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/*
   Small visual interaction when the visitor
   places the mouse over the profile picture.
*/
.profile-picture img:hover {
    transform: translateY(-5px);

    box-shadow:
        0 0 0 10px rgba(59, 130, 246, 0.12),
        0 25px 60px rgba(0, 0, 0, 0.45);
}

/* ============================================
   Hero Section
   ============================================ */

#home {
    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


#home h1 {
    margin-bottom: 10px;

    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}


#home h2 {
    margin-bottom: 20px;

    color: var(--color-primary);
    font-size: clamp(1.3rem, 3vw, 2rem);
}


#home p {
    max-width: 700px;
    margin-bottom: 30px;

    color: var(--color-text-secondary);
    font-size: 1.1rem;
}


/*
   Hero buttons.

   These target links directly inside #home.
*/
#home > a {
    display: inline-block;

    margin-right: 12px;
    margin-bottom: 12px;
    padding: 12px 24px;

    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 8px;

    color: white;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


#home > a:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);

    color: white;

    transform: translateY(-2px);
}


/* ============================================
   About Section
   ============================================ */

#about p {
    max-width: 800px;
    margin-bottom: 20px;

    color: var(--color-text-secondary);
    font-size: 1.05rem;
}


/* ============================================
   Experience Section
   ============================================ */

#experience article {
    margin-bottom: 25px;
    padding: 30px;

    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}


#experience article h3 {
    margin-bottom: 5px;

    color: var(--color-text);
    font-size: 1.4rem;
}


#experience article > p {
    margin-bottom: 20px;

    color: var(--color-primary);
    font-weight: 600;
}


#experience article ul {
    padding-left: 20px;
}


#experience article li {
    margin-bottom: 8px;

    color: var(--color-text-secondary);
}


/* ============================================
   Skills Section
   ============================================ */

#skills h3 {
    margin-top: 30px;
    margin-bottom: 15px;

    color: var(--color-text);
}


#skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    list-style: none;
}


/*
   Each skill appears as a small badge.
*/
#skills li {
    padding: 8px 14px;

    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;

    color: var(--color-text-secondary);
}


/* ============================================
   Projects Section
   ============================================ */

#projects article {
    max-width: 650px;
    padding: 30px;

    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


#projects article:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}


#projects h3 {
    margin-bottom: 15px;

    font-size: 1.4rem;
}


#projects p {
    margin-bottom: 18px;

    color: var(--color-text-secondary);
}


#projects article a {
    display: inline-block;

    margin-right: 15px;

    font-weight: 600;
}


/* ============================================
   Education Section
   ============================================ */
/* ============================================
   Education Section
   ============================================ */

#education {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#education article {
    padding: 30px;

    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

#education article:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

#education h3 {
    margin-bottom: 8px;

    font-size: 1.4rem;
    color: var(--color-text);
}

#education article > p {
    margin-bottom: 16px;

    color: var(--color-primary);
    font-weight: 600;
}

#education article ul {
    padding-left: 20px;
}

#education article li {
    margin-bottom: 8px;

    color: var(--color-text-secondary);
}


/* ============================================
   Contact Section
   ============================================ */

#contact {
    text-align: center;
}


#contact p {
    max-width: 650px;
    margin: 0 auto 30px;

    color: var(--color-text-secondary);
}


#contact a {
    display: inline-block;

    margin: 8px;
    padding: 10px 18px;

    border: 1px solid var(--color-primary);
    border-radius: 8px;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


#contact a:hover {
    background-color: var(--color-primary);
    color: white;
}


/* ============================================
   Footer
   ============================================ */

footer {
    padding: 30px 20px;

    border-top: 1px solid var(--color-border);

    text-align: center;
    color: var(--color-text-secondary);
}


/* ============================================
   Mobile / Responsive Design
   ============================================ */

/*
   Rules below apply when the screen width
   becomes 768px or smaller.
*/
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }


    nav ul {
        flex-wrap: wrap;
        justify-content: center;

        gap: 12px;
    }


    nav ul a {
        font-size: 0.9rem;
    }


    section {
        padding: 70px 20px;
    }


    #home {
        min-height: 80vh;
    }


    #experience article,
    #projects article,
    #education article {
        padding: 22px;
    }
   
   /*
   Reduce the profile image size on phones
   and smaller screens.
   */
   #profile 
   {
      padding-top: 60px;
      padding-bottom: 10px;
   }
    
    
   .profile-picture img 
   {
      width: 190px;
      height: 190px;
   }
}
