* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #38bdf8;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-light: #e5e7eb;
    --text-muted: #cbd5f5;
    --border-color: #1e293b;
    --accent: #7c3aed;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    animation: fadeInLeft 0.8s ease;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    animation: fadeInRight 0.8s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    text-align: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-greeting {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight-text {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-weight: 400;
    margin: 15px 0;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.hero-description {
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    color: #020617;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    letter-spacing: 1px;
}

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

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scroll 1.5s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== SECTIONS ===== */
.section {
    padding: 90px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.section.light {
    background: var(--darker-bg);
    max-width: 100%;
    padding: 90px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.title-highlight {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 40px;
}

.section-text {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    max-width: 900px;
    margin: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat {
    padding: 25px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.stat h4 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

/* ===== SKILLS SECTION ===== */
.skills-container {
    margin-top: 60px;
}

.skill-category {
    margin-bottom: 60px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Slider Wrapper */
.skills-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.skills-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    flex: 1;
    scrollbar-width: none;
}

.skills-slider::-webkit-scrollbar {
    display: none;
}

.slider-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.slider-btn:active {
    transform: scale(0.95);
}

.skill-card {
    padding: 25px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    flex-shrink: 0;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    height: 60px;
    align-items: center;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    white-space: nowrap;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.15);
}

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

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.project-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.project-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.tech-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ===== EDUCATION SECTION ===== */
.education-timeline {
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 80px;
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.timeline-content {
    background: rgba(56, 189, 248, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
    transform: translateX(10px);
}

.timeline-content h3 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.education-school {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.education-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-box {
    margin: 40px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(56, 189, 248, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.social-link i {
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

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

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

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

.footer-bottom p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

.scroll-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideUp 0.3s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        gap: 0;
        z-index: 999;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
