:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --terminal-green: #10b981;
    --terminal-yellow: #f59e0b;
    --terminal-red: #ef4444;
    --terminal-blue: #3b82f6;
    --terminal-purple: #8b5cf6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(5deg); 
    }
    66% { 
        transform: translateY(10px) rotate(-5deg); 
    }
}

@keyframes floatRandom {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 75px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.8); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

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

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

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

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

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes photoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.05); }
}

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

@keyframes mobilePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-3);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatRandom 20s infinite linear;
}

.triangle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.square {
    width: 50px;
    height: 50px;
    background: var(--accent);
    top: 30%;
    left: 85%;
    animation-delay: -10s;
}

.hexagon {
    width: 45px;
    height: 45px;
    background: var(--danger);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 70%;
    left: 15%;
    animation-delay: -15s;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

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

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.terminal-toggle {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.terminal-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    color: var(--light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(10px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-top: 1rem;
}

/* ===== HERO SECTION ===== */
.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.badge-text {
    position: relative;
}

.badge-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--secondary);
    margin-left: 2px;
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--secondary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--gray);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.stat:hover::before {
    opacity: 1;
    height: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 2s ease;
}

.stat-number.counted::after {
    width: 100%;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Profile Photo */
.profile-photo-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px;
    position: relative;
    z-index: 3;
    animation: photoFloat 6s ease-in-out infinite;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--darker);
    transition: all 0.3s ease;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 4px solid var(--darker);
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(20px);
    opacity: 0.3;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

.photo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--secondary);
    z-index: 2;
    animation: rotateRing 8s linear infinite;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: float-enhanced 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-card:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.card-1 {
    top: 10%;
    left: -20%;
}

.card-2 {
    top: 70%;
    right: -20%;
}

.card-3 {
    bottom: 10%;
    left: 10%;
}

