/* ============================================
   TWALE JAMES M - Portfolio Styles
   Author: Twale James M
   Description: Modern, comprehensive portfolio styles
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --primary-light: #8b83ff;
    --secondary: #ff6584;
    --accent: #00d9a6;
    --dark: #0a0a1a;
    --dark-2: #12122a;
    --dark-3: #1a1a3e;
    --dark-card: #16163a;
    --text: #e0e0ff;
    --text-light: #a0a0c0;
    --text-muted: #6a6a8a;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6c63ff, #ff6584);
    --gradient-2: linear-gradient(135deg, #00d9a6, #6c63ff);
    --gradient-3: linear-gradient(135deg, #ff6584, #ffb347);
    --shadow-sm: 0 2px 20px rgba(108, 99, 255, 0.1);
    --shadow-md: 0 8px 40px rgba(108, 99, 255, 0.15);
    --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
}

.section-label::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

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

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.animated-bg .orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.animated-bg .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.animated-bg .orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(80px, 50px) scale(1.05); }
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

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

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 4px solid transparent;
    border-bottom: 4px solid var(--accent);
    border-left: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-logo .logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-back-link:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.nav-cta {
    padding: 10px 28px;
    background: var(--gradient-1);
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

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

.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

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

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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(--primary-light);
    margin-bottom: 25px;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.typing-wrapper {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 25px;
    min-height: 40px;
}

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

.typing-wrapper .cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

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

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

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(108, 99, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.2);
}

.hero-image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-1) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 8s linear infinite;
    z-index: 1;
}

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

.hero-image-orb {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(108, 99, 255, 0.15), transparent 70%);
    z-index: 0;
    animation: pulse-orb 4s ease-in-out infinite;
}

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

.floating-badge {
    position: absolute;
    background: rgba(22, 22, 58, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.floating-badge .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.floating-badge .badge-icon.graphics { background: rgba(255, 101, 132, 0.2); color: var(--secondary); }
.floating-badge .badge-icon.web { background: rgba(108, 99, 255, 0.2); color: var(--primary); }
.floating-badge .badge-icon.app { background: rgba(0, 217, 166, 0.2); color: var(--accent); }
.floating-badge .badge-icon.network { background: rgba(255, 179, 71, 0.2); color: #ffb347; }

.floating-badge .badge-text small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-badge .badge-text span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.floating-badge:nth-child(1) { top: 10%; right: -10%; animation-delay: 0s; }
.floating-badge:nth-child(2) { bottom: 15%; left: -10%; animation-delay: -2s; }
.floating-badge:nth-child(3) { top: 50%; left: -15%; animation-delay: -4s; }

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.about-image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: 1;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    text-align: center;
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.about-experience .exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.about-experience .exp-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.about-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(22, 22, 58, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-detail-item .detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.about-detail-item .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.about-detail-item .detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    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 {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

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

.service-card .service-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:nth-child(1) .service-icon { background: rgba(108, 99, 255, 0.1); color: var(--primary); }
.service-card:nth-child(2) .service-icon { background: rgba(255, 101, 132, 0.1); color: var(--secondary); }
.service-card:nth-child(3) .service-icon { background: rgba(0, 217, 166, 0.1); color: var(--accent); }
.service-card:nth-child(4) .service-icon { background: rgba(255, 179, 71, 0.1); color: #ffb347; }

.service-card:hover .service-icon {
    background: var(--gradient-1);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 20px;
    transition: var(--transition);
}

.service-card:hover .service-link {
    gap: 12px;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 10px 22px;
    background: rgba(22, 22, 58, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--gradient-1);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.skill-bar-item {
    margin-bottom: 22px;
}

.skill-bar-item .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-bar-item .skill-info span:first-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.skill-bar-item .skill-info span:last-child {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
}

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-1);
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== PORTFOLIO/PROJECTS SECTION ===== */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 30px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item .portfolio-thumb {
    width: 100%;
    height: 240px;
    background: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-item .portfolio-thumb .placeholder-icon {
    font-size: 3rem;
    opacity: 0.2;
    color: var(--primary);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-overlay .overlay-links {
    display: flex;
    gap: 15px;
}

.portfolio-overlay .overlay-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.portfolio-item:hover .overlay-link {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .overlay-link:nth-child(2) { transition-delay: 0.1s; }

.portfolio-overlay .overlay-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.portfolio-item .portfolio-info {
    padding: 20px 25px;
}

.portfolio-item .portfolio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--white);
}

.portfolio-item .portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 10px;
}

.testimonial-content {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-content .quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 15px;
}

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

.testimonial-content .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.testimonial-content .testimonial-author .author-name {
    font-weight: 700;
    color: var(--white);
}

.testimonial-content .testimonial-author .author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

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

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateX(5px);
}

.contact-info-item .contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item .contact-detail h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--white);
}

.contact-info-item .contact-detail p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

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

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

.form-group .input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
    }
    .hero-description {
        margin: 0 auto 35px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    .floating-badge:nth-child(1) { right: 5%; }
    .floating-badge:nth-child(2) { left: 5%; }
    .floating-badge:nth-child(3) { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        padding: 40px;
    }
    .nav-links.open {
        right: 0;
    }
    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .typing-wrapper {
        font-size: 1.2rem;
    }
    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }
    .floating-badge { display: none; }

    .section-title {
        font-size: 2rem;
    }
    .section {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .about-details {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .container {
        padding: 0 15px;
    }
    .contact-form {
        padding: 25px;
    }
}
