/* Enhanced Contact Section */
.enhanced-contact { padding: var(--section-y) 0; }
.contact-header { text-align:center; margin-bottom:3.5rem; }
.contact-title { font-size:clamp(2.4rem,6vw,3.2rem); font-weight:800; letter-spacing:.5px; }
.contact-title .grad-accent { background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6); -webkit-background-clip:text; background-clip:text; color:transparent; }
.contact-tagline { max-width:960px; margin:0.75rem auto 0; font-size:1.15rem; color:var(--text-light); }
.contact-grid { display:grid; gap:3rem; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); align-items:start; }
.contact-left { display:flex; flex-direction:column; gap:2.5rem; }
.contact-block-title { font-size:1.7rem; font-weight:700; background:linear-gradient(90deg,#06b6d4,#0ea5e9); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:1.5rem; }
.contact-block-title.alt { background:linear-gradient(90deg,#8b5cf6,#6366f1); -webkit-background-clip:text; background-clip:text; }
.contact-items { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:2.2rem; }
.contact-item { display:flex; align-items:flex-start; gap:1.3rem; }
.contact-icon { width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.65rem; color:#fff; box-shadow:0 4px 18px -4px rgba(0,0,0,.35); flex-shrink:0; }
.grad-circle { background:linear-gradient(135deg,#06b6d4 10%,#3b82f6 55%,#8b5cf6 100%); }
.contact-item-text .label { display:block; font-size:.95rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--text-light); margin-bottom:.25rem; }
.contact-item-text .value { font-size:1.05rem; font-weight:500; color:var(--text-dark); }
[data-theme="dark"] .contact-item-text .value { color:#f1f5f9; }
.contact-item-text a.value { text-decoration:none; position:relative; }
.contact-item-text a.value:after { content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6); transition:width .35s; }
.contact-item-text a.value:hover:after { width:100%; }
.social-round { display:flex; gap:1.4rem; }
.social-btn { width:74px; height:74px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:2rem; color:#fff; position:relative; overflow:hidden; box-shadow:0 4px 14px -4px rgba(0,0,0,.4); transition:.35s; }
.social-btn.telegram { background:linear-gradient(135deg,#0ea5e9,#6366f1); }
.social-btn.github { background:linear-gradient(135deg,#374151,#111827); }
.social-btn:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.35),transparent 70%); opacity:.4; transition:.4s; }
.social-btn:hover { transform:translateY(-6px) scale(1.07); box-shadow:0 10px 28px -6px rgba(0,0,0,.55); }
.social-btn:hover:before { opacity:.65; }
.contact-panel {
    background:linear-gradient(145deg,#0a1120 90%,#1e293b 100%);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.07);
    padding:2.4rem 2.3rem 2.6rem;
    border-radius:20px;
    box-shadow:0 10px 40px -10px rgba(0,0,0,.55);
    position:relative;
    overflow:hidden;
}
.contact-panel:before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 10%,rgba(99,102,241,.18),transparent 60%); pointer-events:none; }
.panel-title { font-size:1.9rem; font-weight:700; margin:0 0 1.8rem; background:linear-gradient(90deg,#8b5cf6,#6366f1); -webkit-background-clip:text; background-clip:text; color:transparent; }
.contact-form { display:flex; flex-direction:column; gap:1.4rem; }
.field { display:flex; flex-direction:column; gap:.55rem; }
.field-label { font-size:.85rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--text-light); }
.form-row input, .form-row textarea {
    width: 100%;
    background: #070c18 !important;
    border: 1.5px solid #222a3a !important;
    color: #f1f5f9 !important;
    padding: .95rem 1rem;
    border-radius: 12px;
    font: inherit;
    resize: vertical;
    min-height: 56px;
    box-shadow: none !important;
    transition: border .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height:150px; }
.dark-theme .form-row input:focus,
.dark-theme .form-row textarea:focus {
  outline: none !important;
  border-color: #3b82f6 !important; /* A subtle blue to indicate focus */
  box-shadow: none !important;
  background-color: #020617 !important; /* The darkest background color */
  color: #1e293b !important; /* Dark text color for visibility */
}

/* Fix for browser autofill styles overriding dark theme */
.dark-theme input:-webkit-autofill,
.dark-theme input:-webkit-autofill:hover,
.dark-theme input:-webkit-autofill:focus,
.dark-theme input:-webkit-autofill:active,
.dark-theme textarea:-webkit-autofill,
.dark-theme textarea:-webkit-autofill:hover,
.dark-theme textarea:-webkit-autofill:focus,
.dark-theme textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #020617 inset !important; /* Use box-shadow to force background color */
  -webkit-text-fill-color: #f1f5f9 !important; /* Force the text color to be light */
  caret-color: #f1f5f9 !important; /* Ensure the typing cursor is visible */
  transition: background-color 5000s ease-in-out 0s; /* Prevent transition flash */
}

.modern-btn { display:inline-flex; align-items:center; gap:.7rem; background:linear-gradient(90deg,#6366f1,#8b5cf6); color:#fff; font-weight:600; font-size:1rem; border:none; padding:.95rem 1.6rem; border-radius:14px; cursor:pointer; position:relative; overflow:hidden; transition:background .35s, transform .35s, box-shadow .35s; }
.modern-btn:before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6); opacity:0; transition:.5s; }
.modern-btn:hover:before { opacity:1; }
.modern-btn:hover { transform:translateY(-4px); box-shadow:0 12px 32px -8px rgba(0,0,0,.55); }
.modern-btn i { font-size:1.1rem; }
@media (max-width: 880px) { .contact-panel { order:2; } .contact-left { order:1; } }
/* Simple Contact List */
.contact-simple-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.13rem;
}

/* Clean Contact Layout */
.contact-clean { padding: 4rem 0; }
.contact-heading { font-size: clamp(2.1rem,5vw,2.8rem); font-weight: 700; margin: 0 0 2.5rem; position: relative; }
.contact-heading:after { content:""; position:absolute; left:0; bottom:-10px; width:70px; height:4px; background:linear-gradient(90deg,#dc2626,#7f1d1d); border-radius:2px; }
.contact-layout { display:grid; gap:3rem; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); align-items:start; }
.contact-info-col { display:flex; flex-direction:column; gap:2.2rem; }
.contact-info-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:1.4rem; }
.contact-info-item { display:flex; align-items:flex-start; gap:1rem; background:linear-gradient(120deg,var(--card-bg) 80%,var(--background-light)); padding:1rem 1.2rem; border-radius:14px; box-shadow:0 4px 14px -6px rgba(220,38,38,0.12); transition:.3s; }
.contact-info-item:hover { box-shadow:0 8px 26px -8px rgba(220,38,38,0.25); transform:translateY(-3px); }
.contact-icon-circle { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#dc2626,#7f1d1d); color:#fff; font-size:1.2rem; flex-shrink:0; box-shadow:0 4px 12px -4px rgba(0,0,0,.35); }
.contact-icon-circle .ci { width:26px; height:26px; }
.contact-info-text { font-size:.98rem; font-weight:500; color:var(--text-dark); line-height:1.4; }
.contact-info-text a { color:var(--primary-dark); text-decoration:underline dotted; transition:.25s; }
.contact-info-text a:hover { color:var(--primary-color); }
.social-label { font-weight:600; margin:0 0 .6rem; color:var(--primary-color); letter-spacing:.5px; }
.contact-social { display:flex; gap:1rem; }
.social-icon { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#dc2626,#7f1d1d); color:#fff; font-size:1.25rem; box-shadow:0 4px 14px -6px rgba(0,0,0,.35); transition:.35s; }
.social-icon.github { background:linear-gradient(135deg,#374151,#111827); }
.social-icon.telegram { background:linear-gradient(135deg,#0ea5e9,#0369a1); }
.social-icon:hover { transform:translateY(-4px) scale(1.05); box-shadow:0 10px 28px -8px rgba(0,0,0,.45); }
.social-icon .ci { width:24px; height:24px; }
.contact-form-col { background:linear-gradient(120deg,var(--card-bg) 75%,var(--background-light)); padding:2rem 1.8rem 2.2rem; border-radius:18px; box-shadow:0 8px 32px -10px rgba(220,38,38,0.15); display:flex; flex-direction:column; gap:1.4rem; }
.form-title { margin:0 0 .5rem; font-size:1.55rem; font-weight:600; letter-spacing:.5px; color:var(--primary-dark); }
.contact-send-form { display:flex; flex-direction:column; gap:1.1rem; }
.form-row { display:flex; flex-direction:column; gap:.45rem; }
.form-row label { font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; font-weight:600; color:var(--primary-color); }
.form-row input, .form-row textarea { background:var(--background-light); border:1px solid rgba(0,0,0,.1); padding:.85rem 1rem; border-radius:10px; font:inherit; resize:vertical; min-height:54px; transition:border .3s, box-shadow .3s, background .3s; }
.form-row textarea { min-height:140px; }
.form-row input:focus, .form-row textarea:focus { outline:none; border-color:var(--primary-color); box-shadow:0 0 0 3px rgba(220,38,38,.25); background:#fff; }
.send-btn { display:inline-flex; align-items:center; gap:.6rem; background:linear-gradient(90deg,#dc2626,#7f1d1d); color:#fff; font-weight:600; font-size:.95rem; border:none; padding:.85rem 1.4rem; border-radius:12px; cursor:pointer; transition:.35s; box-shadow:0 6px 20px -6px rgba(220,38,38,0.4); }
.send-btn:hover { transform:translateY(-3px); box-shadow:0 12px 34px -8px rgba(220,38,38,0.55); }
.send-btn i { font-size:1rem; }
.form-status { margin: .3rem 0 0; font-size:.85rem; font-weight:500; color:var(--primary-dark); min-height:1.1rem; }
@media (max-width:700px){ .contact-layout { gap:2.2rem; } .contact-form-col { padding:1.6rem 1.4rem 1.8rem; } }
.contact-simple-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-dark);
    font-weight: 500;
}
.contact-simple-list i {
    font-size: 1.3em;
    color: var(--primary-color);
}
.contact-simple-list a {
    color: var(--primary-dark);
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.contact-simple-list a:hover {
    color: var(--primary-color);
}
/* Advanced Contact Cards */
.contact-advanced-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.contact-advanced-card {
    background: linear-gradient(120deg, var(--card-bg) 80%, var(--background-light) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 18px -6px rgba(220,38,38,0.10), 0 1px 4px -1px rgba(0,0,0,0.07);
    padding: 1.3rem 2rem 1.1rem 1.5rem;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border-left: 5px solid var(--primary-color);
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
}
.contact-advanced-card:hover {
    box-shadow: 0 10px 32px -6px rgba(220,38,38,0.18), 0 2px 8px -2px rgba(0,0,0,0.10);
    border-left-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.03);
    z-index: 2;
}
.contact-advanced-icon {
    font-size: 2.1rem;
    color: var(--primary-dark);
    background: var(--background-light);
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 2px 8px 0 rgba(220,38,38,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-advanced-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.contact-advanced-label {
    font-size: 1.01rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}
.contact-advanced-value {
    color: var(--text-dark);
    font-size: 1.08rem;
    font-weight: 500;
    word-break: break-all;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-advanced-value:hover {
    color: var(--primary-color);
    text-decoration: underline wavy;
}
/* Contact Info Block */
.contact-info-block {
    margin-bottom: 2.2rem;
    background: linear-gradient(120deg, var(--card-bg) 80%, var(--background-light) 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px -4px rgba(220,38,38,0.10), 0 1px 4px -1px rgba(0,0,0,0.07);
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: flex-start;
}
.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
}
.contact-info-label {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.contact-info-value {
    color: var(--text-dark);
    font-weight: 500;
}
.contact-info-block a.contact-info-value {
    color: var(--primary-dark);
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.contact-info-block a.contact-info-value:hover {
    color: var(--primary-color);
}
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.social-link i {
    font-size: 1.3em;
}
.social-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px) scale(1.07);
}
/* Experience Timeline Styles */
.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.exp-card {
    background: linear-gradient(120deg, var(--card-bg) 80%, var(--background-light) 100%);
    border-radius: 18px;
    box-shadow: 0 6px 32px -8px rgba(220,38,38,0.10), 0 2px 8px -2px rgba(0,0,0,0.07);
    padding: 2.2rem 2rem 2rem 2rem;
    border-left: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.exp-card:hover {
    box-shadow: 0 16px 40px -8px rgba(220,38,38,0.18), 0 4px 12px -2px rgba(0,0,0,0.10);
    transform: translateY(-6px) scale(1.015);
    border-left-color: var(--primary-dark);
}
.exp-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.exp-title-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.exp-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}
.exp-icon { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#dc2626,#7f1d1d); color:#fff; box-shadow:0 4px 12px -4px rgba(0,0,0,.25); }
.exp-icon .ci-exp { width:26px; height:26px; }
.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.98rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}
.exp-meta svg.ci-exp { width:18px; height:18px; margin-right:0.35em; color:var(--primary-color); vertical-align:middle; }
.exp-body {
    margin-top: 0.5rem;
}
.exp-desc {
    color: var(--text-dark);
    font-size: 1.08rem;
    margin-bottom: 1.1rem;
}
.exp-achievements {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.exp-achievements li {
    position: relative;
    padding-left: 1.7em;
    color: var(--text-light);
    font-size: 1.01rem;
}
.exp-achievements li:before { content:""; position:absolute; left:0; top:0.55em; width:10px; height:10px; background:linear-gradient(135deg,#dc2626,#7f1d1d); border-radius:3px; box-shadow:0 0 0 2px rgba(220,38,38,0.25); }
/* Project Card Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animation delay utility classes (moved from inline styles) */
.delay-100 { animation-delay: .1s; }
.delay-150 { animation-delay: .15s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.project-card {
    transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
}
.project-card:hover {
    box-shadow: 0 12px 32px -4px rgba(220,38,38,0.18), 0 4px 8px -2px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.025);
    z-index: 2;
}
.project-card:active {
    transform: scale(0.98);
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Forced dark theme variables */
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --secondary-color: #94a3b8;
    --background-light: #0f172a;
    --background-dark: #020617;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --white: #ffffff;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3), 0 2px 4px -1px rgba(220, 38, 38, 0.2);
    --transition: all 0.3s ease;
    /* Layout scale */
    --section-y: clamp(4rem, 8vw, 7rem);
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --secondary-color: #94a3b8;
    --background-light: #0f172a;
    --background-dark: #020617;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --white: #ffffff;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --shadow: var(--shadow-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-dark);
    transition: var(--transition);
}

/* Layout container & vertical rhythm */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

section { scroll-margin-top: 100px; }

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--card-bg);
    transform: rotate(15deg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--card-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 4rem);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    position: relative;
    z-index: 1;
}

.hero-image {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.animated-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.animated-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.animated-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

/* About Section */
.about {
    padding: var(--section-y) 0;
    background-color: var(--card-bg);
    transition: var(--transition);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Advanced Section Header (Skills) */
.section-head.tech-skills { 
    max-width: 900px; 
    margin: 0 auto clamp(3rem,6vw,4rem); 
    text-align: center; 
    position: relative; 
    padding: clamp(1.5rem,3vw,2.5rem) clamp(1.25rem,2.5vw,2rem); 
    border-radius: var(--radius-lg); 
    background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)); 
    -webkit-backdrop-filter: blur(6px); 
    backdrop-filter: blur(6px); 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08), 0 4px 12px -3px rgba(0,0,0,0.05); 
    overflow: hidden;
}
.section-head.tech-skills::before, .section-head.tech-skills::after { 
    content:''; position:absolute; inset:0; pointer-events:none; 
}
.section-head.tech-skills::before { 
    background: radial-gradient(circle at 20% 15%, rgba(220,38,38,0.12), transparent 60%),
                radial-gradient(circle at 80% 85%, rgba(220,38,38,0.10), transparent 55%);
    mix-blend-mode: multiply;
}
.section-head.tech-skills::after { 
    background: linear-gradient(120deg, rgba(220,38,38,0.15) 0%, rgba(255,255,255,0) 60%);
    opacity: .4;
}
/* Synced decorative vertical rail */
/* Stacked icons variant */
/* Line icons variant */
/* === Integrated Skills Header Panel === */
.section-head.tech-skills.line-icons {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.82);
    border-radius: 1.25rem;
    box-shadow: 0 6px 32px -8px rgba(220,38,38,0.10), 0 2px 8px -2px rgba(0,0,0,0.06);
    border: 1.5px solid rgba(220,38,38,0.10);
    padding: 2.2rem 2.2rem 2.5rem;
    margin: 0 auto 2.5rem;
    max-width: 780px;
    position: relative;
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    overflow: hidden;
}
.section-head.tech-skills.line-icons::before {
    content: "";
    position: absolute;
    inset: -30% 0 0 0;
    background: radial-gradient(circle at 30% 25%, #fee2e2 0%, transparent 60%),
                            radial-gradient(circle at 80% 80%, #fca5a5 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.7;
}
.section-head.tech-skills.line-icons::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #fca5a5 70%, transparent 100%);
    border-radius: 3px;
    box-shadow: 0 2px 6px -2px rgba(220,38,38,0.18);
}
.section-head.tech-skills.line-icons .line-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    position: relative;
    padding: .3rem 0;
}
.section-head.tech-skills.line-icons .line-item:hover {
    background: rgba(220,38,38,0.07);
    border-radius: 0.75rem;
}
.section-head.tech-skills.line-icons .line-text {
    font-weight: 700;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    color: #b91c1c;
    background: none;
    text-shadow: 0 2px 8px #fca5a5;
}
.section-head.tech-skills.line-icons .line-text.eyebrow {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: #b91c1c;
    opacity: 1;
    text-shadow: 0 2px 8px #fca5a5;
}
.section-head.tech-skills.line-icons .line-text.main {
    font-size: clamp(2.6rem,5vw,3.6rem);
    font-weight: 900;
    color: #dc2626;
    text-shadow: 0 3px 14px #fecaca;
}
.section-head.tech-skills.line-icons .line-text.sub {
    font-size: clamp(1.8rem,3vw,2.5rem);
    font-weight: 800;
    color: #b91c1c;
    letter-spacing: .5px;
    text-shadow: 0 2px 10px #fecaca;
}
.section-head.tech-skills.line-icons .line-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #fee2e2 60%, #fff 100%);
    border: 1.5px solid #fecaca;
    box-shadow: 0 4px 16px -2px #fecaca, 0 2px 4px -1px #fca5a5;
    transition: background .35s, transform .35s, box-shadow .35s;
    position: relative;
}
.section-head.tech-skills.line-icons .line-item:hover .line-icon {
    background: linear-gradient(145deg, #fca5a5 0%, #dc2626 100%);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 22px -6px #fecaca, 0 4px 10px -2px #fca5a5;
}
.section-head.tech-skills.line-icons .svg-icon {
    width: 32px;
    height: 32px;
    color: #b91c1c;
    stroke: #b91c1c;
    filter: drop-shadow(0 3px 6px #fecaca);
    transition: color .35s, stroke .35s;
}
.section-head.tech-skills.line-icons .line-item:hover .svg-icon {
    color: #fff;
    stroke: #fff;
}
@media (max-width:640px){
    .section-head.tech-skills.line-icons {
        gap: .7rem;
        padding: 1.3rem 0.7rem 1.5rem;
    }
    .section-head.tech-skills.line-icons .line-text.main { font-size: 2.1rem; }
    .section-head.tech-skills.line-icons .line-text.sub { font-size: 1.3rem; }
    .section-head.tech-skills.line-icons .line-icon { width: 40px; height: 40px; }
    .section-head.tech-skills.line-icons .svg-icon { width: 20px; height: 20px; }
    .section-head.tech-skills.line-icons::after { width: 100px; }
}
[data-theme="dark"] .section-head.tech-skills.line-icons {
    background: rgba(30,41,59,0.82);
    border: 1.5px solid #7f1d1d;
    box-shadow: 0 10px 30px -10px #7f1d1d, 0 4px 12px -3px #0f172a;
}
[data-theme="dark"] .section-head.tech-skills.line-icons .line-text,
[data-theme="dark"] .section-head.tech-skills.line-icons .line-text.eyebrow,
[data-theme="dark"] .section-head.tech-skills.line-icons .line-text.main,
[data-theme="dark"] .section-head.tech-skills.line-icons .line-text.sub {
    color: #fca5a5;
    text-shadow: 0 2px 10px #7f1d1d;
}
[data-theme="dark"] .section-head.tech-skills.line-icons .line-icon {
    background: linear-gradient(145deg, #7f1d1d 60%, #1e293b 100%);
    border: 1.5px solid #b91c1c;
    box-shadow: 0 4px 16px -2px #7f1d1d, 0 2px 4px -1px #0f172a;
}
[data-theme="dark"] .section-head.tech-skills.line-icons .svg-icon {
    color: #fca5a5;
    stroke: #fca5a5;
    filter: drop-shadow(0 3px 6px #7f1d1d);
}
@media (max-width:640px){
    .section-head.tech-skills.line-icons { gap:.55rem; }
    .section-head.tech-skills.line-icons .line-text.main { font-size:2.35rem; }
    .section-head.tech-skills.line-icons .line-text.sub { font-size:1.75rem; }
    .section-head.tech-skills.line-icons .line-icon { width:46px; height:46px; }
    .section-head.tech-skills.line-icons .svg-icon { width:24px; height:24px; }
    .section-head.tech-skills.line-icons::after { width:140px; }
}

@keyframes floatY { 0%,100%{ transform:translateY(-6px); } 50%{ transform:translateY(6px); } }
.section-head .eyebrow { 
    display:inline-block; 
    text-transform:uppercase; 
    letter-spacing: .12em; 
    font-size: .75rem; 
    font-weight:600; 
    color: var(--primary-dark); 
    background: rgba(220,38,38,0.08); 
    padding:.4rem .8rem; 
    border-radius: 999px; 
    margin-bottom: 1rem; 
    position:relative; 
}
.gradient-title { 
    font-size: clamp(2rem,4.5vw,3.25rem); 
    line-height:1.1; 
    font-weight: 800; 
    background: linear-gradient(90deg,#111 0%, var(--primary-color) 45%, #751414 90%); 
    -webkit-background-clip:text; 
    background-clip:text; 
    color: transparent; 
    margin: 0 0 1rem; 
    position: relative;
}
.gradient-title .highlight { 
    background: linear-gradient(90deg,var(--primary-color), #ff9a9a); 
    -webkit-background-clip:text; 
    background-clip:text; 
    color: transparent; 
    font-weight: inherit; 
}
.section-head .section-desc { 
    font-size: clamp(.95rem,1.25vw,1.125rem); 
    color: var(--text-light); 
    max-width: 52ch; 
    margin: 0 auto; 
    position: relative; 
}
@media (prefers-color-scheme: dark) {
    .section-head.tech-skills { 
        background: linear-gradient(145deg, rgba(30,41,59,0.85), rgba(30,41,59,0.55)); 
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 4px 12px -3px rgba(0,0,0,0.4);
    }
    .gradient-title { background: linear-gradient(90deg,#fafafa 0%, var(--primary-color) 55%, #ffb3b3 95%); -webkit-background-clip:text; background-clip:text; }
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
}

/* Vertical skill categories */
.skills-groups { position: relative; }
.skill-category { position: relative; padding: 1.25rem 1.25rem 1.5rem; background: var(--card-bg); border:1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.skill-category + .skill-category { margin-top: 0.5rem; }
.skill-category h3 { display:flex; align-items:center; gap:.5rem; margin-bottom:1rem; }
.skill-category h3 span.w-2 { flex-shrink:0; }
.skill-category ul { display:flex; flex-wrap:wrap; gap:1.25rem; }
.skill-category li { background: rgba(0,0,0,0.02); padding:.75rem .65rem .5rem; border-radius:12px; min-width:90px; transition:background .25s, transform .25s; }
[data-theme="dark"] .skill-category li { background: rgba(255,255,255,0.05); }
.skill-category li:hover { background: var(--primary-color); color:#fff; transform:translateY(-4px); }
.skill-category li:hover i { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.skill-category li span { font-size:.7rem; font-weight:500; letter-spacing:.5px; text-transform:uppercase; }

@media (min-width: 900px) {
    .skills-groups { gap: 2rem; }
    .skill-category { display:flex; align-items:center; }
    .skill-category h3 { width: 260px; margin:0; flex-direction:column; align-items:flex-start; gap:.6rem; }
    .skill-category ul { flex:1; }
    .skill-category + .skill-category { margin-top: 1rem; }
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: var(--section-y) 0;
    background-color: var(--background-light);
    transition: var(--transition);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1.5px solid var(--card-border);
    min-height: 340px;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 45%;
    min-width: 320px;
    max-width: 48%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 2.25rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: var(--section-y) 0;
    background-color: var(--card-bg);
    transition: var(--transition);
}

/* Experience Section alignment (ID based) */
#experience { padding: var(--section-y) 0; }
#experience .container, #experience .mx-auto { max-width: 1200px; }

/* Adjust legacy centered section titles to align left within container if using custom classes */
.about h2, .projects h2, .contact h2 {
    text-align: left;
    margin-left: 0;
}

/* Skill categories layout tweaks */
.skills .grid { align-items: flex-start; }
.skills ul { list-style: none; padding: 0; }
.skills li i { transition: transform .25s ease; }
.skills li:hover i { transform: translateY(-4px) scale(1.05); }

/* Timeline list spacing consistency */
#experience ol { margin-left: 0; }
#experience li { padding-left: 1rem; }

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--background-light);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--text-dark);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    transition: var(--transition);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

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

    .skill-item img {
        width: 48px;
        height: 48px;
    }
}

/* Media Queries */

/* Large Laptops and Desktops (1200px and up) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-content {
        gap: 6rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptops (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-content {
        gap: 4rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Mobile Phones (576px to 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}

/* Small Mobile Phones (575px and below) */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        max-width: 250px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .submit-button {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: unset;
        padding: 4rem 1rem;
    }

    .hero-content {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .hamburger {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cta-button,
    .social-links,
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero,
    .about,
    .projects,
    .contact {
        padding: 2rem 0;
    }

    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media screen and (max-width: 767px) {
    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}