/* TJ Portfolio - Rectified & Themed CSS */

/* CHANGE: New Pink & White Color Palette */
:root {
  /* This is the default DARK theme configuration */
  /* UPDATED: Main background is now transparent to show the background image */
  --bg: transparent; 
  --text: #EAEAEA;
  --accent: #E60073;
  /* Using a more transparent value for the glass effect as requested */
  --card-bg: rgba(30, 30, 30, 0.5); 
  --secondary-text: #888888;
  --border-color: rgba(255, 255, 255, 0.1); /* Subtle border for glass effect */
  --theme-toggle-icon: "\f185";
}

[data-bs-theme="light"] {
  /* This is the LIGHT theme configuration */
  --bg: #FFFFFF;
  --text: #222222;
  --accent: #E60073;
  --card-bg: rgba(248, 249, 250, 0.85);
  --secondary-text: #6c757d;
  --border-color: #DEE2E6;
  --theme-toggle-icon: "\f186";
}

/* --- Background Image Styles --- */

/* 1. Default (Light Theme) Background */
/* --- Corrected paths for theme-based backgrounds --- */

/* Default (Light Theme) Background */
body {
  /* CORRECTED PATH */
  background-image: url('../images/light-bg.webp'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}

/* Dark Theme Background Override */
[data-bs-theme="dark"] {
  /* CORRECTED PATH */
  background-image: url('../images/dark-bg.webp');
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0;
}

.navbar-brand.logo {
  color: var(--text);
  font-weight: bold;
}

.navbar-nav .nav-item .nav-link {
  color: var(--secondary-text);
  font-size: 1rem;
  margin: 0 8px;
  position: relative;
  padding: 3px 0;
  transition: color 0.3s ease;
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: var(--text);
}

.navbar-nav .nav-link::after {
  content: '';
  width: 0;
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

#about {
    padding: 80px 0;
    color: var(--secondary-text);
}

#about .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
}

/* --- Tab Link Styles --- */
.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text); /* Make tab titles clearer */
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width 0.3s;
}

.tab-links.active-link::after {
    width: 50%;
}


/* --- Tab Content Styles --- */
.tab-contents {
    display: none; 
}

.tab-contents.active-tab {
    display: block; 
}

.tab-contents ul {
    list-style: none;
    padding-left: 0;
}

.tab-contents ul li {
    margin-bottom: 10px;
}

.tab-contents ul li span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

/* Hero Section */
#hero {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  color: var(--text);
}

