/* ==========================================
   GLOBAL RESET & BASE STYLES
========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    background-image: var(--gradient-mesh);
    color: var(--text);
    font-family: var(--font-family);
    line-height: var(--line-height);
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   COMMON LAYOUT & SECTION TITLES
========================================== */

.container {
    width: min(92%, var(--container-width));
    margin-inline: auto;
}

section {
    padding: 100px 0;
    position: relative;
}

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

.section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    background: rgba(31, 58, 95, 0.06);
    border: 1px solid rgba(176, 141, 62, 0.28);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(176, 141, 62, 0.14);
}

.section-title h2 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-title p {
    margin-top: 14px;
    color: var(--text-light);
    font-size: var(--fs-base);
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================
   BUTTON SYSTEM (ULTRA SMOOTH SAAS AESTHETIC)
========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: translateX(-100%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px -5px rgba(176, 141, 62, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-sm);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   LOADER
========================================== */

.loader {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loader);
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    animation: spinSlow 0.8s linear infinite;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* ==========================================
   HEADER & FLOATING GLASS NAVBAR
========================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    padding: 16px 0;
    transition: var(--transition);
}

header.sticky {
    padding: 12px 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.nav-links a {
    font-weight: 500;
    font-size: var(--fs-sm);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--text-light);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(176, 141, 62, 0.18);
}

html.dark .nav-links a:hover,
html.dark .nav-links a.active {
    color: var(--primary);
    background: rgba(176, 141, 62, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#themeToggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

#themeToggle:hover {
    background: rgba(176, 141, 62, 0.18);
    transform: scale(1.08);
}

.nav-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.menu-btn {
    display: none;
    cursor: pointer;
    background: transparent;
    padding: 8px;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
}

.hero-blob-1 {
    width: 520px;
    height: 520px;
    background: rgba(176, 141, 62, 0.16);
    top: -120px;
    right: -100px;
}

.hero-blob-2 {
    width: 420px;
    height: 420px;
    background: rgba(31, 58, 95, 0.12);
    bottom: 5%;
    left: -100px;
}

.hero-blob-3 {
    width: 320px;
    height: 320px;
    background: rgba(138, 90, 43, 0.1);
    top: 35%;
    right: 25%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    margin-bottom: 22px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--secondary);
    background: rgba(176, 141, 62, 0.1);
    border: 1px solid rgba(176, 141, 62, 0.28);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 24px rgba(176, 141, 62, 0.18);
}

.hero-badge i {
    font-size: 0.45rem;
    color: var(--success);
}

.small-heading {
    display: block;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 12px 0 16px;
}

.hero h2 {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 600;
    min-height: 42px;
    margin-bottom: 24px;
}

.hero p {
    color: var(--text-light);
    font-size: var(--fs-base);
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 12px;
}

.hero-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    font-size: 1.1rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.hero-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-blue);
}

.image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.image-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(176, 141, 62, 0.45);
    z-index: -1;
}

.image-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(176, 141, 62, 0.22);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--background);
}

/* ==========================================
   ABOUT SECTION
========================================== */

.about {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    border-color: var(--border-hover);
}

.about-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.info-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.info-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-box span {
    display: block;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.info-box h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================
   SKILLS SECTION
========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 18px;
    display: inline-flex;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(31, 58, 95, 0.07);
    border: 1px solid rgba(176, 141, 62, 0.18);
    transition: var(--transition-fast);
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--white);
    background: var(--gradient-primary);
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================
   STATISTICS
========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 36px 20px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.stat-card h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================
   EXPERIENCE SECTION (TIMELINE)
========================================== */

.experience {
    background: var(--background-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left {
    padding-right: 40px;
}

.timeline-item.right {
    margin-left: 50%;
    padding-left: 40px;
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: rgba(176, 141, 62, 0.14);
    color: var(--secondary);
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid rgba(176, 141, 62, 0.25);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-content h4 {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.timeline-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.88rem;
}

.timeline-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
}

/* ==========================================
   FEATURED PROJECTS
========================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.coming-soon {
    max-width: 620px;
    margin: 0 auto;
    padding: 56px 32px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.coming-soon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(176, 141, 62, 0.12);
    color: var(--primary);
    font-size: 1.7rem;
}

.coming-soon h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.coming-soon p {
    color: var(--text-light);
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(176, 141, 62, 0.06);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(176, 141, 62, 0.1);
    color: var(--secondary);
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid rgba(176, 141, 62, 0.22);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.project-btn:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

html.dark .project-btn:hover {
    color: var(--white);
}

/* ==========================================
   QA PORTFOLIO
========================================== */

.qa-portfolio {
    background: var(--background-light);
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.qa-card {
    text-align: center;
    padding: 32px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.qa-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.qa-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-flex;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(176, 141, 62, 0.1);
    border: 1px solid rgba(176, 141, 62, 0.18);
    transition: var(--transition-fast);
}

.qa-card:hover i {
    transform: scale(1.1);
    color: var(--white);
    background: var(--gradient-primary);
}

.qa-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.qa-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ==========================================
   CERTIFICATIONS
========================================== */

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.certificate-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.certificate-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-flex;
    padding: 14px;
    border-radius: 50%;
    background: rgba(176, 141, 62, 0.1);
    transition: var(--transition-fast);
}

.certificate-card:hover i {
    transform: scale(1.1);
    color: var(--white);
    background: var(--gradient-primary);
}

.certificate-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.certificate-card p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ==========================================
   RESUME CTA BANNER
========================================== */

.resume-section {
    background: var(--background-light);
}

.resume-box {
    max-width: 800px;
    margin: auto;
    padding: 56px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(16px);
}

.resume-box h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.resume-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ==========================================
   CONTACT SECTION
========================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(4px);
    border-color: var(--border-hover);
}

.contact-item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(176, 141, 62, 0.3);
}

/* ==========================================
   FOOTER
========================================== */

footer {
    margin-top: 60px;
    padding: 50px 0 30px;
    background: var(--background-light);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px) scale(1.08);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ==========================================
   MODAL & TOAST NOTIFICATIONS
========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: var(--z-modal);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-solid);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 32px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 6px;
    padding-right: 36px;
}

.modal-subtitle {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.modal-body {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.modal-body h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin: 18px 0 8px;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.modal-tags .tag {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(176, 141, 62, 0.14);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    border: 1px solid rgba(176, 141, 62, 0.25);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-solid);
    color: var(--text);
    border: 1px solid var(--border-hover);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
