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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Manrope', 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* ========================================
   Navigation
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 22px;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo svg {
    width: 32px;
    height: 32px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:hover {
    color: #fff;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: none;
    border-radius: 980px;
    color: #000;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-btn:hover {
    background: #f5f5f7;
    transform: scale(1.02);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Hero Section - Sticky Scroll
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(180deg, #000 45%, #4e45fd 80%, #ada3fe 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
}

/* Spacer to push content below hero */
.hero-spacer {
    height: 100vh;
}

/* Main content wrapper */
.main-content {
    position: relative;
    z-index: 10;
    background: #000;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 24px;
    padding-bottom: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), #fff 50%, rgba(255, 255, 255, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.3em;
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #fff;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: 16px;
    color: #d97706;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Primary Button - Glassy Style */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 980px;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 8px 32px rgba(99, 77, 245, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards;
    opacity: 0;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 77, 245, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========================================
   Section Styles
   ======================================== */

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

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #F3F3F8;
}

.section-desc {
    color: #8a8a9c;
    font-size: 16px;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ========================================
   Projects Section
   ======================================== */

.projects {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

a.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: #161617;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}

.project-icon {
    width: 80px;
    height: 80px;
    color: #634df5;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-card:hover .project-icon {
    color: #8b7cf7;
    transform: scale(1.1);
}

.project-card:hover .project-image {
    background: linear-gradient(135deg, #222224 0%, #323234 100%);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e8fc;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 14px;
    color: #8a8a9c;
    margin-bottom: 16px;
}

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

.project-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 980px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.project-card:hover .project-tag {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Skills Section
   ======================================== */

.skills {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.skill-card {
    background: #161617;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 77, 245, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 77, 245, 0.3);
}

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

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 77, 245, 0.15) 0%, rgba(99, 77, 245, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.skill-icon svg {
    width: 28px;
    height: 28px;
    color: #634df5;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, rgba(99, 77, 245, 0.25) 0%, rgba(99, 77, 245, 0.1) 100%);
    transform: scale(1.1);
}

.skill-card:hover .skill-icon svg {
    color: #8b7cf7;
}

.skill-name {
    font-size: 20px;
    font-weight: 600;
    color: #F3F3F8;
    margin-bottom: 8px;
}

.skill-desc {
    font-size: 14px;
    color: #8a8a9c;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.skill-tag {
    padding: 6px 12px;
    background: rgba(99, 77, 245, 0.1);
    border: 1px solid rgba(99, 77, 245, 0.2);
    border-radius: 980px;
    font-size: 12px;
    color: #a99eff;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-tag {
    background: rgba(99, 77, 245, 0.15);
    border-color: rgba(99, 77, 245, 0.3);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    padding: 100px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-question:hover {
    color: #0071e3;
}

.faq-question svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: #8a8a9c;
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: 100px 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #F3F3F8;
    margin-bottom: 16px;
}

.contact-desc {
    color: #8a8a9c;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #F3F3F8;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: #161617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6a6a7c;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #634df5;
    box-shadow: 0 0 0 3px rgba(99, 77, 245, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button - Apple Style */
.submit-btn {
    padding: 12px 22px;
    background: #0071e3;
    border: none;
    border-radius: 980px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.submit-btn:hover {
    background: #0077ED;
}

/* Form Status Messages */
.form-status {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-status.success {
    display: flex;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    display: flex;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Contact Divider */
.contact-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    color: #6a6a7c;
    font-size: 14px;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-email {
    font-size: 20px;
    font-weight: 600;
    color: #634df5;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-email:hover {
    opacity: 0.8;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: #1c1c1e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.social-link:hover {
    background: #634df5;
    transform: scale(1.1);
    color: #fff;
}

/* ========================================
   Footer
   ======================================== */

footer {
    padding: 40px;
    background: linear-gradient(0deg, #000 45%, #000 70%, rgba(10, 10, 10, 0.8));
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: #8a8a9c;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #8a8a9c;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ========================================
   Animations
   ======================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ========================================
   Responsive Design
   ======================================== */

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

    .nav-links,
    .nav-btn {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

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

    .projects,
    .skills,
    .faq,
    .contact {
        padding: 60px 20px;
    }

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

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}