/* ============ Variables & Base ============ */
:root {
    --bg: #070b14;
    --bg-alt: #0b1120;
    --surface: #0f172a;
    --surface-2: #151f36;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e6edf7;
    --text-muted: #8b9bb4;
    --cyan: #22d3ee;
    --indigo: #6d5cff;
    --purple: #a855f7;
    --gradient: linear-gradient(135deg, #22d3ee 0%, #6d5cff 50%, #a855f7 100%);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
}

::selection {
    background: rgba(109, 92, 255, 0.4);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--indigo), var(--purple));
    border-radius: 5px;
}

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

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 8px 25px rgba(109, 92, 255, 0.35);
}

.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
}

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    min-width: 230px;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(109, 92, 255, 0.12);
}

.nav-cta {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gradient);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 92, 255, 0.3);
}

.nav-cta:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
}

.bar {
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-blob-1 {
    width: 450px;
    height: 450px;
    background: rgba(109, 92, 255, 0.35);
    top: -120px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(34, 211, 238, 0.25);
    bottom: -140px;
    left: -120px;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    text-align: left;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
}

.hero-role {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    min-height: 2.4rem;
}

.typing-cursor {
    color: var(--cyan);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(109, 92, 255, 0.4);
}

/* Profile ring */
.hero-profile {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.profile-ring {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(from var(--angle), var(--cyan), var(--indigo), var(--purple), var(--cyan));
    animation: spin-angle 8s linear infinite;
    box-shadow: 0 0 60px rgba(109, 92, 255, 0.35);
}

@keyframes spin-angle {
    to { --angle: 360deg; }
}

.profile-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg);
    display: block;
}

.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.badge-1 { top: 10px; left: -40px; }
.badge-2 { bottom: 40px; left: -70px; animation-delay: 1.5s; }
.badge-3 { top: 40%; right: -50px; animation-delay: 3s; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    color: var(--cyan);
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ============ Sections ============ */
.section {
    padding: 110px 0;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.about {
    background: var(--bg-alt);
}

.education {
    background: var(--bg);
}

.skills {
    background: var(--bg);
}

.projects {
    background: var(--bg-alt);
}

.contact {
    background: var(--bg);
}

/* ============ About ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.about-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-item:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(6px);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 92, 255, 0.4);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============ Education Timeline ============ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(109, 92, 255, 0.3);
    z-index: 1;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(109, 92, 255, 0.4);
    box-shadow: var(--shadow);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.timeline-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.timeline-degree {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--indigo);
    margin-bottom: 0.8rem;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============ Achievements ============ */
.achievements {
    background: var(--bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--shadow);
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-image-link {
    display: block;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.achievement-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.achievement-card:hover .achievement-image {
    transform: scale(1.04);
}

.achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 20px rgba(109, 92, 255, 0.3);
}

.achievement-card:hover .achievement-icon {
    background-position: 100% 100%;
}

.achievement-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    background: rgba(109, 92, 255, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(109, 92, 255, 0.3);
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.achievement-issuer {
    font-family: var(--font-heading);
    color: var(--indigo);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.achievement-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.achievement-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan);
}

/* ============ Skills ============ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109, 92, 255, 0.4);
    box-shadow: var(--shadow);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.skill-card-header h3 {
    font-size: 1.25rem;
}

.skill-card-icon {
    font-size: 1.4rem;
    color: var(--cyan);
}

.skill-bar-group {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.skill-bar-item {
    width: 100%;
}

.skill-bar-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.skill-bar-top span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-bar-top span i {
    font-size: 1.4rem;
    line-height: 1;
}

.skill-percent {
    color: var(--cyan);
    font-family: var(--font-heading);
}

.skill-bar {
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--gradient);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.skill-tags i {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.skill-tags i:hover {
    transform: scale(1.25) translateY(-4px);
}

.skill-tags .skill-tag-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-tags .skill-tag-text i {
    font-size: 1.5rem;
}

.skill-tags .skill-tag-text:hover {
    transform: scale(1.15) translateY(-4px);
    color: var(--text);
}

/* ============ Projects ============ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--shadow);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1.3rem;
    transform: scale(0.6);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(109, 92, 255, 0.4);
}

.project-overlay i.fa-rocket {
    font-size: 2.5rem;
    color: var(--cyan);
}

.project-card:hover .project-cta {
    transform: scale(1);
}

.project-info {
    padding: 1.8rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
}

.project-tags span {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(109, 92, 255, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(109, 92, 255, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.project-link:hover {
    color: var(--purple);
    gap: 0.8rem;
}

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-details li:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateX(6px);
}

.contact-details a {
    color: var(--text);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--cyan);
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(139, 155, 180, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(109, 92, 255, 0.15);
}

.submit-button {
    width: 100%;
    justify-content: center;
}

/* ============ Footer ============ */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer i.fa-heart {
    color: var(--purple);
}

/* ============ Back to top ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(109, 92, 255, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ============ Preloader ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    width: min(320px, 80vw);
}

.preloader-logo {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.preloader-logo .nav-logo {
    font-size: 2rem;
}

.preloader-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    transition: width 0.15s ease;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.preloader-percent {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preloader-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ Reveal animations ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .hero-content {
        max-width: 500px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .profile-ring {
        width: 260px;
        height: 260px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: -30px;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        right: 16px;
        left: 16px;
        min-width: 0;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-actions,
    .hero-socials {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-ring {
        width: 220px;
        height: 220px;
    }

    .badge-1 { left: -10px; }
    .badge-2 { left: -30px; }
    .badge-3 { right: -15px; }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -27px;
        width: 15px;
        height: 15px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-role {
        font-size: 1.2rem;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .badge-1 { left: -5px; top: 0; }
    .badge-2 { left: -15px; }
    .badge-3 { right: -5px; }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
