/* ==========================================
   PORTFOLIO - Dark Mode with Amazing Animations
   ========================================== */

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

:root {
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --border: #1a1a1a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ==========================================
   BACKGROUND - Simple & Performant
   ========================================== */
.bg-grid {
    display: none;
    /* Removed for performance */
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--text);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.hero-name {
    font-size: clamp(52px, 9vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Hero Photo with Animated Rings */
.hero-photo {
    width: 320px;
    height: 320px;
    position: relative;
    flex-shrink: 0;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    border: 3px solid var(--border);
}

.photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: ringPulse 3s ease-in-out infinite;
}

.photo-ring:nth-child(1) {
    inset: -20px;
    animation-delay: 0s;
}

.photo-ring:nth-child(2) {
    inset: -45px;
    animation-delay: 0.5s;
    border-color: rgba(59, 130, 246, 0.2);
}

.photo-ring:nth-child(3) {
    inset: -70px;
    animation-delay: 1s;
    border-color: rgba(59, 130, 246, 0.1);
}

@keyframes ringPulse {

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

    50% {
        transform: scale(1.02);
        opacity: 0.5;
    }
}

/* Scroll Button - Simple Arrow */
.scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    color: var(--text);
    border-color: var(--text-muted);
    transform: translateX(-50%) translateY(-4px);
}

.scroll-btn svg {
    width: 24px;
    height: 24px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

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

    50% {
        transform: translateY(4px);
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-photo {
        width: 240px;
        height: 240px;
    }

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

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

@media (max-width: 480px) {
    .hero-name {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .photo-ring:nth-child(1) {
        inset: -12px;
    }

    .photo-ring:nth-child(2) {
        inset: -28px;
    }

    .photo-ring:nth-child(3) {
        inset: -44px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

/* ==========================================
   ABOUT
   ========================================== */
.about-content p {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
}

@media (max-width: 768px) {
    .about-content p {
        font-size: 17px;
    }
}

/* ==========================================
   SKILLS
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 16px;
    }

    .skill-tags span {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ==========================================
   EXPERIENCE - Clean without cards
   ========================================== */
.exp-item {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.exp-role h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 17px;
    color: var(--text-secondary);
}

.exp-date {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.exp-summary {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 800px;
}

.exp-summary strong {
    color: var(--text);
}

/* Animated Metrics */
.exp-metrics {
    display: flex;
    gap: 48px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.metric {
    position: relative;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: inline;
}

.metric-suffix {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
}

.exp-achievements {
    list-style: none;
}

.exp-achievements li {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 16px;
}

.exp-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.exp-achievements li strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .exp-role h3 {
        font-size: 22px;
    }

    .exp-summary {
        font-size: 16px;
    }

    .exp-achievements li {
        font-size: 15px;
    }

    .metric-value {
        font-size: 36px;
    }

    .metric-suffix {
        font-size: 24px;
    }

    .exp-metrics {
        gap: 32px;
    }
}

/* ==========================================
   PROJECTS
   ========================================== */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    transform: translateX(8px);
}

.project-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s;
}

.project-item:hover .project-num {
    color: var(--accent);
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.project-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-live:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.project-live svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.project-live:hover svg {
    transform: translate(2px, -2px);
}

.project-info p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s;
}

.project-item:hover .project-tech span {
    border-color: var(--text-muted);
}

@media (max-width: 768px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 36px 0;
    }

    .project-item:hover {
        transform: translateX(0);
    }

    .project-num {
        font-size: 14px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-info p {
        font-size: 15px;
    }
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-intro {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.contact-item>svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        font-size: 17px;
    }

    .contact-item {
        padding: 24px;
    }
}

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

.footer-content {
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.8s;
}

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

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   ONE UNIQUE SCROLL ANIMATION - Slide + Blur Reveal
   ========================================== */

/* Initial state - offset left with blur */
.reveal {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(8px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

/* Revealed state */
.reveal.revealed {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Stagger delay for child items */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.15s;
}

.reveal:nth-child(4) {
    transition-delay: 0.2s;
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.2s ease;
}

/* ==========================================
   SIMPLE HOVER EFFECTS (Performance Optimized)
   ========================================== */

/* 3D Photo Tilt */
.hero-photo {
    transition: transform 0.3s ease;
}

.hero-photo:hover img {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Button Hover */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Project Card Hover */
.project-item {
    position: relative;
    transition: transform 0.2s ease;
}

.project-item:hover {
    transform: translateY(-4px);
}

/* Contact Card Gradient Border */
.contact-item {
    position: relative;
    background: var(--bg-elevated);
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

/* Name hover glow */
.hero-name {
    transition: text-shadow 0.3s ease;
}

.hero-name:hover {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Scroll button */
.scroll-btn {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    opacity: 1;
}

/* Link underline animation */
.nav-links a::after {
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}