/* ===== VARIABLES ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --light-text: #f8fafc;
    --muted-text: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 50px;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -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-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 50px 50px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        var(--dark-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translateY(0); }
    100% { transform: translateY(-60px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

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

.hero-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--muted-text);
    margin-bottom: 25px;
    min-height: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.typing-text {
    color: var(--light-text);
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-socials {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1s forwards;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px) rotate(5deg);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-card {
    position: absolute;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: -30px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 50px;
    left: -40px;
    animation-delay: 1s;
}

.card-3 {
    bottom: -20px;
    right: 30px;
    animation-delay: 2s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--muted-text);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-indicator p {
    font-size: 0.8rem;
    color: var(--muted-text);
}

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

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--muted-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

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

.stat-card {
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.highlight-item span {
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--dark-bg);
}

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

.skill-category {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

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

.skill-tag {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-text);
    transition: var(--transition);
}

.skill-tag:hover {
    transform: scale(1.05);
}

.skill-tag.expert {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
}

.skill-tag.advanced {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary-color);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: linear-gradient(180deg, var(--dark-card) 0%, var(--dark-bg) 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-company i {
    margin-right: 8px;
}

.timeline-desc {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-highlights {
    justify-content: flex-end;
}

.timeline-highlights .highlight {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-light);
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    background: var(--dark-bg);
    padding-bottom: 80px;
}

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

.cert-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: white;
}

.cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cert-org {
    color: var(--muted-text);
    margin-bottom: 5px;
}

.cert-score {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 15px;
}

.cert-year {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0f1d 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.contact-item div span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 3px;
}

.contact-item div a,
.contact-item div p {
    font-weight: 600;
    color: var(--light-text);
}

.contact-cta {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    max-width: 400px;
}

.cta-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.cta-box h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--muted-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0f1d;
    border-top: 1px solid var(--dark-border);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--muted-text);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--dark-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-border);
}

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

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

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

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

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-description {
        margin: 0 auto 35px;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        text-align: left !important;
    }

    .timeline-item .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-item .timeline-highlights {
        justify-content: flex-start !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--dark-border);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 50px;
    }

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

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

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

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

    .timeline-content {
        padding: 20px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

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

    .floating-card {
        display: none;
    }

    .stat-card {
        padding: 20px 15px;
    }

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