/* 
   Azan Pirzada Portfolio
   Theme: Electric Blue + White + Black
   Enhanced with Animations
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ========================
   GLOBAL STYLES & RESET
========================= */
:root {
    /* Colors - Premium Dark Theme */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;

    /* Accents - Electric Cyan & Professional Blue */
    --accent: #00f2ff;
    /* Electric Cyan */
    --accent-glow: rgba(0, 242, 255, 0.4);
    --secondary: #007bff;
    /* Deep Blue for calmer elements */
    --accent-orange: #EE6C4D;
    /* Keeping strictly for CTAs if needed */

    --card-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    /* Legacy compat */
    --font-main: 'Inter', sans-serif;
    /* Legacy compat */

    --nav-height: 80px;
    --transition: all 0.3s ease;
    --cursor-size: 20px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* ========================
   LAYOUT & SPACING
========================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 8rem 0;
    /* Increased for airy, premium feel */
}

/* Alternating Backgrounds */
section:nth-child(even) {
    background-color: var(--bg-darker);
}

section:nth-child(odd) {
    background-color: var(--bg-dark);
}

/* Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 300;
}

.accent-text {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* Fallback */
    color: var(--accent);
}

/* ========================
   CURSOR - DISABLED, USING DEFAULT
========================= */
.cursor-dot,
.cursor-outline {
    display: none !important;
}

/* Magnetic Effect Class */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========================
   MARQUEE TEXT
========================= */
.marquee-container {
    position: absolute;
    width: 150%;
    left: -25%;
    bottom: 5%;
    transform: rotate(-3deg);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    color: var(--text-white);
    margin-right: 4rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================
   TYPOGRAPHY UPDATES
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================
   UTILITIES
========================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-darker);
}

.accent-text {
    color: var(--accent);
}

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

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   NAVIGATION 
========================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ========================
   HERO SECTION - Clean Black + Neon Blue
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: var(--bg-dark);
}

/* Subtle blue light sweep */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 100, 255, 0.02) 25%,
            rgba(0, 100, 255, 0.04) 50%,
            rgba(0, 100, 255, 0.02) 75%,
            transparent 100%);
    animation: gradientSweep 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientSweep {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50%);
    }
}

/* Premium background effects */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Soft glow beams behind hero - Deep Blue */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: #0040ff;
    opacity: 0.03;
    filter: blur(120px);
    will-change: transform;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    right: 10%;
    animation: slowDrift1 25s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 5%;
    animation: slowDrift2 30s ease-in-out infinite;
}

.circle-3 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 30%;
    animation: slowDrift3 20s ease-in-out infinite;
}

/* Floating particles - Deep Blue */
.hero-bg-effects::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(0, 80, 255, 0.3) 0%, transparent 50%),
        radial-gradient(1px 1px at 80% 20%, rgba(0, 80, 255, 0.2) 0%, transparent 50%),
        radial-gradient(1px 1px at 40% 70%, rgba(0, 80, 255, 0.25) 0%, transparent 50%),
        radial-gradient(1px 1px at 70% 80%, rgba(0, 80, 255, 0.2) 0%, transparent 50%),
        radial-gradient(1px 1px at 10% 60%, rgba(0, 80, 255, 0.15) 0%, transparent 50%),
        radial-gradient(1px 1px at 90% 50%, rgba(0, 80, 255, 0.2) 0%, transparent 50%);
    animation: particleDrift 40s linear infinite;
    opacity: 0.8;
}

@keyframes slowDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 15px) scale(1.02);
    }
}

@keyframes slowDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, -10px) scale(1.01);
    }
}

@keyframes slowDrift3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, 10px);
    }
}

@keyframes particleDrift {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* Hero Image - Cinematic Right Side */
.hero-image-section {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Neon accent lines */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    width: 3px;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.6;
    animation: neonPulse 4s ease-in-out infinite;
    z-index: 5;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 35%;
    width: 2px;
    height: 20%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.4;
    animation: neonPulse 4s ease-in-out infinite 1s;
    z-index: 5;
}

@keyframes neonPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Subtle fade on left edge only - image stays clear */
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.3) 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.3) 100%);
    animation: heroImageReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards, breathe 8s ease-in-out infinite 2s;
    transform-origin: center center;
}

