/**
 * Ubaid Portfolio 3D - Theme CSS v3.0
 * Optimized: single file approach, bright colors, all sections
 */

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070b1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00f0ff, #8b5cf6); border-radius: 3px; }
::selection { background: rgba(0,240,255,0.25); color: #fff; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* === NAVIGATION === */
.ubaid-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all 0.35s ease; }
.ubaid-nav.scrolled { background: rgba(7,11,26,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,240,255,0.06); padding: 10px 0; }
.ubaid-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.ubaid-logo { font-size: 1.3rem; font-weight: 800; color: #f0f0ff; text-decoration: none; }
.ubaid-logo span { background: linear-gradient(90deg, #00f0ff, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ubaid-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ubaid-nav-links a { color: #a0a0cc; text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.3s; }
.ubaid-nav-links a:hover { color: #00f0ff; }
.nav-cta { padding: 10px 22px !important; font-size: 0.85rem !important; }

/* === PARALLAX HERO === */
.parallax-hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.parallax-layer { position: absolute; inset: 0; will-change: transform; backface-visibility: hidden; }
.parallax-layer-bg { z-index: 1; }
.parallax-layer-mid { z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding-right: 5%; }
.parallax-layer-fg { z-index: 3; display: flex; align-items: center; }
.parallax-bg-aurora { position: absolute; inset: -20%; width: 140%; height: 140%; background: linear-gradient(180deg, rgba(0,240,255,0.1) 0%, rgba(139,92,246,0.06) 35%, rgba(255,0,110,0.04) 65%, transparent 100%); animation: auroraPulse 10s ease-in-out infinite alternate; }

/* Floating shapes */
.floating-shape { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.floating-shape-1 { width: 350px; height: 350px; background: rgba(0,240,255,0.07); top: 10%; right: -5%; animation: float1 14s ease-in-out infinite; }
.floating-shape-2 { width: 300px; height: 300px; background: rgba(139,92,246,0.07); bottom: 15%; left: -5%; animation: float2 17s ease-in-out infinite; }
.floating-shape-3 { width: 250px; height: 250px; background: rgba(255,0,110,0.05); top: 45%; left: 30%; animation: float3 20s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-25px,40px) scale(1.1)} 66%{transform:translate(15px,-25px) scale(0.9)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(35px,-35px) scale(1.12)} 66%{transform:translate(-15px,25px) scale(0.92)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-40px,30px) scale(1.08)} }
@keyframes auroraPulse { 0%{opacity:0.5} 50%{opacity:1} 100%{opacity:0.6} }

/* Character canvas */
#character-canvas { max-width: 100%; height: auto; pointer-events: none; }

/* Hero content */
.hero-content { max-width: 620px; padding: 0 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px; border: 1px solid rgba(0,240,255,0.4); border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; color: #00f0ff; margin-bottom: 28px; background: rgba(0,240,255,0.04); }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #00f0ff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.6)} }

.hero-heading { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 900; line-height: 1.05; margin-bottom: 20px; color: #f0f0ff; letter-spacing: -0.03em; }
.hero-heading-gradient { background: linear-gradient(90deg, #00f0ff, #ff006e, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subheading { font-size: clamp(0.92rem, 1.6vw, 1.05rem); color: #a0a0cc; line-height: 1.85; margin-bottom: 32px; max-width: 520px; }
.hero-subheading strong { color: #00f0ff; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* Hero stats row */
.hero-stats { display: flex; align-items: center; gap: 24px; }
.hero-stat { text-align: center; }
.hero-stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: #00f0ff; font-family: 'JetBrains Mono', monospace; }
.hero-stat-label { font-size: 0.72rem; color: #606090; text-transform: uppercase; letter-spacing: 1.5px; }
.hero-stat-divider { width: 1px; height: 35px; background: rgba(0,240,255,0.15); }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #606090; font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; animation: scrollBounce 2.5s ease-in-out infinite; }
.scroll-indicator .mouse { width: 20px; height: 34px; border: 1.5px solid #606090; border-radius: 10px; position: relative; }
.scroll-indicator .mouse::after { content:''; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:3px; height:7px; background:#00f0ff; border-radius:2px; animation:scrollWheel 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes scrollWheel { 0%{opacity:1;top:7px} 100%{opacity:0;top:20px} }

/* === SECTIONS === */
.ubaid-section { padding: 100px 0; position: relative; overflow: hidden; }
.section-dark { background: rgba(10,14,39,0.5); }
.section-heading { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: #f0f0ff; text-align: center; }
.section-subheading { color: #a0a0cc; font-size: 1rem; text-align: center; max-width: 580px; margin: 0 auto 50px; line-height: 1.7; }
.gradient-text { background: linear-gradient(90deg, #00f0ff, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: start; }
.about-grid .section-heading { text-align: left; }
.about-text { color: #a0a0cc; line-height: 1.85; margin-bottom: 18px; }
.about-text a { color: #00f0ff; }
.about-links { margin-top: 24px; }
.about-card { padding: 32px; }
.about-card-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card-title { font-size: 1.3rem; color: #00f0ff; margin-bottom: 20px; }
.about-card-list { list-style: none; padding: 0; }
.about-card-list li { color: #a0a0cc; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); line-height: 1.6; font-size: 0.92rem; }
.about-card-list li:last-child { border-bottom: none; }
.about-card-list li strong { color: #f0f0ff; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 30px; text-align: center; transition: transform 0.4s ease, border-color 0.4s ease; }
.service-card:hover { transform: translateY(-6px); border-color: #00f0ff; }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: #f0f0ff; }
.service-desc { color: #a0a0cc; font-size: 0.9rem; line-height: 1.7; }

/* === SKILLS === */
.skills-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; margin-top: 40px; align-items: start; }
.skills-bars-col { padding: 20px 0; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skill-name { color: #f0f0ff; font-weight: 600; font-size: 0.95rem; }
.skill-percent { color: #00f0ff; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.9rem; }
.skill-bar-bg { height: 8px; background: rgba(0,240,255,0.08); border-radius: 4px; overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #00f0ff, #8b5cf6); border-radius: 4px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 10px rgba(0,240,255,0.3); }
.skills-desc-col .glass-card { padding: 28px; }
.skills-desc-col h3 { font-size: 1.15rem; }
.skills-desc-col p { color: #a0a0cc; line-height: 1.8; font-size: 0.92rem; }

/* === RESULTS / STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 50px 0; }
.stat-card { padding: 28px 20px; text-align: center; }
.stat-number { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; color: #00f0ff; font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.stat-label { display: block; font-size: 0.9rem; font-weight: 600; color: #f0f0ff; margin-bottom: 4px; }
.stat-desc { font-size: 0.78rem; color: #606090; }
.roi-feature { margin-top: 30px; }
.roi-feature .glass-card { padding: 36px; }
.roi-feature p { color: #a0a0cc; line-height: 1.8; font-size: 0.95rem; }
.roi-circle { width: 180px; height: 180px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(139,92,246,0.1)); border: 2px solid rgba(0,240,255,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; animation: breatheGlow 3s ease-in-out infinite; }
@keyframes breatheGlow { 0%,100%{box-shadow:0 0 15px rgba(0,240,255,0.15)} 50%{box-shadow:0 0 35px rgba(0,240,255,0.3),0 0 60px rgba(139,92,246,0.15)} }
.roi-circle-number { font-size: 2rem; font-weight: 900; color: #00f0ff; font-family: 'JetBrains Mono', monospace; }
.roi-circle-label { font-size: 0.72rem; color: #606090; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

/* === PROJECTS === */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { padding: 28px; }
.project-card-cat { font-size: 0.72rem; font-weight: 700; color: #8b5cf6; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.project-card-title { font-size: 1.15rem; font-weight: 700; color: #f0f0ff; margin-bottom: 12px; }
.project-card-desc { color: #a0a0cc; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.project-stat-number { display: inline-block; padding: 6px 16px; background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.2); border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: #00f0ff; }

/* NDA Banner */
.nda-banner { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.18); border-radius: 12px; padding: 16px 22px; display: flex; align-items: center; gap: 14px; color: #fbbf24; font-size: 0.88rem; line-height: 1.6; }
.nda-banner span:first-child { font-size: 1.3rem; flex-shrink: 0; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-grid .section-heading { text-align: left; }
.contact-text { color: #a0a0cc; line-height: 1.85; margin-bottom: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { padding: 16px 20px; background: rgba(0,240,255,0.04); border: 1px solid rgba(0,240,255,0.08); border-radius: 12px; }
.contact-info-label { display: block; font-size: 0.72rem; color: #606090; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-info-value { color: #00f0ff; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.contact-info-value:hover { color: #ff006e; }
.contact-form-card { padding: 32px; }
.contact-form-card h3 { color: #f0f0ff; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: #a0a0cc; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: #f0f0ff; font-family: 'Inter', sans-serif; font-size: 0.92rem; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #00f0ff; box-shadow: 0 0 0 3px rgba(0,240,255,0.08); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* === FOOTER === */
.ubaid-footer { border-top: 1px solid rgba(255,255,255,0.04); padding: 40px 0; }
.ubaid-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ubaid-footer p { color: #606090; font-size: 0.82rem; }
.ubaid-footer-links { display: flex; gap: 20px; }
.ubaid-footer-links a { color: #606090; font-size: 0.82rem; text-decoration: none; transition: color 0.3s; }
.ubaid-footer-links a:hover { color: #00f0ff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-subheading { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-grid .section-heading, .contact-grid .section-heading { text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
    .ubaid-nav-links { gap: 16px; }
    .ubaid-nav-links a:not(.nav-cta) { display: none; }
    .parallax-layer-mid { justify-content: center; padding-right: 0; }
    #character-canvas { max-width: 280px; }
    .scroll-indicator { display: none; }
    .glass-card { transition: none !important; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-heading { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { width: 35px; height: 1px; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === CURSOR GLOW === */
.cursor-glow { position: fixed; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, transparent 70%); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); }

/* === WHATSAPP === */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; z-index: 9999; width: 55px; height: 55px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.35); transition: transform 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* === LOADER === */
#page-loader { position: fixed; inset: 0; background: #070b1a; z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
#page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-spinner { width: 40px; height: 40px; border: 2.5px solid rgba(0,240,255,0.15); border-top-color: #00f0ff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
