/* ============================================
   ULTIMATE 3D PORTFOLIO - ANANT TYAGI
   Complete Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    --bg-card-hover: #1c1c2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #606070;
    --accent-primary: #6c63ff;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff6b9d;
    --gradient-1: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
    --gradient-2: linear-gradient(135deg, #ff6b9d 0%, #c850c0 50%, #6c63ff 100%);
    --gradient-3: linear-gradient(135deg, #00d4ff 0%, #6c63ff 50%, #ff6b9d 100%);
    --gradient-text: linear-gradient(135deg, #6c63ff, #00d4ff, #ff6b9d);
    --glow-primary: 0 0 20px rgba(108, 99, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-intense: 0 0 40px rgba(108, 99, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.15);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
    font-size: 16px;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--gradient-1); border-radius: 10px; }

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== Custom Cursor ===== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(108, 99, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.cursor-follower.hover {
    width: 64px;
    height: 64px;
    border-color: var(--accent-secondary);
    background: rgba(108, 99, 255, 0.08);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    position: relative;
}

.preloader-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    animation: preloaderSpin 2s linear infinite;
}

.preloader-circle:nth-child(1) {
    width: 200px; height: 200px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-top-color: var(--accent-primary);
}

.preloader-circle:nth-child(2) {
    width: 160px; height: 160px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-right-color: var(--accent-secondary);
    animation-direction: reverse;
    animation-duration: 1.5s;
}

.preloader-circle:nth-child(3) {
    width: 120px; height: 120px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-bottom-color: var(--accent-tertiary);
    animation-duration: 1s;
}

@keyframes preloaderSpin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.preloader-text {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.preloader-text span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-text span:nth-child(2) {
    font-size: 1.2rem;
    letter-spacing: 20px;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    background: none;
    animation-delay: 0.2s;
}

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

.preloader-counter {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 4px;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--bg-tertiary);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ===== Noise Overlay ===== */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    animation: noiseMove 0.2s steps(4) infinite;
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 2%); }
    50% { transform: translate(2%, -2%); }
    75% { transform: translate(-2%, -2%); }
    100% { transform: translate(2%, 2%); }
}

/* ===== Three.js & Particles ===== */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10001;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    box-shadow: var(--glow-primary);
    transition: width 0.05s linear;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(0);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-primary);
    font-size: 2.2rem;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 16px;
    color: var(--accent-primary);
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-intense);
}

