/* =========================================
   GLOBAL VARIABLES
   ========================================= */

:root {
  --bg-color: #f9fafc;
  --surface-color: #ffffff;
  --card-color: #e6f1ff;
  --text-color: #222;
  --muted-text: #5f6b7a;
  --accent: #64ffda;
  --header-bg: #0a192f;
  --button-blue: #007bff;
  --button-blue-hover: #0056b3;
  --border-color: rgba(10, 25, 47, 0.08);
  --shadow: 0 8px 25px rgba(10, 25, 47, 0.08);
}

body.dark {
  --bg-color: #0a192f;
  --surface-color: #112240;
  --card-color: #112240;
  --text-color: #f9fafc;
  --muted-text: #b8c2d1;
  --accent: #64ffda;
  --header-bg: #112240;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* =========================================
   RESET
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}


/* =========================================
   BODY
   ========================================= */

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}


/* =========================================
   HEADER
   ========================================= */

header {
  text-align: center;
  background-color: var(--header-bg);
  color: #fff;
  padding: 2.5rem 1rem 2rem;
}


/* =========================================
   PROFILE SECTION
   ========================================= */

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  padding: 3px;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 5px rgba(100, 255, 218, 0.08);
}

.profile-section h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtitle {
  color: var(--accent);
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 255, 218, 0.15);
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 600;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

nav a:hover {
  color: #fff;
  opacity: 0.9;
}


/* =========================================
   THEME TOGGLE
   ========================================= */

#theme-toggle {
  margin-top: 1.3rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.9rem;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

#theme-toggle:hover {
  background: var(--accent);
  color: #0a192f;
  transform: translateY(-2px);
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 1.5rem;
}

section p {
  margin-bottom: 1rem;
}


/* =========================================
   HEADINGS
   ========================================= */

h2 {
  color: var(--header-bg);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  font-size: 1.7rem;
  line-height: 1.3;
}

body.dark h2 {
  color: var(--accent);
}

h3 {
  line-height: 1.4;
}


/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero h2 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.hero p {
  max-width: 800px;
  margin: 0 0 1rem 0;
  color: var(--muted-text);
  font-size: 1.05rem;
  line-height: 1.8;
}

body.dark .hero p {
  color: var(--muted-text);
}

.hero .btn {
  margin-top: 0.5rem;
}


/* =========================================
   GENERAL BUTTON
   ========================================= */

.btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.7rem 1.3rem;
  background: var(--button-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.btn:hover {
  background: var(--button-blue-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}


/* =========================================
   SKILLS
   ========================================= */

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.skills-list li {
  background: var(--card-color);
  padding: 0.9rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.skills-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}


/* =========================================
   PROJECTS
   ========================================= */

.projects,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.project-card {
  background: var(--card-color);
  border-radius: 10px;
  padding: 1.3rem;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card h3 {
  color: var(--header-bg);
  margin-bottom: 0.7rem;
}

body.dark .project-card h3 {
  color: var(--accent);
}

.project-card p {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}


/* Keep normal project links separate from button links */
.project-card a:not(.btn) {
  color: var(--button-blue);
  font-weight: 600;
  text-decoration: none;
}

.project-card a:not(.btn):hover {
  color: var(--button-blue-hover);
  text-decoration: underline;
}


/* =========================================
   PROFESSIONAL LINKS
   ========================================= */

.links {
  list-style: none;
}

.links li {
  margin: 0.6rem 0;
}

.links a {
  color: var(--button-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.links a:hover {
  color: var(--button-blue-hover);
  text-decoration: underline;
}

body.dark .links a {
  color: #66aaff;
}

body.dark .links a:hover {
  color: #99cfff;
}


/* =========================================
   HIRE ME BUTTON
   ========================================= */

.hire-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background: var(--button-blue);
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease;
}

.hire-btn:hover {
  background: var(--button-blue-hover);
  transform: translateY(-2px);
  color: #fff;
}

body.dark .hire-btn {
  background: #66aaff;
  color: #0a192f;
}

body.dark .hire-btn:hover {
  background: #99cfff;
  color: #0a192f;
}


/* =========================================
   SCROLL ANIMATION
   ========================================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   COMMUNITY SECTION
   ========================================= */

.community-section {
  padding: 50px 20px;
  text-align: center;
}

.community-section p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.community-card {
  background: var(--header-bg);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.community-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.community-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.community-card h4 {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.community-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.community-card ul {
  margin: 10px 0;
  padding-left: 18px;
}

.community-card li {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.community-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--accent);
  color: #0a192f;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.community-card a:hover {
  background: #fff;
  color: #0a192f;
  transform: translateY(-2px);
}

body.dark .community-card {
  background: #112240;
}


/* =========================================
   FLOATING SOCIAL MEDIA ICONS
   ========================================= */

.floating-socials {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-socials a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #112240;
  color: var(--accent);
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.floating-socials a:hover {
  transform: translateY(-4px) scale(1.08);
  opacity: 0.9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.floating-socials a i {
  display: block;
}


/* =========================================
   WHATSAPP CONTACT BUTTON
   ========================================= */

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #25d366;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =========================================
   PROFESSIONAL PROFILE BUTTONS
   ========================================= */

.social-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    box-shadow 0.2s ease;
}

.social-profile svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* LinkedIn */
.social-profile.linkedin {
  background: #0a66c2;
}

.social-profile.linkedin:hover {
  background: #084f96;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 102, 194, 0.25);
}

/* GitHub */
.social-profile.github {
  background: #24292f;
}

.social-profile.github:hover {
  background: #171a1d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(36, 41, 47, 0.25);
}

/* Upwork */
.social-profile.upwork {
  background: #14a800;
}

.social-profile.upwork:hover {
  background: #108a00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(20, 168, 0, 0.25);
}

/* =========================================
   FOOTER — MATCH HEADER COLOUR
   ========================================= */

body footer {
  display: block;
  width: 100%;
  background: var(--header-bg) !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 2rem 0 0 !important;
  padding: 1.2rem 1rem;
  box-sizing: border-box;
  clear: both;
}

body footer p {
  display: block;
  width: 100%;
  margin: 0 auto !important;
  padding: 0;
  color: #ffffff !important;
  text-align: center !important;
  line-height: 1.6;
}
