@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --primary-light: #8b83ff;
    --accent: #00d4aa;
    --accent-dark: #00b892;
    --dark: #0f0f1a;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-dark: #1a1a2e;
    --text-dark-secondary: #4a4a6a;
    --surface-light: #f8f9ff;
    --surface-card: #ffffff;
    --border-light: rgba(108, 99, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-hero: linear-gradient(160deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--surface-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

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

a:hover {
    text-decoration: none !important;
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-up-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.animate-fade-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== Navigation ===== */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
}

.nav-logo img {
    height: 44px;
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.nav-logo img:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary-light);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.hero-btn:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.hero-btn:hover::before {
    left: 0;
}

/* ===== Hero Content ===== */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px 80px;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

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

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #ffffff;
    margin-bottom: 20px;
    max-width: 700px;
    font-weight: 700;
}

.hero-content h1 .gradient-text {
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-text {
    font-size: 17px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 44px;
    font-weight: 300;
}

.hero-avatar {
    position: relative;
    margin-top: 10px;
}

.hero-avatar .avatar-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-primary);
    animation: float 4s ease-in-out infinite;
}

.hero-avatar .avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark);
}

.hero-avatar .avatar-decoration {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-surface);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 6px 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ===== About / Intro Section ===== */
.intro-section {
    background: var(--surface-light);
    padding: 100px 24px;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.intro-container h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 24px;
}

.intro-container p {
    font-size: 17px;
    color: var(--text-dark-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 36px;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #ffffff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}

.resume-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
    color: #ffffff;
}

.resume-btn i {
    font-size: 16px;
}

/* ===== Skills Section ===== */
.skills-section {
    background: var(--surface-light);
    padding: 20px 24px 80px;
}

.skills-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.skill-tag i {
    color: var(--primary);
    font-size: 14px;
}

/* ===== Experience Section ===== */
.experience-section {
    background: var(--surface-light);
    padding: 80px 24px 100px;
}

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

.experience-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
}

.experience-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.exp-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

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

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

.exp-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.exp-card-icon i {
    font-size: 22px;
    color: var(--primary);
}

.exp-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.exp-card p {
    font-size: 14px;
    color: var(--text-dark-secondary);
    line-height: 1.7;
}

.exp-card .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.exp-card .tech-list span {
    padding: 4px 10px;
    background: rgba(108, 99, 255, 0.06);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 24px 100px;
    background: var(--surface-light);
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-card h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    position: relative;
    z-index: 2;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #ffffff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
    color: #ffffff;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    padding: 60px 24px 36px;
    text-align: center;
}

.footer-logo img {
    height: 48px;
    width: auto;
    filter: brightness(1.1);
    margin-bottom: 12px;
}

.footer-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.footer-credit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Contact Page ===== */
.contact-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-back {
    position: absolute;
    top: 28px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    z-index: 10;
}

.contact-back:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.contact-back i {
    font-size: 16px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
}

.contact-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
}

.contact-card .contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.contact-field {
    margin-bottom: 20px;
}

.contact-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.contact-field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-field .error-input {
    border-color: #ff4757;
}

.contact-error {
    color: #ff4757;
    font-size: 12px;
    margin-top: 6px;
}

.contact-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.contact-submit:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 20px 24px;
    }

    .hero-content {
        padding: 0 20px 60px;
    }

    .hero-avatar .avatar-ring {
        width: 180px;
        height: 180px;
    }

    .intro-section {
        padding: 72px 20px;
    }

    .cta-card {
        padding: 40px 28px;
        text-align: center;
        flex-direction: column;
    }

    .site-footer {
        padding: 48px 20px 28px;
    }

    .contact-card {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-avatar .avatar-ring {
        width: 150px;
        height: 150px;
    }

    .hero-text {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .nav-logo img {
        height: 36px;
    }
}