@keyframes heroImageReveal {
    from {
        opacity: 0;
        transform: translateX(30px) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}

/* Removed heavy glow - keeping image clear */
.hero-image-glow {
    position: absolute;
    inset: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Hero Content - Split Layout */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    flex-shrink: 0;
}

/* ========================
   3D SPLINE ROBOT 
========================= */
.hero-robot {
    width: 550px;
    /* Wider to show left hand */
    height: 520px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Clip watermark and edges */

    /* Push robot container to the right */
    margin-right: -30px;

    /* Top/bottom vignette fade to blend into hero */
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 85%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 85%,
            transparent 100%);
}

.robot-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Entrance animation first, then floating */
    animation:
        robotEntrance 1.5s ease-out forwards,
        robotFloat 1.8s ease-out 1.5s infinite;
}

/* Glow behind robot */
.robot-glow {
    position: absolute;
    top: 45%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 380px;
    background: radial-gradient(ellipse at center,
            rgba(0, 100, 255, 0.12) 0%,
            rgba(0, 60, 255, 0.06) 40%,
            transparent 70%);
    filter: blur(50px);
    z-index: -1;
    /* Glow also fades in with entrance */
    opacity: 0;
    animation:
        glowEntrance 1.5s ease-out forwards,
        glowPulse 2s ease-in-out 1.5s infinite;
}

/* Spline Viewer - Positioned to push watermark out */
spline-viewer {
    width: 145%;
    height: 145%;
    border: none;
    background: transparent !important;
    position: relative;
    /* Less left offset = more visible on left side for hand */
    left: -10%;
    top: -18%;
    /* Scale down to keep hands/fingers inside frame */
    transform: scale(0.75);
    transform-origin: center center;
}

/* ENTRANCE ANIMATION - Robot rushing from distance */
@keyframes robotEntrance {
    0% {
        transform: scale(0.2) translateY(50px);
        opacity: 0;
    }

    60% {
        transform: scale(0.85) translateY(-5px);
        opacity: 1;
    }

    80% {
        transform: scale(0.78) translateY(2px);
    }

    100% {
        transform: scale(0.8) translateY(0);
        opacity: 1;
    }
}

/* Glow entrance */
@keyframes glowEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Floating animation - faster, subtle motion */
@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

/* Glow pulse animation */
@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.03);
    }
}

/* ========================
   RESPONSIVE - Hero & Robot
   Reusable breakpoint system
========================= */

/* CSS Variables for reusable robot settings */
:root {
    --robot-width: 550px;
    --robot-height: 520px;
    --robot-scale: 0.75;
    --robot-left-offset: -10%;
    --robot-top-offset: -18%;
}

/* Laptop (992–1199px): smaller robot, increased spacing */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-robot {
        width: 450px;
        height: 480px;
        margin-right: 0;
    }

    spline-viewer {
        transform: scale(0.68);
        left: -12%;
        top: -16%;
    }

    .robot-container {
        animation: robotFloat 2s ease-out infinite;
    }
}

/* Tablet (768–991px): stacked, robot centered, idle animation only */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-robot {
        width: 380px;
        height: 400px;
        margin: 0 auto;
    }

    spline-viewer {
        transform: scale(0.58);
        left: -18%;
        top: -18%;
    }

    /* Idle animation only - slower, minimal motion */
    .robot-container {
        animation: robotFloat 2.5s ease-in-out infinite;
    }

    @keyframes robotFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-6px);
        }
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile (<768px): stacked, small robot, minimal animation */
@media (max-width: 767px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        order: 1;
    }

    .hero-robot {
        width: 280px;
        height: 300px;
        margin: 1rem auto 0;
        order: 2;
    }

    spline-viewer {
        transform: scale(0.5);
        left: -22%;
        top: -20%;
    }

    /* Minimal animation for performance */
    .robot-container {
        animation: robotFloat 3s ease-in-out infinite;
    }

    .robot-glow {
        display: none;
        /* Hide glow on mobile for performance */
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small phones (<576px): Hide robot completely */
@media (max-width: 575px) {
    .hero-robot {
        display: none;
    }

    .hero-container {
        justify-content: center;
        min-height: 80vh;
    }

    .hero-content {
        padding: 1rem;
    }
}

/* ========================
   ACCESSIBILITY & PERFORMANCE
========================= */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .robot-container,
    .robot-glow,
    spline-viewer {
        animation: none !important;
        transition: none !important;
    }
}

