/* ============================================
   ISAK TEKLEHAIMANOT PORTFOLIO
   Pure HTML/CSS/JS - No Frameworks
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gold: #c9a962;
    --gold-rgb: 201, 169, 98;
    --border: #2a2a2a;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.gold {
    color: var(--gold);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    transition: all var(--transition-normal) var(--ease-expo);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition-fast) var(--ease-expo);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.5);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.5), var(--bg-primary));
    z-index: 1;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(var(--gold-rgb), 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    transform: rotate(45deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    transform: rotate(12deg);
    animation-delay: 4s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    right: 25%;
    transform: rotate(45deg);
    animation-delay: 1s;
    border-color: rgba(255, 255, 255, 0.05);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(var(--r, 0deg));
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-greeting {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.hero-role-secondary {
    font-size: 1.25rem;
    color: rgba(160, 160, 160, 0.8);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition-fast) var(--ease-expo);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.5);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: rgba(var(--gold-rgb), 0.2);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(var(--gold-rgb), 0.3);
    animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.image-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
}

.ring-1 {
    inset: -15px;
    border-color: rgba(var(--gold-rgb), 0.2);
    animation: spin 20s linear infinite;
}

.ring-2 {
    inset: -30px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: spin 30s linear infinite reverse;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(160, 160, 160, 0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    position: relative;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(var(--gold-rgb), 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.bg-glow.top {
    top: -100px;
    left: 25%;
}

.bg-glow.bottom {
    bottom: -100px;
    right: 25%;
}

.bg-glow.left {
    top: 25%;
    left: -100px;
}

.bg-glow.right {
    bottom: 25%;
    right: -100px;
}

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

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

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

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

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

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

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

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

.stat-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.stat-number {
    display: inline;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-suffix {
    display: inline;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ============================================
   EXPERIENCE SECTION - TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    transform: translateX(-50%);
}

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

.timeline-node {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-node {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.5);
}

.timeline-card {
    width: calc(50% - 40px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-fast);
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.05), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.timeline-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.timeline-card.left {
    margin-right: auto;
}

.timeline-card.right {
    margin-left: auto;
}

.card-header {
    margin-bottom: 0.75rem;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.card-company .separator {
    color: var(--border);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-highlights {
    display: grid;
    gap: 0.5rem;
}

.card-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-highlights li span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.skill-category:hover {
    border-color: var(--gold);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border-radius: 10px;
    font-size: 1rem;
}

.category-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    width: 0;
    transition: width 1s var(--ease-expo);
}

.skill-progress.advanced {
    background: var(--gold);
}

.skill-progress.intermediate {
    background: #eab308;
}

.skill-progress.basic {
    background: #3b82f6;
}

/* Skills Summary */
.skills-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.summary-item {
    padding: 1rem;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition-fast);
}

.education-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.education-card.degree {
    border-left: 4px solid var(--gold);
}

.card-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gold);
    color: var(--bg-primary);
    border-radius: 0 0 8px 8px;
}

.education-card.certification .card-badge {
    background: #3b82f6;
}

.card-content {
    display: flex;
    gap: 1.25rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.education-card.certification .card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.card-details {
    flex: 1;
}

.card-details .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-list li i {
    color: var(--gold);
    font-size: 0.8rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.info-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
    border-radius: 10px;
    font-size: 1.1rem;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.social-links {
    margin-top: 2rem;
}

.social-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1) rotate(5deg);
}

/* F


/* Form Success */
.form-success {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

*/ .contact-form-wrapper {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Keep your grid row if you later add name/phone etc. */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group textarea {
    resize: none;
    min-height: 140px;
    /* closer to your screenshot */
}

/* Floating label */
.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
    background: rgba(17, 17, 17, 0.95);
    /* so it “cuts” the border nicely */
    padding: 0 0.35rem;
    border-radius: 6px;
}

/* Focus + filled states */
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--gold);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.55rem;
    left: 0.85rem;
    font-size: 0.75rem;
    color: var(--gold);
}


/* Optional: success overlay (your existing styles kept) */
.form-success {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 100px;
    background: rgba(var(--gold-rgb), 0.05);
    border-radius: 50%;
    filter: blur(50px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.footer-nav a:hover {
    color: var(--gold);
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.1) rotate(360deg);
}

.footer-divider {
    width: 100%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.footer-tagline i {
    color: var(--gold);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

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

    .timeline-line {
        left: 20px;
    }

    .timeline-node {
        left: 20px;
    }

    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 50px !important;
    }

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

@media (max-width: 768px) {

    .nav-menu,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

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

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

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

    .card-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .image-container {
        width: 220px;
        height: 220px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .summary-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s var(--ease-expo) forwards;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}