/* Dark mode styles for Alexandre Carneiro's portfolio */
:root {
    --bg-dark: #111827; /* gray-900 */
    --bg-light: #1f2937; /* gray-800 */
    --text-dark: #111827;
    --text-light: #ffffff;
    --text-gray: #e5e7eb;
    --teal-accent: #10b981;
}
body {
    font-family: 'Geist', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
}
section.w-full {
    width: 100%;
    padding: 4rem 0; /* py-16 */
}
.bg-dark {
    background: #111827; /* gray-900 */
}
.bg-light {
    background: var(--bg-light);
}
.text-dark {
    color: var(--text-dark)
}
.text-light {
    color: var(--bg-light);
}
.mx-auto {
  width: 50%; /* Or any specific width less than 100% */
  margin-left: auto;
  margin-right: auto;
}
.my-auto {
  width: 50%; /* Or any specific width less than 100% */
  margin-top: auto;
  margin-bottom: auto;
}
/* Horizontal margin */
.mx-1 {
  margin-left: 1px; /* Example value */
  margin-right: 1px; /* Example value */
}
.mx-2 {
  margin-left: 2px; /* Example value */
  margin-right: 2px; /* Example value */
}
.mx-3 {
  margin-left: 3px; /* Example value */
  margin-right: 3px; /* Example value */
}
/* Vertical margin */
.my-1 {
  margin-top: 1px; /* Example value */
  margin-bottom: 1px; /* Example value */
}
.my-2 {
  margin-top: 2px; /* Example value */
  margin-bottom: 2px; /* Example value */
}
.my-3 {
  margin-top: 3px; /* Example value */
  margin-bottom: 3px; /* Example value */
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Button Styles */
.view-project, .read-more {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}
.button-contact {
    background: #10b981;
    color: #111827;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.button-contact:hover {
    background: #059669; /* teal-700 */
}
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Navigation */
nav {
    background-color: #1f2937; /* gray-800 */
    color: #ffffff;
    padding: 0.8rem; /* p-4 */
    position: sticky;
    top: 0;
    z-index: 50;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a.brand {
    font-size: 1.25rem; /* text-xl */
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

nav ul.show {
    display: flex;
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: row;
        gap: 1rem; /* space-x-4 */
    }
}

nav ul li a {
    display: block;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    color: #ffffff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

nav .mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

@media (min-width: 768px) {
    nav .mobile-toggle {
        display: none;
    }
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #111827; /* Dark mode */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .nav-menu.show {
        display: flex; /* Show when toggled */
    }
    .nav-menu li {
        margin: 1rem 0;
    }
    .nav-menu a {
        color: #ffffff;
        font-size: 1.5rem;
        text-decoration: none;
    }
}

.mobile-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
@media (max-width: 768px) {
    .mobile-toggle {
        display: block; /* Show on mobile */
        position: relative;
        z-index: 1000;
    }
    .mobile-toggle svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff; /* White for dark mode (#111827) */
        fill: none;
    }
}

/* Header */
header {
    padding: 2rem 1rem; /* py-8 px-4 */
    background-image: url('/images/dark-mode-header.jpg');
    background-size: cover;
    background-position: center;
   /* min-height: 512px; */
}

header .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 */
    align-items: center;
}

@media (min-width: 768px) {
    header .grid {
        grid-template-columns: 1fr 1fr; /* md:grid-cols-2 */
    }
}

.text-center {
    text-align: center !important;
}

@media (min-width: 768px) {
    .md-text-left {
        text-align: left;
    }
}

h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: bold;
    margin-bottom: 0.5rem; /* mb-2 */
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem; /* md:text-5xl */
    }
}

p {
    font-size: 1.125rem; /* text-lg */
    color: #e5e7eb; /* gray-100 */
    margin-top: 0.5rem; /* mt-4 */
}

.breadcrumb {
    font-size: 0.875rem; /* text-sm */
    margin-top: 1rem; /* mt-4 */
    text-align: start;
    background-color: transparent; 
}

.breadcrumb ol {
    display: inline-flex;
    gap: 0.5rem; /* space-x-2 */
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4f46e5; /* indigo-400 */
}

.breadcrumb li {
    color: #ffffff;
}

#HomeHeader {
  min-height: 500px;
  margin: 0;
  top: 50%;
  left: 50%;
}

#LottieFile {
  /* width: 100px; */
  position: relative;
  left: 24px;
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* gap-4 */
    justify-content: center;
}

@media (min-width: 768px) {
    .button-group {
        justify-content: flex-start;
    }
}

.button {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem; /* px-4 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background-color: #374151; /* gray-700 */
    color: #e5e7eb; /* gray-200 */
}

.button-primary:hover {
    background-color: #4b5563; /* gray-600 */
}

.button-secondary {
    background-color: #0f766e; /* teal-700 */
    color: #ffffff;
}

.button-secondary:hover {
    background-color: #115e59; /* teal-800 */
}

