/* Venus Theme - Blazor Portfolio */
:root {
    /* Primary Colors */
    --primary: #2f73f2;
    --primary-hover: #1e5fd9;
    --secondary: #547593;
    --success: #3cd278;

    /* Text Colors */
    --midnight-text: #102d47;
    --grey: #668199;
    --white: #ffffff;

    /* Background Colors */
    --section-bg: #f8fafc;
    --border-color: #ccd7e1;

    /* Light mode defaults */
    --bg-color: #ffffff;
    --text-color: var(--midnight-text);
    --text-muted: var(--grey);
    --card-bg: #ffffff;
    --header-bg: transparent;
}

/* Dark Mode */
/* Dark Mode */
.dark {
    --bg-color: #000f30;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: #081738;
    --header-bg: #081738;
    --section-bg: #081738;
    --border-color: #224767;

    /* Apply background to the wrapper itself to ensure contrast */
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.dark .form-input,
.dark .form-textarea {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dark .form-input:focus,
.dark .form-textarea:focus {
    border-color: var(--primary);
    background-color: rgba(47, 115, 242, 0.1);
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: var(--header-bg);
}

.header.sticky {
    background-color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .header.sticky {
    background-color: var(--card-bg);
    box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(47, 115, 242, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-badge-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--success);
}

.section-badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: lowercase;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey);
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0px 3px 20px 0px rgba(142, 156, 169, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    text-align: center;
    padding: 3.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.service-title {
    font-size: 1.5rem;
    max-width: 12rem;
}

.service-description {
    color: var(--text-muted);
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.service-link:hover {
    color: var(--primary-hover);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.portfolio-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Counter Section */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.counter-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.counter-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.counter-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.counter-description {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Skills / Progress Section */
.skills-list {
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
}

.skill-percent {
    font-weight: 600;
    color: var(--primary);
}

.skill-bar {
    height: 0.5rem;
    background-color: var(--border-color);
    border-radius: 0.25rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 0.25rem;
    transition: width 1s ease;
}

/* Contact Form */
.contact-form {
    max-width: 40rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 115, 242, 0.1);
}

.form-textarea {
    min-height: 10rem;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #081738;
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid #224767;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin: 2rem 0;
    color: white;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-contact-item {
    margin-bottom: 1.5rem;
}

.footer-contact-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.footer-contact-value {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

.footer-contact-value:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #224767;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 20rem;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 1.5rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--text-color);
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    text-align: center;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}