/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Design Tokens ===== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #6c7ff2;
    --accent: #00d4ff;
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --bg: #f8f9fa;
    --bg-alt: #ffffff;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --border: rgba(67, 97, 238, 0.12);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 30px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.12);
    --shadow-glow: 0 10px 40px rgba(67, 97, 238, 0.25);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
    position: relative;
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-family: inherit;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.btn:hover::before {
    opacity: 1;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn.primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 30px rgba(67, 97, 238, 0.45);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.btn.secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.25);
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.6);
    animation: ripple-anim 0.7s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Header ===== */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    animation: header-slide 0.8s var(--ease) both;
}

@keyframes header-slide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    transition: padding 0.3s ease;
}

header.scrolled .container {
    padding: 12px 0;
}

.logo h2 {
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease);
}

.logo:hover h2 {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

nav ul {
    display: flex;
    gap: 32px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 500;
    color: var(--text);
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s var(--ease);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s ease, top 0.4s var(--ease);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { top: 100%; transform: translateY(-100%); }

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #1a1a2e 100%);
    color: white;
    padding: 200px 0 140px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: float-blob 12s ease-in-out infinite;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
    top: -120px;
    left: -120px;
}

.hero::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #f72585 0%, transparent 70%);
    bottom: -120px;
    right: -120px;
    animation-delay: -6s;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero .floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    animation: float-up 15s linear infinite;
}

.hero .floating-shape.s1 { width: 20px; height: 20px; left: 10%; top: 80%; animation-duration: 18s; }
.hero .floating-shape.s2 { width: 12px; height: 12px; left: 25%; top: 90%; animation-duration: 14s; animation-delay: -3s; }
.hero .floating-shape.s3 { width: 18px; height: 18px; left: 70%; top: 85%; animation-duration: 20s; animation-delay: -7s; }
.hero .floating-shape.s4 { width: 14px; height: 14px; left: 85%; top: 95%; animation-duration: 16s; animation-delay: -2s; }
.hero .floating-shape.s5 { width: 22px; height: 22px; left: 50%; top: 100%; animation-duration: 22s; animation-delay: -10s; }

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease) 0.2s forwards;
}

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

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

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: hero-fade-up 0.9s var(--ease) 0.4s forwards;
}

.hero-content h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(8deg);
    animation: word-rise 0.8s var(--ease) forwards;
}

.hero-content h1 .word:nth-child(1) { animation-delay: 0.5s; }
.hero-content h1 .word:nth-child(2) { animation-delay: 0.6s; }
.hero-content h1 .word:nth-child(3) { animation-delay: 0.7s; }
.hero-content h1 .word:nth-child(4) { animation-delay: 0.8s; }
.hero-content h1 .word:nth-child(5) { animation-delay: 0.9s; }
.hero-content h1 .word:nth-child(6) { animation-delay: 1.0s; }

@keyframes word-rise {
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 .accent {
    background: linear-gradient(135deg, #00d4ff, #f72585);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0;
    animation: hero-fade-up 0.9s var(--ease) 1.1s forwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-fade-up 0.9s var(--ease) 1.3s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    animation: hero-fade-up 0.9s var(--ease) 1.6s forwards;
}

.scroll-indicator .mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 14px auto 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s var(--ease);
}

.section-header.visible h2::after {
    transform: scaleX(1);
}

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

/* ===== Services Section ===== */
.services {
    padding: 110px 0;
    background-color: var(--bg-alt);
    position: relative;
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
    will-change: transform;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.04), rgba(0, 212, 255, 0.04));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(67, 97, 238, 0.1), transparent 30%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate-glow 4s linear infinite;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67, 97, 238, 0.2);
}

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

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

@keyframes rotate-glow {
    to { transform: rotate(360deg); }
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 20px;
    position: relative;
    transition: transform 0.5s var(--ease-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-6deg);
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-glow);
}

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

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

/* ===== About Section ===== */
.about {
    padding: 110px 0;
    background-color: var(--bg);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-top: 14px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
}

.about-text.visible h2::after {
    transform: scaleX(1);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.stat-item {
    padding: 22px 18px;
    background: var(--card-bg);
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(0, 212, 255, 0.15));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 110px 0;
    background-color: var(--bg-alt);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.portfolio-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    will-change: transform;
    transform-style: preserve-3d;
}

.portfolio-item:hover {
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
    will-change: transform;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(67, 97, 238, 0.4) 50%, transparent 100%);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease) 0.05s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(20px);
    transition: transform 0.5s var(--ease) 0.1s;
}

.portfolio-overlay .tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .tag {
    transform: translateY(0);
}

/* ===== Contact Section ===== */
.contact {
    padding: 110px 0;
    background-color: var(--bg);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(67, 97, 238, 0.3);
}

.contact-item .icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-bounce);
}

.contact-item:hover .icon-wrap {
    transform: scale(1.1) rotate(-8deg);
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.contact-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--card-bg);
    padding: 36px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
    background: white;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
    transform: translateX(8px);
}

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

.contact-form .btn {
    align-self: flex-start;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 70px 0 24px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

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

.footer-logo h2 {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 14px;
}

.footer-logo h2 span,
.footer-logo h2 {
    background: linear-gradient(135deg, #00d4ff, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: white;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--accent);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(8px);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-4px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent), #f72585);
    z-index: 1100;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-bounce), box-shadow 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 30px rgba(67, 97, 238, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== Custom Cursor Glow (desktop) ===== */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-out;
    mix-blend-mode: screen;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .cursor-glow { display: none; }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        transition: right 0.5s var(--ease);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding-top: 90px;
    }

    nav.active {
        right: 0;
    }

    nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    nav.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    nav ul li a {
        display: block;
        padding: 16px 0;
    }

    .hero {
        padding: 160px 0 100px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo p {
        margin: 0 auto;
    }

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

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 0 80px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ===== Add3M Top-Left Button ===== */
.add3m-button {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1200;
    background: linear-gradient(135deg, rgba(67,97,238,0.12), rgba(0,212,255,0.06));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 22px rgba(26,26,46,0.14), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
    backdrop-filter: blur(6px);
}

.add3m-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.add3m-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(67,97,238,0.14);
}

@media (max-width: 576px) {
    .add3m-button {
        top: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
    }
}
