@charset "UTF-8";

/* Import Inter font (already linked in HTML) */

/* CSS Variables - From ecoradium.css */
:root {
    --bg-color: #0a0a0a; /* Near black background */
    --content-bg: #181818; /* Slightly lighter content background */
    --text-color-primary: #f5f5f7; /* Primary text (off-white) */
    --text-color-secondary: #a1a1a6; /* Secondary text (grey) */
    --text-color-tertiary: #6e6e73; /* Tertiary/footer text (darker grey) */
    --border-color: #333336; /* Subtle border color */
    --header-bg: rgba(20, 20, 20, 0.75); /* Header frosted glass */
    --header-bg-scrolled: rgba(24, 24, 24, 0.85); /* Darker header on scroll */
    --hover-bg-subtle: rgba(255, 255, 255, 0.08); /* Subtle background hover */
    --link-color: #89b4fa; /* Added link color (inspired by Catppuccin blue) */
    --link-hover-color: #b4befe; /* Added link hover color (inspired by Catppuccin lavender) */
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-height: 60px; /* Slightly shorter header */
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
    --section-padding: 80px; /* Consistent section padding */
}

*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: var(--header-height);
    font-size: 16px; /* Base font size */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color-primary);
    font-family: var(--font-family-main);
    font-weight: 400; /* Regular weight */
    line-height: 1.65; /* Generous line height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex-grow: 1;
    width: 100%;
    /* Add padding top to prevent content going under fixed header */
    padding-top: var(--header-height);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* --- Header / Nav --- */
/* Styles based on ecoradium.css, adapted for dropdown */
header#main-header {
    border-bottom: 1px solid transparent;
    background-color: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky; /* Changed from fixed to sticky for simpler main padding */
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

header#main-header.scrolled {
    background-color: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px var(--shadow-color);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: var(--header-height);
    max-width: 1024px; /* Common container width */
    margin: 0 auto;
}

header nav .header-logo-area,
header nav .header_links_right {
    display: flex;
    align-items: center;
}

header nav ul.nav_links {
    display: flex;
    align-items: center; /* Align items vertically */
    list-style-type: none;
}

header nav ul.nav_links li {
    position: relative; /* Needed for dropdown positioning */
}

header nav ul.nav_links li a,
header nav ul.nav_links li .dropbtn { /* Style dropdown button like links */
    display: inline-block;
    outline: none;
    text-decoration: none;
    color: var(--text-color-secondary);
    padding: 0 12px;
    line-height: var(--header-height); /* Center vertically */
    transition: color var(--transition-speed) ease;
    font-size: 14px;
    font-weight: 400;
    background: none; /* Ensure button has no background */
    border: none; /* Ensure button has no border */
    cursor: pointer; /* Make button look clickable */
    font-family: inherit; /* Use the same font */
}

header nav ul.nav_links li a:hover,
header nav ul.nav_links li a:focus,
header nav ul.nav_links li .dropbtn:hover,
header nav ul.nav_links li .dropbtn:focus {
    color: var(--text-color-primary);
}

.navbar-logo {
    height: 50px; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align vertically with text links */
    margin-right: 15px; /* Add some space between logo and links */
  }
  
  /* Ensure the logo area aligns items correctly */
  header nav .header-logo-area {
      display: flex;
      align-items: center;
  }

/* Styles for the logo link container */
.header-logo-area a {
    display: inline-block; /* Allows padding and border-radius */
    background-color: var(--content-bg); /* Choose a background color */
    padding: 5px 12px; /* Adjust vertical and horizontal padding */
    border-radius: 9999px; /* Creates the pill shape */
    transition: background-color var(--transition-speed) ease;
    text-decoration: none; /* Remove underline from link */
    line-height: 0; /* Prevent extra space below the image */
  }
  
  /* Optional: Add a subtle hover effect */
  .header-logo-area a:hover {
    background-color: var(--hover-bg-subtle);
  }
  
  /* Adjustments for the logo image itself */
  .navbar-logo {
    height: 30px; /* You might need to adjust the height slightly */
    width: auto;
    vertical-align: middle; /* Keep it vertically centered */
    margin-right: 0; /* Remove margin if padding is on the link */
  }
  
  /* Ensure the logo area itself is still aligned */
  header nav .header-logo-area {
      display: flex;
      align-items: center;
  }