/* Pause animation when off-screen (via JS class) */
.hero-robot.offscreen .robot-container {
    animation-play-state: paused;
}

/* Eye glow animation */
.eye {
    animation: eyeGlow 2s ease-in-out infinite;
}

@keyframes eyeGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px #00E5FF);
        opacity: 1;
    }

    50% {
        filter: drop-shadow(0 0 15px #00E5FF) drop-shadow(0 0 25px #00E5FF);
        opacity: 0.8;
    }
}

/* Chest light pulse */
.chest-light {
    animation: chestPulse 1.5s ease-in-out infinite;
}

@keyframes chestPulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px #00E5FF);
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 20px #00E5FF) drop-shadow(0 0 30px #00B3FF);
    }
}

/* Antenna blink */
.antenna-light {
    animation: antennaBlink 1s ease-in-out infinite;
}

@keyframes antennaBlink {

    0%,
    40%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px #00E5FF);
    }

    50%,
    60% {
        opacity: 0.3;
        filter: none;
    }
}

/* Right arm wave */
.right-arm {
    transform-origin: 172px 120px;
    animation: armWave 2.5s ease-in-out infinite;
}

@keyframes armWave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

/* Mouth expression */
.mouth {
    animation: mouthTalk 3s ease-in-out infinite;
}

@keyframes mouthTalk {

    0%,
    40%,
    60%,
    100% {
        width: 40px;
        opacity: 0.6;
    }

    45%,
    55% {
        width: 30px;
        opacity: 0.8;
    }
}

/* Head slight tilt */
.robot-head {
    transform-origin: center bottom;
    animation: headTilt 4s ease-in-out infinite;
}

@keyframes headTilt {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-3deg);
    }
}