.button-contact {
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
}

.button-contact:hover {
    background-color: #4338ca; /* indigo-700 */
}

/* Main Sections */
main {
    padding: 2rem 1rem; /* py-8 px-4 */
}

section {
    padding: 2rem; /* p-6 */
    background-color: #374151; /* gray-700 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-lg */
}

section.bg-dark {
    background-color: #1f2937; /* gray-800 */
}

section.bg-light {
    background-color: #f3f4f6; /* gray-100 */
}

h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    margin-bottom: 1rem; /* mb-4 */
}

h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    margin-bottom: 0.5rem; /* mb-2 */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.card {
    background: #0f172a; /* gray-950 */
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.skills-category {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.card ul {
    list-style: none;
    padding: 0;
    color: #d1d5db; /* text-gray-300 */
}
.card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.card li i { 
    font-size: 1.25rem; 
    color: #10b981; 
    width: 1.25rem; 
    text-align: center;
}

/* Portfolio and Blog Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
    }
}

.skills-card {
    background: rgba(31, 41, 55, 0.7); /* semi-transparent dark */
    backdrop-filter: blur(8px); /* frosted glass */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.portfolio-card, .article-card {
    background-color: #374151; /* gray-700 */
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-lg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover, .article-card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-image, .article-image {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 0.1rem; /* mb-4 */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-card:hover .portfolio-image, .article-card:hover .article-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.lottie-container {
    opacity: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
    height: 0;
    margin-bottom: 0.5rem; /* mb-2 */
}

.portfolio-card:hover .lottie-container {
    opacity: 1;
    height: 64px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* spacing between pills both vertically and horizontally */
    padding-bottom: 4px;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: nowrap;
    color: #fff;
}

/* Default if no match */
.tag-default { background-color: #6b7280; }

/* Colors based on tech name */
.tag-teal { background-color: #0f766e; }
.tag-yellow { background-color: #f59e0b; color: #111; }
.tag-red { background-color: #dc2626; }
.tag-orange { background-color: #ea580c; }
.tag-blue { background-color: #2563eb; }
.tag-purple { background-color: #7c3aed; }
.tag-green { background-color: #15803d; }
.tag-cyan { background-color: #06b6d4; }
.tag-lime { background-color: #65a30d; }

/* Optional cool subtle 3D effect */
.tag-3d {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1),
                inset 0 -1px 2px rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tag-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15),
                inset 0 -1px 2px rgba(255,255,255,0.2);
}


a.read-more, a.view-project {
    /* color: #4f46e5; indigo-600 */
    color: #ff5aa2;
    margin-top: 2px;
    text-decoration: none;
}

a.read-more:hover, a.view-project:hover {
    text-decoration: underline;
}

/* Article Content */
.article-content {
    background-color: #374151; /* gray-700 */
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-lg */
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 1.5rem; /* mb-6 */
}

.prose {
    max-width: none;
    color: #e5e7eb; /* gray-100 */
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #ffffff;
}

.prose p, .prose ul, .prose ol {
    color: #d1d5db; /* gray-300 */
}

/* Contact Form */
.form-section {
    padding: 4rem 1rem; /* py-16 px-4 */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr; /* md:grid-cols-2 */
    }
}

.form-container {
    background-color: #374151; /* gray-800 */
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icons {
    display: flex;
    gap: 1rem; /* space-x-4 */
}

.social-icons a {
    color: #ff5aa2 !important;
    font-size: 1.5rem; 
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff5aa2; 
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__zoomIn {
    animation-name: zoomIn;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* Lottie */
.lottie-player {
    width: 16rem; /* w-64 */
    height: auto;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .lottie-player {
        width: 20rem; /* sm:w-80 */
    }
}

@media (min-width: 768px) {
    .lottie-player {
        width: auto;
        /* width: 25rem; /* md:w-[400px] */
    }
}

.lottie-player.blog {
    width: 18.75rem; /* 300px */
}

/* Footer container flexbox */
footer.site-footer > .container.footer-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0.5rem 1rem;
}

/* Footer text spacing */
footer.site-footer .footer-text {
  margin-bottom: 0.75rem !important;
}

/* Social icons spacing */
footer.site-footer .social-icons {
  display: flex !important;
  gap: 1rem !important;
}

footer.site-footer .social-icons a {
  text-decoration: none !important;
  color: #ff5aa2 !important;
  font-size: 1.5rem !important;
}

/* Desktop (min-width 768px) layout */
@media (min-width: 768px) {
  footer.site-footer > .container.footer-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
  }
  footer.site-footer .footer-text {
    margin-bottom: 0 !important;
  }
}


/* Add animations on Skills */
#skills {
    position: relative;
    overflow: hidden;
}

.lottie-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* behind content */
    pointer-events: none; /* so clicks go through */
}

#skills .container {
    position: relative;
    z-index: 10; /* above animation */
}
