/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
   :root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #f093fb;
    --accent-2: #f5576c;
    
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #050505;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #43e97b, #38f9d7);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    top: 40%;
    left: 40%;
    animation-duration: 25s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opactiy='0.05'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

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

/* Typography & Utilities */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

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

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-btn:hover {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
    color: #fff !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

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



.hero-content {
    max-width: 600px;
}

/* Floating Avatar */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25), rgba(240, 147, 251, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2), 0 0 80px rgba(240, 147, 251, 0.1);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-avatar:hover {
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.4), 0 0 120px rgba(240, 147, 251, 0.2);
    transform: translateY(-15px) scale(1.02);
}

.bouncing {
    animation: bounce 3s ease-in-out infinite;
}

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

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.badge.pulse i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

.badge.typing-badge i {
    color: var(--accent);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.hero-typing {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    min-height: 3.6rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.cursor {
    display: inline-block;
    color: var(--primary);
    font-weight: 200;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

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

.primary-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
    transform: translateY(-3px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.double-col {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .double-col {
        grid-column: span 1;
    }
}

.skill-card {
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-cyan { color: #00f2fe; }
.text-orange { color: #ff758c; }
.text-purple { color: #a18cd1; }
.text-blue { color: #4facfe; }
.text-green { color: #43e97b; }
.text-pink { color: #fa709a; }
.text-yellow { color: #f6d365; }
.text-indigo { color: #667eea; }
.text-teal { color: #00c6ff; }

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.lang-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
}

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

/* Special BuildSphereX Card */
.buildspherex-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(220, 160, 50, 0.4);
    box-shadow: 0 0 30px rgba(220, 160, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.buildspherex-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(220, 160, 50, 0.3), transparent 30%);
    animation: rotate 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.buildspherex-card .project-content {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .buildspherex-card {
        grid-column: span 1;
    }
}

.future-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #000;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    word-break: break-word;
}

.project-desc {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(79, 172, 254, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* Loading State for Projects */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   VISION SECTION
   ========================================= */
.vision {
    position: relative;
}

.vision-container {
    padding: 4rem;
    text-align: center;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.vision-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.vision-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.vision-statement {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.vision-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   FOOTER / CONTACT
   ========================================= */
.footer {
    padding: 6rem 0 2rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Message */
.contact-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.message-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.message-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.message-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* =========================================
   RESPONSIVE — Tablet (max 992px)
   ========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-badges { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-image-container { order: -1; }

    .hero-avatar {
        width: 220px;
        height: 220px;
    }

    .hero-image-glow {
        width: 240px;
        height: 240px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }

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

    .double-col {
        grid-column: span 1;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .buildspherex-card {
        grid-column: span 2;
    }
}

/* =========================================
   RESPONSIVE — Mobile (max 768px)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .wrapper {
        padding: 0 1.2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 5rem;
        min-height: auto;
    }

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

    .hero-typing {
        font-size: 1.8rem;
    }

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

    .hero-desc {
        font-size: 1rem;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .hero-image-glow {
        width: 200px;
        height: 200px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

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

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

    .buildspherex-card {
        grid-column: span 1;
    }

    .vision-container {
        padding: 2rem;
    }
    
    .vision-statement {
        font-size: 1.2rem;
    }

    .vision-container h2 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-message {
        padding: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}

/* =========================================
   RESPONSIVE — Small Mobile (max 480px)
   ========================================= */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-typing {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }

    .hero-image-glow {
        width: 170px;
        height: 170px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .message-tagline {
        font-size: 0.95rem;
    }
}
