:root {
    /* Core Colors */
    --primary: 210 90% 40%; /* Cobalt Blue (#1A73E8) */
    --secondary: 190 50% 50%; /* Calm Teal (#4DA6B9) */
    --accent: 340 80% 50%; /* Subtle Magenta (#E61A66) */
    /* UI Elements */
    --background: 210 40% 98%; /* Very Light Gray (#F4F7FB) */
    --foreground: 215 20% 15%; /* Dark Slate Text (#2B3A4A) */
    --card: 0 0% 100%; /* Pure White Cards */
    --border: 210 20% 90%; /* Soft Border */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(var(--background), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--primary-foreground));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

    .nav-link:hover {
        color: hsl(var(--primary));
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 20px hsla(var(--primary), 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px hsla(var(--secondary), 0.5);
    }

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

    .btn-outline:hover {
        background: hsl(var(--muted));
        border-color: hsl(var(--primary));
    }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient-1 {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--primary), 0.2), transparent 70%);
    filter: blur(60px);
}

.hero-gradient-2 {
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--secondary), 0.15), transparent 70%);
    filter: blur(60px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(hsla(var(--border), 0.3) 1px, transparent 1px), linear-gradient(90deg, hsla(var(--border), 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: hsla(var(--primary), 0.1);
    border: 1px solid hsla(var(--primary), 0.2);
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Services Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-label {
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, hsla(var(--primary), 0.05), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .service-card:hover {
        border-color: hsla(var(--primary), 0.5);
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -20px hsla(var(--primary), 0.2);
    }

        .service-card:hover::before {
            opacity: 1;
        }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, hsla(var(--primary), 0.2), hsla(var(--secondary), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: hsl(var(--secondary));
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsla(var(--secondary), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--secondary));
    flex-shrink: 0;
}

.code-preview {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .code-dot.red {
        background: #ff5f56;
    }

    .code-dot.yellow {
        background: #ffbd2e;
    }

    .code-dot.green {
        background: #27c93f;
    }

.code-content {
    color: hsl(var(--muted-foreground));
}

.code-keyword {
    color: hsl(var(--primary));
}

.code-function {
    color: hsl(var(--secondary));
}

.code-string {
    color: hsl(var(--secondary));
}

.code-comment {
    color: hsl(var(--muted-foreground));
    opacity: 0.6;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

    .portfolio-card:hover {
        border-color: hsla(var(--primary), 0.5);
        transform: translateY(-4px);
    }

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, hsl(var(--muted)), hsl(var(--card)));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: hsla(var(--secondary), 0.15);
    color: hsl(var(--secondary));
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, hsla(var(--primary), 0.15), hsla(var(--secondary), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--secondary));
    flex-shrink: 0;
}

.contact-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: hsl(var(--muted-foreground));
}

    .contact-value a:hover {
        color: hsl(var(--primary));
    }

.contact-form {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: hsl(var(--primary));
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: hsl(var(--muted-foreground));
        font-size: 0.875rem;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: hsl(var(--primary));
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
}

    .social-link:hover {
        background: hsl(var(--primary));
        color: hsl(var(--primary-foreground));
    }

/* Mobile Nav */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
    z-index: 49;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid hsl(var(--border));
    }

        .mobile-nav .nav-link:last-of-type {
            border-bottom: none;
        }

    .mobile-nav .btn {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }
    .mobile-menu {
        display: block;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.d-none {
    display: none !important;
}
/* =====================================================
   ASP.NET Core Validation Styling
   ===================================================== */

/* Validation message text */
.field-validation-error,
.text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* Hide valid placeholder */
.field-validation-valid {
    display: none;
}

/* Invalid input */
.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
    padding-right: 36px;
}

/* Valid input */
.input-validation-valid {
    border-color: #28a745;
}

/* Focus states */
.form-input,
.form-textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-validation-error:focus {
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}

.input-validation-valid:focus {
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}

/* Error icon inside invalid inputs */
.input-validation-error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM7.002 4a.905.905 0 1 0 1.996 0 .905.905 0 0 0-1.996 0zM7.1 6.995a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-3.2a.9.9 0 0 0-.9-.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* =====================================================
   Toast Notifications Styling
   ===================================================== */

.toast-container {
    z-index: 1055;
}

/* Base toast */
.toast {
    min-width: 280px;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.98;
    font-size: 0.9rem;
    animation: toast-slide-in 0.35s ease-out;
}

/* Toast body */
.toast-body {
    padding: 14px 16px;
    line-height: 1.4;
}

/* Success toast */
.toast.bg-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Error toast */
.toast.bg-danger {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

/* Close button */
.toast .btn-close {
    opacity: 0.85;
}

    .toast .btn-close:hover {
        opacity: 1;
    }

/* Slide-in animation */
@keyframes toast-slide-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 0.98;
    }
}