/* --- Dropdown Menu (Adapted from styles.css) --- */
header .dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--content-bg);
    min-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    padding: 8px 0; /* Keep vertical padding on the UL */
    margin-top: 1px;
    list-style-type: none;
}

header .dropdown-content li {
    padding: 0; /* Remove padding from li */
    list-style-type: none;
    transition: background-color var(--transition-speed) ease; /* Add transition to li */
}

/* Apply hover background to the LI element */
header .dropdown-content li:hover {
    background-color: var(--hover-bg-subtle);
}

header .dropdown-content a {
    color: var(--text-color-secondary);
    padding: 8px 16px; /* Keep padding on the link for text spacing */
    display: block;     /* Keep link as block to be clickable across the width */
    white-space: nowrap;
    /* Remove background transition from 'a', it's now on 'li' */
    transition: color var(--transition-speed) ease;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none; /* Ensure no underline by default */
}

/* Change only text color of 'a' when the parent 'li' is hovered */
header .dropdown-content li:hover a {
    color: var(--text-color-primary);
    /* Remove background-color from here */
    text-decoration: none;
}

/* Optional: Style for focus state for accessibility, mirroring hover */
header .dropdown-content li a:focus {
   outline: none; /* Remove default outline */
   color: var(--text-color-primary); /* Change text color */
}
header .dropdown-content li:focus-within {
    /* Style the LI when the link inside it receives focus */
    background-color: var(--hover-bg-subtle);
    outline: none;
}



/* --- Main Content Sections --- */
main section { /* Style for sections like in ecoradium.html */
    padding: var(--section-padding) 20px;
    max-width: 800px;
    margin: 0 auto var(--section-padding) auto; /* Center sections and add bottom margin */
    text-align: center;
}

/* --- Profile Section (From ecoradium.css) --- */
.profile {
    /* Padding handled by main section */
}

/* --- Profile Section --- */
.profile-picture {
    width: 220px;              /* Keep or adjust width as needed */
    height: auto;               /* Let height adjust automatically */
    /* border-radius: 50%; */   /* REMOVED - No longer forcing a circle */
    /* object-fit: cover; */   /* REMOVED - Not needed with height: auto */
    border: none;
    margin-bottom: 30px;
    /* box-shadow: 0 10px 30px var(--shadow-color); */ /* REMOVED (Recommended) - Shadow might look odd */
    transition: transform var(--transition-speed) ease;
    display: block; /* Ensure it behaves predictably */
    margin-left: auto; /* Center the image if its container is wider */
    margin-right: auto; /* Center the image */
}

.profile-picture:hover {
    transform: scale(1.05); /* Keep the hover effect if desired */
}


.profile-name {
    color: var(--text-color-primary);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.profile-contact {
    color: var(--text-color-secondary);
    font-size: 19px;
    margin: 0 auto 40px auto;
    max-width: 550px;
    font-weight: 300;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    gap: 20px;
}

.social-links li a {
    color: var(--text-color-secondary);
    display: flex;
    text-decoration: none;
    font-size: 26px;
    padding: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid transparent;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.social-links li a:hover,
.social-links li a:focus {
    color: var(--text-color-primary);
    background-color: var(--hover-bg-subtle);
    outline: none;
}

/* --- Content Card Styling (Adapted from styles.css) --- */
.content-card {
    background-color: var(--content-bg); /* Use content background */
    border: 1px solid var(--border-color); /* Use border color */
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto var(--section-padding) auto; /* Center card and add bottom margin */
    max-width: 800px; /* Consistent max width */
    box-shadow: 0 4px 15px var(--shadow-color); /* Use shadow color */
    text-align: left; /* Default to left align for cards */
}

.content-card h1,
.content-card h3 {
    color: var(--text-color-primary); /* Use primary text color for headings */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-card p,
.content-card ul {
    color: var(--text-color-secondary); /* Use secondary text color */
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-card ul {
    padding-left: 25px;
    list-style-type: disc;
}

.content-card li {
    margin-bottom: 10px;
}

/* --- Footer (Adapted from styles.css) --- */
footer#main-footer { /* Use a unique ID for the main footer */
    width: 100%;
    padding: 50px 20px 30px 20px; /* Increased top padding */
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color); /* Match body background */
    color: var(--text-color-tertiary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1024px; /* Limit width */
    margin: var(--section-padding) auto 0 auto; /* Top margin, center footer */
    font-size: 14px;
    font-weight: 300;
}

footer#main-footer div {
    padding: 0; /* Remove padding from grid items */
    text-align: left;
}

footer#main-footer h4 {
    font-size: 16px;
    color: var(--text-color-secondary); /* Slightly brighter footer headings */
    margin-bottom: 15px;
    font-weight: 400;
}

footer#main-footer ul {
    padding-left: 0;
    margin: 0;
    list-style-type: none; /* Ensure no bullets */
}