/* Code Window */
.code-window {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.window-header {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control.red { background: var(--danger); }
.control.red:hover { background: #dc2626; }

.control.yellow { background: var(--accent); }
.control.yellow:hover { background: #d97706; }

.control.green { background: var(--secondary); }
.control.green:hover { background: #059669; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gray);
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.5);
}

.code-line {
    margin-bottom: 0.5rem;
    animation: typeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }

@keyframes typeIn {
    to { opacity: 1; transform: translateX(0); }
}

.code-comment { color: var(--gray); font-style: italic; }
.code-keyword { color: var(--primary); }
.code-variable { color: var(--secondary); }
.code-string { color: var(--accent); }
.code-function { color: #e879f9; }

/* ===== PROJECTS SECTION ===== */
.projects-section {
    background: rgba(15, 23, 42, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.project-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--light);
}

.project-status {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.status-badge, .role-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.role-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin: 3rem 0;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    left: 50%;
}

.timeline-content {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(-10px);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.achievements-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements-list strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.achievements-list ul {
    list-style: none;
    padding-left: 0;
}

.achievements-list li {
    color: var(--gray);
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.achievements-list li::before {
    content: '▸';
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--primary);
    border: 4px solid var(--darker);
    top: 2rem;
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 2s infinite;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    right: auto;
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-section {
    background: rgba(30, 41, 59, 0.7);
}

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

.achievement-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.achievement-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.achievement-card h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.achievement-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.achievement-org {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievement-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Certificate Modal Styles for Images */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
    animation: modalSlideIn 0.3s ease;
}

.certificate-container {
    background: var(--darker);
    border-radius: 15px;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.certificate-title {
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.certificate-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.certificate-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.certificate-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.close-btn:hover {
    background: var(--danger);
}

.certificate-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Certificate Image Container */
.certificate-image-container {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.certificate-image-container:active {
    cursor: grabbing;
}

.certificate-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light);
    z-index: 1;
}

.certificate-loader .loading-spinner {
    margin: 0 auto 1rem;
}

.certificate-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0;
    transform-origin: center center;
}

.certificate-img.zoomed {
    cursor: grab;
}

.zoom-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-image-container:hover .zoom-overlay {
    opacity: 1;
}

.zoom-text {
    font-family: var(--font-mono);
}

/* Certificate Info Sidebar */
.certificate-info {
    width: 350px;
    background: rgba(30, 41, 59, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.certificate-details h4 {
    color: var(--light);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.certificate-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.certificate-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

/* Updated Achievement Cards */
.achievement-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.achievement-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.achievement-card h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.achievement-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.achievement-org {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.achievement-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.achievement-actions {
    margin-top: auto;
}

.view-certificate-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.view-certificate-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .certificate-content {
        flex-direction: column;
    }
    
    .certificate-info {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .certificate-actions {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .certificate-modal {
        padding: 0.5rem;
    }
    
    .certificate-container {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .certificate-header {
        padding: 1rem 1.5rem;
    }
    
    .certificate-info {
        padding: 1.5rem;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificate-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .certificate-controls {
        justify-content: center;
    }
    
    .certificate-info {
        padding: 1rem;
    }
    
    .certificate-details h4 {
        font-size: 1.1rem;
    }
}


/* ===== ARCHITECTURE SECTION ===== */
.architecture-section {
    background: rgba(15, 23, 42, 0.7);
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.arch-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.arch-layer:hover::before {
    transform: translateX(100%);
}

.arch-layer:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.arch-layer h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.arch-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.arch-service {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.arch-service:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}/* --- Certificate Button & Modal Styles --- */

/* Button on the card */
.btn-view-cert {
    background-color: rgba(0, 255, 200, 0.1); /* Subtle vibrant background */
    border: 1px solid rgba(0, 255, 200, 0.5);
    color: #00ffc8; /* Vibrant text */
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.btn-view-cert:hover {
    background-color: rgba(0, 255, 200, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Modal Overlay */
.certificate-modal-overlay {
    position: fixed;
    top: 0;
    left: 30px,center;
    width: 100%;
    height: 100%;
    padding: 16px; 
    place-self: center;
    align-self: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
    
    /* --- THESE ARE THE KEY LINES --- */
    display: flex;
    align-items: center;
    justify-content: center;
    /* --- END KEY LINES --- */

    /* Add padding just in case, for small screens */
    padding: 16px; 
}

/* Modal Fade-out Animation */
.certificate-modal-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

/* The Modal Box */
.certificate-modal {
    background: #1e1e2f; /* Dark, modern background */
    border: 2px solid #8ff007;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 900px; /* Max width for large certificates */
    max-height: 90vh; /* Max height */
    display: flex;
    justify-self: center;
     position: relative;
    align-self: center;
    flex-direction: column;
    overflow: hidden;
    animation: flipIn 0.5s cubic-bezier(0.38, 0.95, 0.32, 1.1) forwards;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25em;
    color: #fd7d05;
}

.modal-close-btn {
    background: rgb(10, 24, 217);
    border: none;
    border-radius: 50%;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    margin: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}


.modal-body img {
    max-width: 100%;
    max-height: 100%;
    width: fit-content;
    height: auto;
    border-radius: 4px;
    border: 1px solid #444;
}

/* Modal Footer (Buttons) */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #333;
    background: #252538; /* Slightly different bg for footer */
}

/* Shared Modal Button Style */
.btn-modal-download,
.btn-modal-share {
    --vibrant-color: #00ffc8; /* Main accent color */
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-download {
    background: var(--vibrant-color);
    color: #111;
}

.btn-modal-download:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--vibrant-color);
}

.btn-modal-share {
    background: #333;
    color: #eee;
}

.btn-modal-share:hover {
    background: #444;
    color: #fff;
}
/* --- New 3D Flip-In Animation --- */
@keyframes flipIn {
  from {
    opacity: 0;
    /* Starts from 90deg (invisible) and smaller */
    transform: perspective(1000px) rotateY(90deg) scale(0.8);
  }
  to {
    opacity: 1;
    /* Flips to 0deg (facing you) and full size */
    transform: perspective(1000px) rotateY(0deg) scale(1);
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .modal-header {
        padding: 12px 16px;
    }
    .modal-header h3 {
        font-size: 1.1em;
    }
    .modal-body {
        padding: 12px;
    }
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    .btn-modal-download,
    .btn-modal-share {
        width: 100%;
        justify-content: center;
    }
}

.modal-body .certificate-image,
.modal-body .certificate-iframe {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-body .certificate-image:hover,
.modal-body .certificate-iframe:hover {
    /* This creates a subtle 3D tilt */
    transform: scale(1.02) perspective(1500px) rotateY(4deg) rotateX(2deg);
    
    /* This adds a 'vibrant' glow matching your buttons */
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
}

/* ---  Styles for PDF/Image Modal --- */

/* This makes the modal wider for PDFs */
.certificate-modal.pdf-modal {
    width: 90%;
    align-self: center;
    max-width: 1000px; /* Wider for PDFs */
    height: 90vh; /* Taller for PDFs */
}

/* This is the new <iframe> style */
.certificate-iframe {
    width: 100%;
    height: 100%;
     width: fit-content;
    border: none;
    align-self: center;
    border-radius: 4px; /* Match image style */
}

/* This is the <img> style */
.certificate-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #444;
}

/* Modal Body (Image Container) */
.modal-body {
    padding: 24px;
    overflow-y: auto; 
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- New Background Properties --- */
    
    /* 1. Set your fallback color (in case image fails) */
    background-color: #433e04; 
    
    /* 2. Set your image path (DOUBLE-CHECK THIS PATH) */
    background-image: url(/docs/files/congrats_bg.jpg);
    
    /* 3. Add these properties to make it cover the area */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* Responsive adjustment for PDF iframe */
@media (max-width: 600px) {
    .modal-body {
        padding: 12px;
    }

    .certificate-modal.pdf-modal {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
.certificate-modal {
    margin-left: 0%;
}
}
/* Container for the "Load More" button */
.achievements-controls {
    text-align: center; /* This correctly centers the button */
    margin-top: 32px; 
    /* 'align-self' is not needed here */
}

.btn-load-more {
    background-color: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.5);
    color: #00ffc8; 
    padding: 12px 32px;
    border-radius: 4px;
    cursor: pointer;
    position: relative; 
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none; 

    /* --- USE ANIMATION INSTEAD OF SHADOW --- */
    animation: pulse-glow 3s infinite ease-in-out;
}

.btn-load-more:hover {
    background-color: rgba(0, 255, 200, 0.2);
    
    /* We can slightly boost the brightness on hover, 
       but the animation is already doing most of the work */
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.6);
    animation: none; 
}



/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}


/* ===== ENCOURAGEMENT SECTION ===== */
.encouragement-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.encouragement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.media-player {
    margin-bottom: 3rem;
}

.audio-player {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 1rem;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
}

.audio-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

.time {
    font-size: 0.9rem;
    color: var(--gray);
    min-width: 40px;
}

.encouragement-text blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--light);
    margin-bottom: 2rem;
    position: relative;
    padding: 2rem;
}

.encouragement-text blockquote::before,
.encouragement-text blockquote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    opacity: 0.3;
}

.encouragement-text blockquote::before {
    top: -1rem;
    left: 0;
}

.encouragement-text blockquote::after {
    bottom: -3rem;
    right: 0;
}

.encouragement-text cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gray);
    font-style: normal;
}

.inspiration-quotes {
    margin-top: 3rem;
}

.quote {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
}

.quote.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}


/* ===== CONTACT SECTION ===== */
.contact-section {
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    animation: shimmer 8s infinite linear;
    z-index: -1;
}

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

.section-title {
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 15px rgba(139, 92, 246, 0.5); }
    to { text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(99, 102, 241, 0.6); }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px) translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3),
                0 0 15px rgba(139, 92, 246, 0.4);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

.contact-item:hover .contact-icon::after {
    left: 100%;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.contact-item a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-light);
}

.contact-item a:hover::after {
    width: 100%;
}

.contact-form {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.contact-form:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2),
                inset 0 0 15px rgba(99, 102, 241, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: var(--font-main);
    transition: all 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1),
                inset 0 0 10px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.7);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(148, 163, 184, 0.5);
    transform: translateX(5px);
}

/* Form Status Messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: none;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    display: block;
}

/* Submit Button Styles */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Form submission states */
.contact-form.submitting .btn-primary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.contact-form.submitting .btn-primary span {
    display: none;
}

.contact-form.submitting .btn-primary::after {
    content: 'Sending...';
}

.contact-form.success {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.contact-form.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}


/* ===== TERMINAL ===== */
.terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalSlideIn 0.3s ease;
}

.terminal-container {
    width: 90%;
    max-width: 900px;
    height: 70%;
    background: var(--darker);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-xl);
}

.terminal-header {
    background: var(--dark);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    color: var(--primary);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary);
}

.terminal-body {
    height: calc(100% - 60px);
    padding: 1rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    background: var(--darker);
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prompt-user { color: var(--terminal-green); }
.prompt-symbol { color: var(--terminal-blue); }

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--light);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-left: 0.5rem;
    outline: none;
    flex: 1;
    caret-color: var(--primary);
}