.nav-cta i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-cta:hover i {
    transform: translateX(4px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 10002;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

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

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.97);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
    backdrop-filter: blur(20px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list li {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu-overlay.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.mobile-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.mobile-socials a {
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-socials a:hover {
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
}

/* ===== Side Social ===== */
.side-social {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.social-icon {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    transition: var(--transition);
    padding: 4px;
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.social-line {
    width: 1px;
    height: 90px;
    background: var(--text-tertiary);
}

/* Side Email */
.side-email {
    position: fixed;
    bottom: 0;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.email-link {
    writing-mode: vertical-rl;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.email-line {
    width: 1px;
    height: 90px;
    background: var(--text-tertiary);
}

@media (max-width: 768px) {
    .side-social, .side-email { display: none; }
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

/* Hero Title */
.hero-title {
    margin-bottom: 24px;
}

.title-line {
    overflow: hidden;
    margin-bottom: 8px;
}

.title-greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title-name {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    animation: glitch2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 95% { transform: translate(0); }
    96% { transform: translate(-3px, 2px); }
    97% { transform: translate(3px, -2px); }
    98% { transform: translate(-2px, -1px); }
    99% { transform: translate(2px, 1px); }
    100% { transform: translate(0); }
}

@keyframes glitch2 {
    0%, 95% { transform: translate(0); }
    96% { transform: translate(3px, -2px); }
    97% { transform: translate(-3px, 2px); }
    98% { transform: translate(2px, 1px); }
    99% { transform: translate(-2px, -1px); }
    100% { transform: translate(0); }
}

.title-role {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
}

.typed-text {
    color: var(--accent-secondary);
    font-weight: 700;
}

.typed-cursor {
    color: var(--accent-primary);
    font-weight: 200;
    animation: cursorBlink 1s infinite;
}

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

/* Hero Description */
.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-icon {
    transition: var(--transition);
    font-size: 0.85rem;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover .btn-glow {
    opacity: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-container {
    width: 100%;
    height: 500px;
    position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: floatUp 2s ease-in-out infinite;
}

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

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 3px;
    animation: mouseScroll 1.5s ease-in-out infinite;
}

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

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s ease-in-out infinite;
    margin: -5px auto 0;
}

.scroll-arrows span:nth-child(2) { animation-delay: 0.15s; }
.scroll-arrows span:nth-child(3) { animation-delay: 0.3s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 35px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { gap: 15px; }
    .stat-divider { height: 30px; }
}

/* ===== MARQUEE ===== */
.marquee-section {
    padding: 30px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.marquee-star {
    color: var(--accent-primary) !important;
    font-size: 1rem !important;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-col {
    position: sticky;
    top: 100px;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.image-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.image-placeholder span {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 8px;
}

.about-image-border {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    z-index: 1;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image-border {
    top: 10px;
    left: 10px;
}

.experience-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100px;
    height: 100px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--glow-primary);
}

.exp-number {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.exp-text {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.float-animation {
    animation: floatAnimation 3s ease-in-out infinite;
}

.about-content-col {
    padding-top: 8px;
}

/* Story narrative blocks */
.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.story-block {
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.story-block:hover {
    border-left-color: var(--accent-primary);
}

.story-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.story-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.story-block p em {
    color: var(--accent-secondary);
    font-style: italic;
}

.story-block p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Social links under image */
.about-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.about-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.about-social-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
    padding: 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-value.available {
    color: #00ff88;
}

.about-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-col {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-image-col { max-width: 260px; }
}

/* ===== SKILLS SECTION ===== */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.skill-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.skill-tab.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow-primary);
}

.skills-panel {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.skills-panel.active {
    display: block;
}

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

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

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

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

.skill-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 0 0px transparent);
}

.skill-card:hover .skill-icon img {
    transform: scale(1.12) translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(108, 99, 255, 0.45));
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-inner {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 12px;
}

.timeline-date span {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-type {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(108, 99, 255, 0.25);
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-company i {
    font-size: 0.8rem;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.timeline-tags span {
    padding: 4px 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .timeline { padding-left: 40px; }
    .timeline::before { left: 14px; }
    .timeline-dot { left: -36px; }
}

/* ===== PROJECTS SECTION ===== */

/* --- Category Tabs --- */
.proj-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.proj-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.proj-tab i { font-size: 0.8rem; }

.proj-tab-count {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    transition: var(--transition);
}

.proj-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.proj-tab.active {
    background: var(--gradient-1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.proj-tab.active .proj-tab-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* --- Panel --- */
.proj-panel {
    display: none;
}
.proj-panel.active {
    display: block;
    animation: panelFadeIn 0.4s ease;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* --- Card --- */
.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
}

.proj-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.proj-card:hover {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(108,99,255,0.2),
                0 20px 60px rgba(0,0,0,0.4),
                0 0 40px rgba(108,99,255,0.12);
}

/* --- Card Top (gradient banner) --- */
.proj-card-top {
    height: 160px;
    background: var(--grad);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.4s ease;
}

.proj-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
}

.proj-card:hover .proj-card-top::after {
    background: rgba(0,0,0,0.45);
}

.proj-icon {
    font-size: 2.8rem;
    color: rgba(255,255,255,0.25);
    transition: transform 0.4s ease, color 0.4s ease;
    position: relative;
    z-index: 1;
}

.proj-card:hover .proj-icon {
    transform: scale(0.85) translateY(-6px);
    color: rgba(255,255,255,0.15);
}

/* Hover links that appear on the banner */
.proj-links-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.proj-card:hover .proj-links-hover {
    opacity: 1;
    transform: translateY(0);
}

.proj-links-hover a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.proj-links-hover a:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.12);
}

/* Badge */
.proj-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 11px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 3;
}

.proj-badge-client {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* --- Card Body --- */
.proj-card-body {
    padding: 20px 22px 18px;
    position: relative;
    z-index: 1;
}

.proj-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.proj-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proj-date {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.proj-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.proj-card:hover .proj-title {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proj-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.proj-tech span {
    padding: 3px 10px;
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    letter-spacing: 0.3px;
}

/* Screenshot image in card top */
.proj-card-img {
    padding: 0;
    overflow: hidden;
}

.proj-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.proj-card:hover .proj-screenshot {
    transform: scale(1.06);
    filter: brightness(0.55);
}

/* Placeholder / coming soon card */
.proj-card-placeholder {
    opacity: 0.6;
}

.proj-add-icon {
    color: rgba(255,255,255,0.3) !important;
    font-size: 2rem !important;
}

.proj-btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px dashed var(--border-light);
    color: var(--text-tertiary);
    background: transparent;
    cursor: default;
}

/* Footer buttons */
.proj-footer {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.proj-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.proj-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(108,99,255,0.35);
}

.proj-btn-live {
    background: rgba(0, 212, 255, 0.07);
    border-color: rgba(0, 212, 255, 0.25);
    color: var(--accent-secondary);
}

.proj-btn-live:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: #000;
    box-shadow: 0 4px 14px rgba(0,212,255,0.35);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .proj-tabs { gap: 8px; }
    .proj-tab { padding: 8px 18px; font-size: 0.82rem; }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--bg-secondary);
}

/* Ensure cards are always visible as a fallback */
.service-card {
    animation: serviceCardFallback 0.1s 2s forwards;
}
@keyframes serviceCardFallback {
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(108, 99, 255, 0.06);
    line-height: 1;
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: rgba(108, 99, 255, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-icon i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
}

.service-card:hover .service-icon i {
    -webkit-text-fill-color: white;
    background: none;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-arrow {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-arrow i {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.service-card:hover .service-arrow {
    background: var(--accent-primary);
}

.service-card:hover .service-arrow i {
    color: white;
    transform: translateX(3px);
}

/* Service feature list — slides up on hover */
.service-features {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                margin 0.35s ease;
    margin: 0 0 0;
}

.service-card:hover .service-features {
    max-height: 200px;
    opacity: 1;
    margin: 0 0 16px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.service-features li:hover {
    color: var(--text-primary);
}

.service-features li i {
    color: var(--accent-primary);
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* Service tech tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
                opacity 0.35s ease 0.05s,
                margin 0.35s ease;
    margin-bottom: 0;
}

.service-card:hover .service-tags {
    max-height: 60px;
    opacity: 1;
    margin-bottom: 20px;
}

.service-tags span {
    padding: 3px 10px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(108, 99, 255, 0.2);
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-features, .service-tags {
        max-height: 200px !important;
        opacity: 1 !important;
        margin-bottom: 16px !important;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

.testimonial-card.prev {
    opacity: 0;
    transform: translateX(-60px);
}

.testimonial-quote {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 28px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.testimonial-stars {
    margin-left: auto;
    display: flex;
    gap: 3px;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.test-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.test-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background: var(--accent-primary);
    width: 30px;
    border-radius: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 50px;
    align-items: center;
}

/* ---- Left: 3D envelope wrapper ---- */
.contact-info-col {
    min-width: 0;
    overflow: hidden;
}

.contact-3d-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.contact-3d-container {
    width: min(360px, 100%);
    aspect-ratio: 1;
    perspective: 800px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.contact-glow-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    margin: -60px 0 0 -60px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: c3dGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes c3dGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.8); opacity: 1; }
}

/* Floating particles */
.contact-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0,212,255,0.6);
    animation: c3dParticle 5s ease-in-out infinite;
    pointer-events: none;
}
.cp1 { width:3px; height:3px; top:20%; left:15%; animation-duration:4s; }
.cp2 { width:2px; height:2px; top:75%; left:25%; animation-delay:1s; animation-duration:5s; background:rgba(120,80,255,0.5); }
.cp3 { width:4px; height:4px; top:30%; left:80%; animation-delay:2s; animation-duration:6s; }
.cp4 { width:2px; height:2px; top:85%; left:70%; animation-delay:.5s; animation-duration:4.5s; background:rgba(255,107,214,0.4); }
.cp5 { width:3px; height:3px; top:10%; left:60%; animation-delay:1.5s; animation-duration:5.5s; }
.cp6 { width:2px; height:2px; top:60%; left:90%; animation-delay:3s; animation-duration:4s; background:rgba(120,80,255,0.4); }

@keyframes c3dParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50%       { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

/* Scene */
.contact-3d-scene {
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: c3dSceneRotate 20s ease-in-out infinite;
}

@keyframes c3dSceneRotate {
    0%,100% { transform: rotateX(-10deg) rotateY(0deg); }
    25%      { transform: rotateX(5deg) rotateY(90deg); }
    50%      { transform: rotateX(-5deg) rotateY(180deg); }
    75%      { transform: rotateX(10deg) rotateY(270deg); }
}

.contact-3d-container:hover .contact-3d-scene {
    animation-play-state: paused;
}

/* Rings */
.c3d-ring {
    position: absolute;
    top: 50%; left: 50%;
    border: 2px solid;
    border-radius: 50%;
    transform-style: preserve-3d;
}
.c3d-ring-1 {
    width:200px; height:200px; margin:-100px 0 0 -100px;
    border-color: rgba(0,212,255,0.3);
    animation: c3dOrbit1 8s linear infinite;
}
.c3d-ring-2 {
    width:260px; height:260px; margin:-130px 0 0 -130px;
    border-color: rgba(120,80,255,0.25);
    animation: c3dOrbit2 12s linear infinite;
}
.c3d-ring-3 {
    width:320px; height:320px; margin:-160px 0 0 -160px;
    border-color: rgba(0,212,255,0.15);
    animation: c3dOrbit3 16s linear infinite;
}

@keyframes c3dOrbit1 { from { transform: rotateX(70deg) rotateZ(0deg); }   to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes c3dOrbit2 { from { transform: rotateX(50deg) rotateY(30deg) rotateZ(0deg); }   to { transform: rotateX(50deg) rotateY(30deg) rotateZ(-360deg); } }
@keyframes c3dOrbit3 { from { transform: rotateX(60deg) rotateY(-20deg) rotateZ(0deg); }  to { transform: rotateX(60deg) rotateY(-20deg) rotateZ(360deg); } }

/* Orbiting dots */
.c3d-dot {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
}
.c3d-dot-1 { width:8px; height:8px; background:#00d4ff; box-shadow:0 0 15px #00d4ff,0 0 30px rgba(0,212,255,.5); animation:c3dDot1 8s linear infinite; }
.c3d-dot-2 { width:6px; height:6px; background:#7850ff; box-shadow:0 0 12px #7850ff,0 0 25px rgba(120,80,255,.5); animation:c3dDot2 12s linear infinite; }
.c3d-dot-3 { width:5px; height:5px; background:#00d4ff; box-shadow:0 0 10px #00d4ff; animation:c3dDot3 6s linear infinite; }
.c3d-dot-4 { width:6px; height:6px; background:#ff6bd6; box-shadow:0 0 12px #ff6bd6; animation:c3dDot4 10s linear infinite; }

@keyframes c3dDot1 { from { transform: rotateX(70deg) rotateZ(0deg) translateX(100px) rotateZ(0deg); }   to { transform: rotateX(70deg) rotateZ(360deg) translateX(100px) rotateZ(-360deg); } }
@keyframes c3dDot2 { from { transform: rotateX(50deg) rotateY(30deg) rotateZ(0deg) translateX(130px); }   to { transform: rotateX(50deg) rotateY(30deg) rotateZ(-360deg) translateX(130px); } }
@keyframes c3dDot3 { from { transform: rotateX(80deg) rotateY(-40deg) rotateZ(0deg) translateX(80px); }   to { transform: rotateX(80deg) rotateY(-40deg) rotateZ(360deg) translateX(80px); } }
@keyframes c3dDot4 { from { transform: rotateX(40deg) rotateY(60deg) rotateZ(0deg) translateX(150px); }   to { transform: rotateX(40deg) rotateY(60deg) rotateZ(-360deg) translateX(150px); } }

/* Envelope */
.c3d-envelope {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    transform-style: preserve-3d;
    animation: c3dEnvFloat 4s ease-in-out infinite;
}
.c3d-envelope svg {
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.4));
    transition: filter 0.3s ease;
}
.contact-3d-container:hover .c3d-envelope svg {
    filter: drop-shadow(0 0 35px rgba(0,212,255,0.7));
}

@keyframes c3dEnvFloat {
    0%,100% { transform: translate(-50%,-50%) translateZ(0) translateY(0); }
    50%      { transform: translate(-50%,-50%) translateZ(30px) translateY(-15px); }
}

/* Info below 3D */
.contact-3d-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.contact-avail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ff88;
}

.avail-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(0.8); }
}

.contact-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
}

.contact-panel-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.contact-panel-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.contact-panel-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: var(--transition);
}

.contact-panel-socials a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

/* Contact Form */
.contact-form-col {
    min-width: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 4px;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: var(--bg-secondary);
    padding: 0 8px;
    transform: none;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-btn {
    align-self: flex-start;
    min-width: 200px;
    justify-content: center;
}

.form-status {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.form-status.error {
    display: block;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--accent-tertiary);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-3d-container {
        width: min(300px, 90vw);
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-3d-container {
        width: min(260px, 85vw);
    }
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.footer-cta .btn {
    margin-top: 30px;
}

.footer-bottom {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent-primary);
}

.footer-col p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent-primary);
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
    padding-left: 20px;
}

.footer-col ul li a:hover::before {
    left: 0;
    opacity: 1;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.back-to-top {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-copyright {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MAGNETIC BUTTON HOVER ===== */
.magnetic-btn {
    display: inline-flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 1200px) {
    .section { padding: 100px 0; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 50px; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
}

/* ===== TILT GLARE STYLING ===== */
.js-tilt-glare {
    border-radius: inherit;
}

/* ===== LOADING ANIMATION FOR CARDS ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== HOVER GLOW EFFECTS ===== */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    filter: blur(15px);
}

.glow-on-hover:hover::after {
    opacity: 0.6;
}

/* ===== TEXT STROKE EFFECT ===== */
.text-stroke {
    -webkit-text-stroke: 1px var(--accent-primary);
    -webkit-text-fill-color: transparent;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== GRADIENT BORDER ===== */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border: none;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-1);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.gradient-border:hover::before {
    opacity: 1;
}

/* ===== ANIMATED UNDERLINE ===== */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.4s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* ===== PULSE RING ===== */
@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== PARTICLE BACKGROUND STYLE ===== */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== AURORA BACKGROUND ===== */
.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
    animation: auroraMove 15s ease-in-out infinite alternate;
}

.aurora-bg::before {
    background: var(--accent-primary);
    top: -75%;
    left: -25%;
}

.aurora-bg::after {
    background: var(--accent-secondary);
    bottom: -75%;
    right: -25%;
    animation-delay: 5s;
    animation-direction: alternate-reverse;
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -3%) rotate(5deg); }
    66% { transform: translate(-3%, 3%) rotate(-3deg); }
    100% { transform: translate(2%, -2%) rotate(2deg); }
}

/* ===== MORPH BLOB ===== */
.morph-blob {
    animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 50% 70% 50%; }
    75% { border-radius: 60% 30% 60% 40% / 70% 50% 40% 60%; }
}

/* ===== WAVE ANIMATION ===== */
@keyframes waveAnimation {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* ===== SPOTLIGHT HOVER ===== */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.spotlight-card:hover::after {
    opacity: 1;
}

/* ===== SMOOTH SCROLLBAR ALTERNATIVE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .side-social, .side-email, .scroll-progress,
    .cursor, .cursor-follower, .noise-overlay,
    #three-container, #particle-canvas, .scroll-indicator,
    .back-to-top { display: none !important; }
    
    body { background: white; color: black; }
    .section { padding: 30px 0; }
}

/* ===== CERTIFICATES 3D COVERFLOW ===== */
.certificates-section {
    background: var(--bg-primary);
    overflow: hidden;
}

.cert-scene {
    position: relative;
    padding: 20px 0 50px;
}

/* Stage holds the 3D perspective */
.cert-stage {
    perspective: 1200px;
    perspective-origin: 50% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    position: relative;
}

/* ---- Individual card ---- */
.cert-card {
    position: absolute;
    width: 420px;
    max-width: 90vw;
    height: 290px;
    cursor: pointer;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.65s cubic-bezier(0.4, 0, 0.2, 1),
                filter    0.65s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    border-radius: var(--radius-lg);
}

.cert-card-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Animated gradient glow border on hover */
.cert-glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: var(--gradient-1);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.cert-card.active .cert-card-inner {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.2), 0 0 80px rgba(0, 212, 255, 0.1), 0 30px 80px rgba(0,0,0,0.6);
}

.cert-card.active .cert-glow {
    opacity: 0.35;
}

/* Image */
.cert-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover info overlay — slides up from bottom */
.cert-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 28px 24px 22px;
    background: linear-gradient(to top, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.85) 60%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-card.active:hover .cert-hover-info {
    transform: translateY(0);
}

.cert-card.active:hover .cert-img-wrap img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.cert-issuer {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-issuer i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Verify button — matches portfolio btn-primary style */
.cert-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 20px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.cert-verify-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cert-verify-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.55), 0 0 20px rgba(0, 212, 255, 0.3);
}

.cert-verify-btn:hover::before { opacity: 1; }

/* ---- Coverflow positions ---- */
/* Active = center */
.cert-card[data-pos="active"] {
    transform: translateX(0) translateZ(0) rotateY(0deg);
    opacity: 1;
    filter: brightness(1);
    z-index: 5;
}

/* Prev = left */
.cert-card[data-pos="prev"] {
    transform: translateX(-55%) translateZ(-180px) rotateY(28deg);
    opacity: 0.55;
    filter: brightness(0.55);
    z-index: 3;
}

/* Next = right */
.cert-card[data-pos="next"] {
    transform: translateX(55%) translateZ(-180px) rotateY(-28deg);
    opacity: 0.55;
    filter: brightness(0.55);
    z-index: 3;
}

/* Far left */
.cert-card[data-pos="far-prev"] {
    transform: translateX(-90%) translateZ(-320px) rotateY(42deg);
    opacity: 0.2;
    filter: brightness(0.3);
    z-index: 1;
}

/* Far right */
.cert-card[data-pos="far-next"] {
    transform: translateX(90%) translateZ(-320px) rotateY(-42deg);
    opacity: 0.2;
    filter: brightness(0.3);
    z-index: 1;
}

/* Hidden */
.cert-card[data-pos="hidden"] {
    transform: translateX(0) translateZ(-500px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* ---- Controls ---- */
.cert-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.cert-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.cert-nav-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: var(--glow-primary);
    transform: scale(1.1);
}

.cert-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.cert-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient-1);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* Clicking side cards navigates */
.cert-card[data-pos="prev"],
.cert-card[data-pos="next"],
.cert-card[data-pos="far-prev"],
.cert-card[data-pos="far-next"] {
    cursor: pointer;
}

/* Reflection effect under active card */
.cert-card[data-pos="active"]::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.25) 0%, transparent 70%);
    filter: blur(8px);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cert-stage { height: 260px; }
    .cert-card { width: 300px; height: 210px; }
    .cert-card[data-pos="prev"] { transform: translateX(-48%) translateZ(-120px) rotateY(22deg); }
    .cert-card[data-pos="next"] { transform: translateX(48%) translateZ(-120px) rotateY(-22deg); }
    .cert-card[data-pos="far-prev"],
    .cert-card[data-pos="far-next"] { opacity: 0; }
}
