:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --dark: #080c14;
    --card-bg: rgba(16, 24, 40, 0.7);
    --accent: #f43f5e;
    --code-color: #10b981;
    --text-gray: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    /* Anti-copy: Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: var(--dark);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
    min-height: 100vh;
    font-size: 1.1rem;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 2;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

nav {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.6);
    backdrop-filter: blur(10px);
}

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

.nav-link {
    padding: 0.8rem 2rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 10% 60px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-gray);
    max-width: 800px;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--primary));
    animation: logo-float 4s infinite ease-in-out;
}

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

.typewriter-container {
    font-family: 'Fira Code', monospace;
    font-size: 1.8rem;
    color: var(--code-color);
    min-height: 3rem;
    margin-bottom: 3rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.code-window {
    width: 100%;
    max-width: 750px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.code-header {
    background: #0f172a;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-body {
    padding: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: #e2e8f0;
    min-height: 200px;
    white-space: pre-wrap;
}

section { padding: 100px 10%; }

h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -1px;
    font-weight: 900;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.project-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 242, 254, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.1);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.project-card ul { list-style: none; color: var(--text-gray); }
.project-card li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.project-card li::before { content: '>'; color: var(--code-color); font-weight: bold; }

.stack-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.stack-item i { font-size: 3rem; color: #64748b; }
.stack-item:hover i { color: var(--primary); }
.stack-item:hover { transform: scale(1.2) rotate(5deg); }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: rgba(255,255,255,0.03);
    margin-bottom: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

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

footer {
    padding: 6rem 10% 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo { height: 40px; margin-bottom: 1.5rem; opacity: 0.6; }

/* Dropdown Navigation */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(16, 24, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-link i {
    color: var(--primary);
    width: 20px;
}

.dropdown-link:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
}

.nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Page Specific Styles */
.value-card {
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.step-card {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
}

/* Mobile Navigation Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    nav {
        padding: 1rem 5%;
        flex-direction: row-reverse;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(8, 12, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        text-align: center;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .typewriter-container { font-size: 1.2rem; }
    .code-window { max-width: 90%; }
    .code-body { font-size: 0.9rem; padding: 15px; }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stack-icons {
        gap: 2rem;
    }

    .stack-item i { font-size: 2.2rem; }
    
    h2 { font-size: 2.2rem; margin-bottom: 2.5rem; }
    section { padding: 60px 5%; }
    .hero-logo { max-width: 180px; }

    /* Disable custom cursor on mobile */
    .custom-cursor { display: none !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-logo { max-width: 140px; }
    .nav-link { font-size: 0.9rem; padding: 0.8rem; }
}