/* Responsive: Stack on tablet/mobile */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-robot {
        width: 280px;
        height: 320px;
        margin-top: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ========================
   SPECTACULAR HERO ENTRANCE - WOW EFFECT
========================= */
.animate-text {
    opacity: 0;
    transform: translateY(100px);
    animation: wowReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.5s;
}

.delay-3 {
    animation-delay: 0.8s;
}

.delay-4 {
    animation-delay: 1.1s;
}

.delay-5 {
    animation-delay: 1.5s;
}

@keyframes wowReveal {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Hero name - always visible with simple animation */
.hero-name {
    opacity: 0;
    transform: translateY(30px);
    animation: nameReveal 1s ease-out 0.4s forwards;
}

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

/* Hero image dramatic slide-in from right */
.hero-image-section {
    animation: imageSlideIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes imageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(200px) scale(1.1);
        filter: blur(20px);
    }

    60% {
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* Buttons fly in from bottom */
.cta-buttons {
    animation: buttonsFloat 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

@keyframes buttonsFloat {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social links pop in one by one */
.social-links a {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: socialPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.social-links a:nth-child(1) {
    animation-delay: 1.6s;
}

.social-links a:nth-child(2) {
    animation-delay: 1.75s;
}

.social-links a:nth-child(3) {
    animation-delay: 1.9s;
}

@keyframes socialPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Greeting line extends */
.hero-greeting .line {
    width: 0;
    animation: lineExtend 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes lineExtend {
    0% {
        width: 0;
    }

    100% {
        width: 40px;
    }
}

/* Hero background dramatic fade */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, transparent 30%, rgba(10, 25, 47, 0.8) 70%);
    animation: bgReveal 2s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes bgReveal {
    0% {
        opacity: 1;
        background: rgba(10, 25, 47, 1);
    }

    100% {
        opacity: 1;
        background: radial-gradient(circle at 70% 50%, transparent 30%, rgba(10, 25, 47, 0.8) 70%);
    }
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-greeting .line {
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Label - "Hello, I'm Azan Pirzada" */
.hero-label {
    display: block;
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
}

.dynamic-text {
    color: var(--accent);
    font-weight: 600;
}

.cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-headline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 12px 0;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 8px 8px 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

/* Primary Button (Gradient) */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.5);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Remove old partial styles */
.cta-buttons {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 40px -15px rgba(238, 108, 77, 0.5),
        0 0 20px rgba(238, 108, 77, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(125, 249, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -15px rgba(125, 249, 255, 0.4);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

/* Hero Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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


/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ========================
   ABOUT SECTION
========================= */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.about-image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: 0;
}

.about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========================
   SKILLS SECTION - CATEGORIZED
========================= */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category:hover {
    border-color: rgba(125, 249, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.category-title ion-icon {
    font-size: 1.2rem;
}

.category-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item-thin {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
}

.skill-percent {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.skill-bar-thin {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress-thin {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 4px;
    width: 0;
    /* Animated via JS */
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Skills categories responsive */
@media (max-width: 992px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #0078ff);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s ease-out;
}

/* ========================
   AREAS OF FOCUS SECTION
========================= */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.focus-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125, 249, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.focus-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15),
        0 0 30px rgba(125, 249, 255, 0.08);
}

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

.focus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.focus-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.focus-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Focus grid responsive */
@media (max-width: 1024px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .focus-card {
        padding: 1.5rem 1.25rem;
    }

    .focus-icon {
        font-size: 2.5rem;
    }
}

/* ========================
   SKILLS EXPLAINED CARDS
========================= */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.skill-detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-detail-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2),
        0 0 30px rgba(100, 255, 218, 0.1);
}

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

.skill-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.skill-detail-card:nth-child(2) .skill-card-icon {
    animation-delay: 0.3s;
}

.skill-detail-card:nth-child(3) .skill-card-icon {
    animation-delay: 0.6s;
}

.skill-detail-card:nth-child(4) .skill-card-icon {
    animation-delay: 0.9s;
}

.skill-detail-card:nth-child(5) .skill-card-icon {
    animation-delay: 1.2s;
}

.skill-detail-card:nth-child(6) .skill-card-icon {
    animation-delay: 1.5s;
}

.skill-detail-card:nth-child(7) .skill-card-icon {
    animation-delay: 1.8s;
}

.skill-detail-card:nth-child(8) .skill-card-icon {
    animation-delay: 2.1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.skill-detail-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.skill-detail-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.skill-detail-card:hover .learn-more {
    gap: 8px;
}

/* Responsive for skills cards */
@media (max-width: 1024px) {
    .skills-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .skills-cards-grid {
        grid-template-columns: 1fr;
    }

    .skill-card-icon {
        font-size: 2.5rem;
    }
}

/* ========================
   EXPERIENCE SECTION - REFINED
========================= */
.experience-timeline {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-card {
    display: block;
    /* Force block context */
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
}

.exp-role-group h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.exp-company {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-meta {
    text-align: right;
    font-family: var(--font-body);
}

.exp-date {
    display: block;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.exp-type {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-bullets {
    list-style: none;
    margin-bottom: 2rem;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.exp-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    top: -2px;
}

.exp-footer {
    background: rgba(255, 255, 255, 0.03);
    margin: -2.5rem -2.5rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exp-outcome {
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    color: var(--text-white);
}

.outcome-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.exp-skills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.exp-skill-tag {
    background: transparent;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
}

.experience-card:hover .exp-skill-tag {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.exp-bullets li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.exp-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Footer: Outcome & Skills */
.exp-footer {
    background: rgba(0, 0, 0, 0.2);
    margin: -1.75rem -1.75rem -1.75rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--card-border);
    margin-top: 1rem;
}

.exp-outcome {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-left: 10px;
    border-left: 3px solid var(--accent-orange);
}

.outcome-label {
    color: var(--accent-orange);
    font-weight: 700;
    margin-right: 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.exp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-skill-tag {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(125, 249, 255, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(125, 249, 255, 0.15);
    font-weight: 500;
    transition: var(--transition);
}

.experience-card:hover .exp-skill-tag {
    background: rgba(125, 249, 255, 0.12);
    border-color: rgba(125, 249, 255, 0.3);
}

/* Responsive Experience */
@media (max-width: 600px) {
    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exp-meta {
        text-align: left;
        flex-direction: row;
        gap: 10px;
        opacity: 0.8;
    }
}

/* ========================
   CERTIFICATES
========================= */
.certificates-wrapper {
    position: relative;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.certificates-wrapper.collapsed {
    max-height: 400px;
    /* Show roughly one row */
}

.certificates-wrapper.expanded {
    max-height: 2000px;
}

.certificates-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-darker));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.certificates-wrapper.expanded .certificates-fade {
    opacity: 0;
}

.certificates-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

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

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px var(--accent-glow);
}

.cert-image {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cert-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.cert-image-preview {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cert-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-card:hover .cert-image-preview img {
    transform: scale(1.05);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.cert-link:hover {
    text-decoration: underline;
}

/* ========================
   PROJECTS - Compact Landscape Layout
========================= */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    max-width: 650px;
    width: 100%;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px var(--accent-glow);
}

/* Project Visual - Left side */
.project-visual {
    width: 240px;
    min-width: 240px;
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-visual video,
.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    position: relative;
}

.project-video {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--text-white);
}

/* Project Info - Right side */
.project-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

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

.project-tags span {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Project Impact Line */
.project-impact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--accent);
    padding-top: 0.5rem;
    border-top: 1px solid var(--card-border);
}

.project-impact .impact-icon {
    font-size: 0.85rem;
}

/* Mobile: Stack vertically */
@media (max-width: 600px) {
    .project-card {
        flex-direction: column;
        max-width: 100%;
    }

    .project-visual {
        width: 100%;
        min-width: 100%;
        height: 140px;
    }
}

/* ========================
   REVIEWS SECTION
========================= */
.review-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.review-form-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.review-form-info>p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    background: rgba(125, 249, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(125, 249, 255, 0.1);
}

.review-note ion-icon {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
}

/* Reviews Page Styles */
.reviews-page-header {
    padding: calc(var(--nav-height) + 60px) 0 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.reviews-page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.review-card:hover {
    border-color: rgba(125, 249, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.review-quote-icon {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.review-author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.15rem;
}

.review-role {
    font-size: 0.8rem;
    color: var(--accent);
}

.reviews-cta {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.reviews-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Review form responsive */
@media (max-width: 768px) {
    .review-form-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========================
   CONTACT 
========================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-item ion-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-socials a {
    font-size: 1.3rem;
    color: var(--text-muted);
}

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

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px -5px var(--accent-glow);
}

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

/* Form status messages */
.form-status {
    margin-top: 1rem;
    padding: 0;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-status.success,
.form-status.error {
    opacity: 1;
    transform: translateY(0);
    padding: 12px 16px;
}

.form-status.success {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-status.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Button loading state */
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================
   FOOTER 
========================= */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================
   SCROLL ANIMATIONS - Optimized
========================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   RESPONSIVE 
========================= */
@media (max-width: 992px) {
    .hero-image-section {
        width: 100%;
        opacity: 0.3;
    }

    .hero-img {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-greeting {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .section-padding {
        padding: 60px 0;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================
   SCROLL-TRIGGERED ANIMATIONS
========================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Horizontal reveal for alternating items */
.about-image.animate-on-scroll {
    transform: translateX(-100px) rotate(-5deg);
    opacity: 0;
}

.about-image.animate-on-scroll.visible {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
}

.about-content.animate-on-scroll {
    transform: translateX(100px);
    opacity: 0;
}

.about-content.animate-on-scroll.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered cascade for grids */
.skills-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.skills-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.15s;
}

.skills-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.skills-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.45s;
}

.skills-grid .animate-on-scroll:nth-child(5) {
    transition-delay: 0.6s;
}

.skills-grid .animate-on-scroll:nth-child(6) {
    transition-delay: 0.75s;
}

.certs-grid .animate-on-scroll,
.certs-grid .cert-card {
    transform: translateY(60px) rotateX(15deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
}

.certs-grid .animate-on-scroll.visible,
.certs-grid .cert-card.visible {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}

.certs-grid .animate-on-scroll:nth-child(1),
.certs-grid .cert-card:nth-child(1) {
    transition-delay: 0.05s;
}

.certs-grid .animate-on-scroll:nth-child(2),
.certs-grid .cert-card:nth-child(2) {
    transition-delay: 0.1s;
}

.certs-grid .animate-on-scroll:nth-child(3),
.certs-grid .cert-card:nth-child(3) {
    transition-delay: 0.15s;
}

.certs-grid .animate-on-scroll:nth-child(4),
.certs-grid .cert-card:nth-child(4) {
    transition-delay: 0.2s;
}

.certs-grid .animate-on-scroll:nth-child(5),
.certs-grid .cert-card:nth-child(5) {
    transition-delay: 0.25s;
}

.certs-grid .animate-on-scroll:nth-child(6),
.certs-grid .cert-card:nth-child(6) {
    transition-delay: 0.3s;
}

.certs-grid .animate-on-scroll:nth-child(7),
.certs-grid .cert-card:nth-child(7) {
    transition-delay: 0.35s;
}

.certs-grid .animate-on-scroll:nth-child(8),
.certs-grid .cert-card:nth-child(8) {
    transition-delay: 0.4s;
}

.certs-grid .animate-on-scroll:nth-child(9),
.certs-grid .cert-card:nth-child(9) {
    transition-delay: 0.45s;
}

/* Section headers dramatic reveal */
.section-header.animate-on-scroll {
    transform: translateY(60px);
    opacity: 0;
}

.section-header.animate-on-scroll.visible {
    transform: translateY(0);
    opacity: 1;
}

.section-header.animate-on-scroll h2 {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-header.animate-on-scroll.visible h2 {
    clip-path: inset(0 0 0 0);
}

/* ========================
   PREMIUM 3D CARD HOVER
========================= */
.cert-card,
.project-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.cert-card:hover,
.project-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    box-shadow: 0 40px 80px -20px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(100, 255, 218, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glowing border on hover */
.cert-card::before,
.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.cert-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}

/* Skill bars dramatic fill */
.skill-progress {
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* About image dramatic entrance */
.about-image.visible img {
    animation: dramaticReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dramaticReveal {
    0% {
        filter: brightness(0) blur(20px);
        transform: scale(1.2) rotate(-5deg);
    }

    50% {
        filter: brightness(1.2) blur(5px);
    }

    100% {
        filter: brightness(1) blur(0);
        transform: scale(1) rotate(0deg);
    }
}

/* Floating animation for hero elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-content .btn {
    animation: float 4s ease-in-out infinite;
}

.hero-content .btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* Pulsing glow for accent elements */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(100, 255, 218, 0.6),
            0 0 60px rgba(100, 255, 218, 0.3);
    }
}

.btn-primary {
    /* Static glow instead of animated for better performance */
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

/* ========================
   GLOBAL PERFORMANCE OPTIMIZATIONS
========================= */
/* Disable heavy continuous animations on all devices for smoother experience */
.hero-content .btn {
    animation: none;
}

.floating-circle {
    opacity: 0.3;
    /* Reduce opacity instead of hiding */
    animation: none;
}

.skill-card-icon {
    animation: none;
}

/* Hardware acceleration for smooth scrolling */
.animate-on-scroll {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smoother transitions globally */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Disable hero image breathing animation for faster rendering */
.hero-img {
    animation: heroImageReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* Removed breathe animation */
}

/* ========================
   MOBILE PERFORMANCE OPTIMIZATIONS
========================= */
@media (max-width: 768px) {

    /* Disable heavy continuous animations on mobile */
    .hero-content .btn {
        animation: none;
    }

    .btn-primary {
        animation: none;
    }

    .floating-circle {
        display: none;
        /* Hide background effects on mobile */
    }

    .hero-bg-effects::after {
        display: none;
        /* Hide particles */
    }

    .skill-card-icon {
        animation: none;
        /* No floating effect */
    }

    .hero-image-wrapper::before,
    .hero-image-wrapper::after {
        display: none;
        /* Hide neon lines */
    }

    .marquee-container {
        display: none;
        /* Hide marquee on mobile */
    }

    /* Simpler scroll animations */
    .animate-on-scroll {
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Reduce blur effects */
    .hero-img {
        animation: none;
        filter: none;
    }

    /* Disable shimmer on skill bars */
    .skill-progress::after,
    .skill-progress-thin::after {
        display: none;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}