.cmd-output {
    margin: 1rem 0;
}

.cmd-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
}

.cmd-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-details {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-info-terminal {
    margin: 1rem 0;
}

.contact-item-terminal {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-icon-terminal {
    width: 30px;
    color: var(--primary);
}



/* ===== Floating Whats ===== */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.whatsapp-link:hover::before {
    transform: scale(1);
}

.whatsapp-link i {
    font-size: 30px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover i {
    transform: scale(1.1);
}

.whatsapp-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7),
                0 0 0 10px rgba(37, 211, 102, 0.1);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-top-color: rgba(30, 41, 59, 0.9);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 75px;
}

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

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-link {
    animation: float 3s ease-in-out infinite, pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-link i {
        font-size: 26px;
    }
}
/* ===== UTILITY CLASSES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 15s ease infinite;
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .profile-photo-container {
        width: 240px;
        height: 240px;
        margin-bottom: 2rem;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .photo-glow {
        width: 220px;
        height: 220px;
    }
    
    .photo-ring {
        width: 240px;
        height: 240px;
    }
    
    .floating-card {
        position: relative !important;
        margin: 0.5rem;
        animation: mobileFloat 4s ease-in-out infinite;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .floating-cards-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    @keyframes mobileFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .terminal-toggle span {
        display: none;
    }
    
    .terminal-toggle {
        padding: 0.5rem;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .profile-photo-container {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }
    
    .profile-photo {
        width: 160px;
        height: 160px;
    }
    
    .photo-glow {
        width: 180px;
        height: 180px;
    }
    
    .photo-ring {
        width: 200px;
        height: 200px;
    }
    
    .photo-placeholder {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        gap: 1rem;
    }
    
    .arch-services {
        gap: 0.5rem;
    }
    
    .arch-service {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .arch-layer {
        padding: 1rem;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
    
    .timeline-item::after {
        left: 22px;
        right: auto;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 22px;
    }
    
    .timeline-content:hover {
        transform: translateX(5px) !important;
    }
    
    .encouragement-text blockquote {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .audio-player {
        padding: 1rem;
    }
    
    .terminal-container {
        width: 95%;
        height: 80%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-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-dark);
}

/* ===== CUSTOM CURSOR ===== */
@media (min-width: 1024px) {
    body {
        cursor: default;
    }
    
    .btn, .nav-link, .project-link, .terminal-toggle {
        cursor: pointer;
    }
}
/* Video Player Styles */
.video-player {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.video-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.video-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.video-btn:active {
    transform: scale(0.95);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
}

.progress-bar:hover .progress {
    background: var(--primary-dark);
}

.time {
    font-size: 0.9rem;
    color: var(--gray);
    min-width: 80px;
    text-align: center;
    font-family: var(--font-mono);
}

/* Video loading state */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
}

.video-loading .loading-spinner {
    margin: 0 auto 1rem;
}

/* Fullscreen styles */
.video-player:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-player:-moz-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-player:-ms-fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-player:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Responsive video controls */
@media (max-width: 768px) {
    .video-player {
        padding: 1rem;
    }
    
    .video-controls {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .video-btn {
        width: 35px;
        height: 35px;
    }
    
    .time {
        font-size: 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .video-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .progress-bar {
        order: 1;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .time {
        order: 2;
    }
}