.hero-content .name {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content .name span {
  color: var(--accent);
  background: linear-gradient(45deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #FFC0CB));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

/* --- Animated Gradient on Hero Name --- */

/* Add your keyframes rule */
/* --- Combined Animation for Hero Name (Gradient + Bounce) --- */

/* Keyframes for the gradient shifting left and right */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Keyframes for the bounce effect */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* --- Style for the hero name --- */
.hero-content .name span {
  /* Setup for animations */
  display: inline-block;
  cursor: pointer;

  /* Gradient setup */
  background: linear-gradient(to right, #E60073, #FF8C00, #EAEAEA, #E60073);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 1. Play the gradient animation continuously */
  animation: gradientShift 4s ease infinite;
}

/* --- Style for when the mouse hovers over the name --- */
.hero-content .name span:hover {
  /* 2. On hover, play BOTH the gradient and the bounce animation */
  animation: gradientShift 4s ease infinite, bounce 0.8s ease;
}


.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portrait img {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 5px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Things I Love Section
   =================================== */

#things-i-love {
    padding: 80px 0;
    background-color: var(--card-bg);
}

#things-i-love .theme-button {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#things-i-love .section-heading {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-top: 1rem;
}

#things-i-love .card {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* FIX: The following rule was incomplete and has been corrected. */
#things-i-love .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Button & Tagline */
.btn-showcase {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.tagline {
  font-size: 1.1rem;
  color: var(--secondary-text);
  line-height: 1.6;
}

/* Theme Button */
#switchTheme {
  background: none;
  color: var(--text);
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s ease;
}

#switchTheme:hover {
  color: var(--accent);
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .hero-content {
    text-align: center;
  }
  .hero-portrait {
      margin-bottom: 40px;
  }
  .hero-content .name {
    font-size: 2.8rem;
  }
}

/* ===================================
   Skills & Tools Sections - FULL CODE
   =================================== */

#skills-section {
    padding: 80px 0;
    overflow: hidden; 
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* --- CASCADING SKILLS LAYOUT --- */
.skills-grid {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, z-index 0s 0.15s, box-shadow 0.3s ease;
}

.skill-card svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.skill-card:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition-delay: 0s;
}

.skill-card:nth-child(1) { transform: rotate(-15deg) translate(-120%, -30%); z-index: 1; }
.skill-card:nth-child(2) { transform: rotate(-5deg) translate(-50%, 20%); z-index: 2; }
.skill-card:nth-child(3) { transform: rotate(5deg) translate(50%, -50%); z-index: 3; }
.skill-card:nth-child(4) { transform: rotate(15deg) translate(120%, 0%); z-index: 4; }
.skill-card:nth-child(5) { transform: rotate(-10deg) translate(-20%, 90%); z-index: 5; }
.skill-card:nth-child(6) { transform: rotate(10deg) translate(80%, 70%); z-index: 6; }


/* --- OVERLAPPING TOOLS LAYOUT --- */
.tools-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:not(:first-child) {
    margin-left: -60px;
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.tool-card:nth-child(1) { z-index: 6; }
.tool-card:nth-child(2) { z-index: 5; }
.tool-card:nth-child(3) { z-index: 4; }
.tool-card:nth-child(4) { z-index: 3; }
.tool-card:nth-child(5) { z-index: 2; }
.tool-card:nth-child(6) { z-index: 1; }

.tool-card svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}


/* --- MOBILE RESPONSIVENESS FOR SKILLS & TOOLS --- */
@media (max-width: 768px) {
    .skills-grid {
        min-height: 500px;
    }
    .skill-card, .tool-card {
        width: 150px;
        padding: 1.5rem 1rem;
        position: static;
        transform: none !important;
    }
    
    .skills-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .tools-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .tool-card:not(:first-child) {
        margin-left: 0;
    }

    .tool-card:hover, .skill-card:hover {
        transform: translateY(-10px) !important;
    }
}

.text-accent {
  color: var(--accent);
}

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

#contact {
    padding: 80px 0;
}

/* This establishes the two-column layout */
#contact .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Left column with details */
.contact-left {
    flex-basis: 35%;
}

/* Right column with the form */
.contact-right {
    flex-basis: 60%;
    flex-grow: 1; /* Ensures it takes up remaining space */
}

.contact-left h1 {
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.contact-left p {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--secondary-text);
}

.contact-left p i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--secondary-text);
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* Styling for the Download CV and Submit buttons */
.btn.btn2 {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.btn2:hover {
    background: color-mix(in srgb, var(--accent) 85%, #000);
}

/* Form Styling */
.contact-right form {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

form input:focus, form textarea:focus {
    border-color: var(--accent);
}

form .btn.btn2 {
    margin-top: 10px;
}

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

#footer {
    padding: 40px 0 20px;
    background: var(--card-bg); /* Use the card background for a subtle contrast */
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

#footer .social-links {
    margin-bottom: 20px;
}

#footer .social-links a {
    text-decoration: none;
    font-size: 24px; /* Slightly smaller for the footer */
    margin: 0 12px;
    color: var(--secondary-text);
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

#footer .social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

#footer .copyright {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

#footer .credits {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin: 0;
}

/* Makes the heart icon pink */
#footer .credits .bi-heart-fill {
    color: var(--accent);
}