footer#main-footer li {
    margin-bottom: 8px;
}

footer#main-footer a {
    font-size: 14px;
    color: var(--text-color-tertiary); /* Footer links same as tertiary text */
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer#main-footer a:hover {
    color: var(--text-color-secondary); /* Hover to secondary text */
    text-decoration: underline;
}

footer#main-footer #footer_info p {
    margin-bottom: 5px;
    line-height: 1.5;
}


/* --- Responsive Adjustments --- */
@media only screen and (max-width: 768px) {
    :root {
        --header-height: 56px;
        --section-padding: 60px;
    }

    html {
        font-size: 15px;
    }

    header nav {
        padding: 0 20px;
    }
     header nav ul.nav_links li a,
     header nav ul.nav_links li .dropbtn {
         font-size: 13px;
         padding: 0 10px; /* Slightly reduce padding */
     }

    main section,
    .content-card {
        padding: var(--section-padding) 15px;
        margin-bottom: var(--section-padding);
    }
    .content-card {
         padding: 25px; /* Specific padding for cards */
    }


    .profile-picture {
        width: 130px;
        height: 130px;
    }

    .profile-name {
        font-size: 40px;
    }

    .profile-contact {
        font-size: 18px;
    }

    .social-links li a {
        font-size: 24px;
    }

    footer#main-footer {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 40px 15px 20px 15px;
    }
}

@media only screen and (max-width: 600px) {
    /* Mobile Navigation adjustments - consider a hamburger menu for better usability */
    /* For now, just stack items if needed, might wrap */
    header nav {
        /* Allow wrapping if needed, although might not be ideal */
        /* flex-wrap: wrap; */
        /* justify-content: center; */ /* Center if wrapping */
    }
     header nav ul.nav_links li a,
     header nav ul.nav_links li .dropbtn {
         padding: 0 8px; /* Reduce padding further */
     }
     header .dropdown-content {
        min-width: 150px; /* Adjust dropdown width */
        left: 50%; /* Center relative to parent */
        transform: translateX(-50%); /* Actual centering */
     }

    footer#main-footer {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center; /* Center text in footer columns */
        padding: 30px 15px;
        gap: 25px;
    }
     footer#main-footer div {
         text-align: center; /* Ensure content within divs is centered */
     }
}


@media only screen and (max-width: 480px) {
    :root {
        --header-height: 52px;
        --section-padding: 50px;
    }

    header nav {
        padding: 0 15px;
    }

    main section,
    .content-card {
        padding: var(--section-padding) 10px;
        margin-bottom: var(--section-padding);

    }
     .content-card {
         padding: 20px; /* Specific padding for cards */
    }

    .profile-picture {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 34px;
    }

    .profile-contact {
        font-size: 17px;
    }

    .social-links {
        gap: 15px;
    }

    .social-links li a {
        font-size: 22px;
        padding: 8px;
    }

    footer#main-footer {
        padding: 30px 15px;
        font-size: 13px;
    }
     footer#main-footer h4 {
         font-size: 15px;
     }
     footer#main-footer a {
        font-size: 13px;
     }
}

/* Utility class for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}