/* ============================================================
   Global Styles
   ============================================================ */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #eaeaea, #ffffff);
    color: #232323;
    transition: background 0.25s, color 0.25s;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3em 1.5em;
    position: relative;
}


/* ============================================================
   Core Card Styles (Used on Main + Accomplishments Page)
   ============================================================ */

.card,
.accomplishment-card {
    background: #ffffff;
    padding: 3em 2.2em;
    border-radius: 22px;
    box-shadow: 0 8px 40px #0001;
    animation: fadeIn 0.7s cubic-bezier(.3,1.2,.3,1);
    margin-bottom: 3em;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.1em;
    box-shadow: 0 0 0 5px #fff, 0 0 18px #0002;
}

.name {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0.2em 0;
}

.title {
    font-size: 1.18em;
    color: #444;
    margin-bottom: 1em;
}

.tagline {
    font-size: 1.13em;
    margin-bottom: 1.7em;
    line-height: 1.5;
    color: #222;
}


/* ============================================================
   Icon Row
   ============================================================ */

.icons {
    margin-bottom: 2em;
}

.icons a {
    margin: 0 0.45em;
    font-size: 1.5em;
    color: #313131;
    transition: color 0.18s, transform 0.18s;
}

.icons a:hover {
    color: #0073b1;
    transform: translateY(-2px);
}


/* ============================================================
   Buttons (Main CTA + Navigation)
   ============================================================ */

.button {
    display: inline-block;
    background: #000;
    color: #fff !important;
    padding: 0.88em 2em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.19s;
    margin-top: 2em;
    letter-spacing: 0.04em;
}

.button:hover {
    background: #333;
}

.button.cta {
    background: #0073b1;
}

.button.cta:hover {
    background: #005b8d;
}


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

footer {
    text-align: center;
    margin-top: 2.5em;
    font-size: 0.9em;
    color: #777;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 0.9em;
}

.visit-counter img {
    opacity: 0.6;
    height: 1em;
    vertical-align: middle;
}


/* ============================================================
   WHY WORK WITH ME
   ============================================================ */

.why-section {
    background: #f9f9fc;
    border-radius: 13px;
    padding: 2em 2.3em;
    box-shadow: 0 1px 9px #0001;
    margin: 1.8em 0 2.3em 0;
}

.why-section h3 {
    font-size: 1.28em;
    margin-top: 0;
    color: #213e7a;
}

.why-section ul {
    padding-left: 1.2em;
    margin: 1em 0 0 0;
}

.why-section li {
    margin-bottom: 1.1em;
    font-size: 1.04em;
    line-height: 1.6;
    color: #222;
}


/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
    text-align: center;
    margin: 2.5em 0 0.7em 0;
}

.cta-section h3 {
    font-size: 1.18em;
    margin-bottom: 0.6em;
}

.cta-section .button.cta {
    font-size: 1.08em;
    padding: 0.78em 1.6em;
}


/* ============================================================
   Accomplishments Page
   ============================================================ */

.accomplishment-list {
    padding-left: 1em;
    text-align: left;
    margin: 1.7em 0 1.5em 0;
}

.accomplishment-list li {
    margin-bottom: 1.6em;
    font-size: 1.07em;
    color: #232323;
    line-height: 1.7;
}


/* ============================================================
   Dark Mode Styles (Auto + Toggle)
   ============================================================ */

/* MANUAL DARK MODE via toggle */

body.dark,
body[data-theme="dark"] {
    background: linear-gradient(145deg, #232526, #393939);
    color: #e8e8e8;
}

body.dark .card,
body.dark .accomplishment-card,
body.dark .why-section,
body[data-theme="dark"] .card,
body[data-theme="dark"] .accomplishment-card,
body[data-theme="dark"] .why-section {
    background: #22272b;
    color: #eee;
    box-shadow: 0 8px 28px #000a;
}

body.dark .title,
body.dark .tagline,
body.dark .why-section li,
body.dark .accomplishment-list li,
body[data-theme="dark"] .title,
body[data-theme="dark"] .tagline,
body[data-theme="dark"] .why-section li,
body[data-theme="dark"] .accomplishment-list li {
    color: #ddd;
}

body.dark .button,
body[data-theme="dark"] .button {
    background: #eaeaea;
    color: #111 !important;
}

body.dark .button:hover,
body[data-theme="dark"] .button:hover {
    background: #b2b2b2;
}

body.dark .icons a,
body[data-theme="dark"] .icons a {
    color: #ccc;
}

body.dark .icons a:hover,
body[data-theme="dark"] .icons a:hover {
    color: #fff;
}

body.dark footer,
body[data-theme="dark"] footer {
    color: #aaa;
    border-top: 1px solid #333;
}


/* AUTO DARK MODE (User OS preference) */

@media (prefers-color-scheme: dark) {
    body:not(.light):not([data-theme="light"]) {
        background: linear-gradient(145deg, #232526, #393939);
        color: #e8e8e8;
    }

    body:not(.light):not([data-theme="light"]) .card,
    body:not(.light):not([data-theme="light"]) .accomplishment-card,
    body:not(.light):not([data-theme="light"]) .why-section {
        background: #22272b;
        color: #eee;
        box-shadow: 0 8px 28px #000a;
    }

    body:not(.light):not([data-theme="light"]) .button {
        background: #eaeaea;
        color: #111 !important;
    }
}


/* ============================================================
   Dark Mode Toggle Button
   ============================================================ */

.dark-toggle {
    position: absolute;
    right: 1.4em;
    top: 1.5em;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #b3b3b3;
    cursor: pointer;
    z-index: 100;
    transition: color 0.15s;
}

.dark-toggle:hover {
    color: #222;
}

@media (max-width: 600px) {
    .dark-toggle {
        top: 1em;
        right: 0.9em;
    }
}


/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   Responsive Adjustments
   ============================================================ */

@media (max-width: 600px) {
    .page-container {
        padding: 1.2em 0.5em;
    }

    .card,
    .accomplishment-card {
        padding: 1.3em 0.7em;
    }

    .why-section,
    .cta-section {
        padding: 1em 0.3em;
    }
}

/* ============================================================
   Logo Wall
   ============================================================ */


#ecosystem {
  margin-top: 3rem;
}

#ecosystem h2 {
  margin-bottom: 1rem;
}

#ecosystem h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.logo-row img {
  max-height: 80px;
  width: auto;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.logo-row img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

