/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --accent-secondary: #818cf8;
    --font-main: 'Poppins', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Animated Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.2);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(129, 140, 248, 0.15);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.15);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-center;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

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

.btn-outline:hover {
    background: var(--glass-highlight);
    border-color: rgba(255,255,255,0.2);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-socials a:not(.btn) {
    color: var(--text-secondary);
}

.nav-socials a:not(.btn):hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-subtitle .hero-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 6px;
}

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

/* Hero Visual Profile */
.profile-card {
    padding: 24px;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.profile-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.profile-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1);
}

.profile-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--glass-highlight);
    padding: 4px 10px;
    border-radius: 99px;
}

.location i {
    width: 12px;
    height: 12px;
}

/* About Section */
.content-card {
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-text p {
    margin-bottom: 16px;
}

.about-tags {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.glass-tag {
    background: var(--glass-highlight);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-highlight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.github-link {
    color: var(--text-secondary);
}

.github-link:hover {
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.project-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.project-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-features li i {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

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

/* Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateX(5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon.azure { background: rgba(0, 164, 239, 0.1); color: #00a4ef; border: 1px solid rgba(0, 164, 239, 0.2); }
.cert-icon.redis { background: rgba(220, 56, 45, 0.1); color: #dc382d; border: 1px solid rgba(220, 56, 45, 0.2); }
.cert-icon.python { background: rgba(55, 118, 171, 0.1); color: #3776ab; border: 1px solid rgba(55, 118, 171, 0.2); }

.cert-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cert-info p {
    font-size: 0.8rem;
}

/* Contact Section */
.contact-card {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card p {
    max-width: 500px;
    margin: 20px auto 30px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p, .footer-right p {
    font-size: 0.9rem;
    margin: 0;
}

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

.footer-socials a {
    color: var(--text-secondary);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Lucide Icon Defaults */
i[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Timeline (Education) */
.timeline { position: relative; max-width: 800px; margin: 40px auto 0; padding-top: 20px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 24px; height: 100%; width: 2px; background: rgba(56, 189, 248, 0.3); }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 70px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 16px; top: 0; width: 18px; height: 18px; background: var(--bg-dark); border: 4px solid var(--accent); border-radius: 50%; box-shadow: 0 0 15px rgba(56, 189, 248, 0.6); z-index: 2; }
.timeline-content { padding: 30px; text-align: left; transition: transform 0.3s ease; }
.timeline-content:hover { transform: translateX(5px); border-color: rgba(56, 189, 248, 0.3); }
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text-primary); }
.timeline-school { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 24px; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Navbar Load Animation */
@keyframes navFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.logo { opacity: 0; animation: navFadeDown 0.6s ease forwards; }
.nav-links .nav-link { opacity: 0; animation: navFadeDown 0.6s ease forwards; }
.nav-links .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-links .nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-links .nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-links .nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-links .nav-link:nth-child(5) { animation-delay: 0.5s; }
.nav-links .nav-link:nth-child(6) { animation-delay: 0.6s; }
.nav-container .btn { opacity: 0; animation: navFadeDown 0.6s ease forwards; animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
        margin-bottom: 40px;
    }

    .profile-card {
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        padding: 20px 0;
        gap: 20px;
        align-items: center;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: -1;
    }

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

    .content-card {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

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

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