/* Portfolio CSS - Production Ready */

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

/* CSS Variables */
:root {
    --primary: #FF6B35;
    --dark: #0A0E27;
    --light: #F7F9FC;
    --accent: #4ECDC4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Utility Classes */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1280px;
}

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-8 > * + * { margin-left: 2rem; }

/* Widths */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-80 { width: 20rem; }
.h-48 { height: 12rem; }
.h-80 { height: 20rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.min-h-screen { min-height: 100vh; }

/* Max widths */
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding & Margin */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-4 { padding-top: 1rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

/* Colors */
.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-amber-100 { background-color: #fef3c7; }

.text-purple-700 { color: #7c3aed; }
.text-indigo-700 { color: #4338ca; }
.text-amber-500 { color: #f59e0b; }

.border-white { border-color: #fff; }
.border-gray-100 { border-color: #f3f4f6; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* Transitions */
.transition-all { transition-property: all; transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.15s; }

/* Misc */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.resize-none { resize: none; }
.z-50 { z-index: 50; }

.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Top positioning */
.top-0 { top: 0; }

/* Opacity */
.opacity-30 { opacity: 0.3; }
.opacity-80 { opacity: 0.8; }

/* Backgrounds with opacity */
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

/* Focus states */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-\[\#FF6B35\]:focus { border-color: #FF6B35; }

/* Hover states */
.hover\:text-\[\#FF6B35\]:hover { color: #FF6B35; }
.hover\:text-\[\#4ECDC4\]:hover { color: #4ECDC4; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-\[\#FF8E53\]:hover { background-color: #FF8E53; }
.hover\:bg-\[\#6ED9D0\]:hover { background-color: #6ED9D0; }
.hover\:bg-purple-600:hover { background-color: #9333ea; }
.hover\:bg-amber-600:hover { background-color: #d97706; }
.hover\:text-\[\#0A0E27\]:hover { color: #0A0E27; }
.hover\:border-\[\#FF6B35\]:hover { border-color: #FF6B35; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-\[\#FF6B35\] { --tw-gradient-from: #FF6B35; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 107, 53, 0)); }
.to-\[\#FF8E53\] { --tw-gradient-to: #FF8E53; }
.to-\[\#4ECDC4\] { --tw-gradient-to: #4ECDC4; }
.to-\[\#6ED9D0\] { --tw-gradient-to: #6ED9D0; }
.from-\[\#4ECDC4\] { --tw-gradient-from: #4ECDC4; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(78, 205, 196, 0)); }
.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.to-purple-700 { --tw-gradient-to: #7c3aed; }
.from-amber-500 { --tw-gradient-from: #f59e0b; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 158, 11, 0)); }
.to-amber-700 { --tw-gradient-to: #b45309; }
.from-indigo-500 { --tw-gradient-from: #6366f1; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99, 102, 241, 0)); }
.to-indigo-700 { --tw-gradient-to: #4338ca; }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.from-\[\#0A0E27\] { --tw-gradient-from: #0A0E27; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(10, 14, 39, 0)); }
.via-\[\#1a1f3a\] { --tw-gradient-stops: var(--tw-gradient-from), #1a1f3a, var(--tw-gradient-to, rgba(26, 31, 58, 0)); }
.to-\[\#0A0E27\] { --tw-gradient-to: #0A0E27; }

.from-\[\#FF6B35\]\/5 { --tw-gradient-from: rgba(255, 107, 53, 0.05); }
.to-\[\#4ECDC4\]\/5 { --tw-gradient-to: rgba(78, 205, 196, 0.05); }
.from-\[\#4ECDC4\]\/5 { --tw-gradient-from: rgba(78, 205, 196, 0.05); }
.to-\[\#FF6B35\]\/5 { --tw-gradient-to: rgba(255, 107, 53, 0.05); }
.from-\[\#FF6B35\]\/10 { --tw-gradient-from: rgba(255, 107, 53, 0.1); }
.to-\[\#4ECDC4\]\/10 { --tw-gradient-to: rgba(78, 205, 196, 0.1); }

.bg-\[\#FF6B35\]\/10 { background-color: rgba(255, 107, 53, 0.1); }
.text-\[\#FF6B35\] { color: #FF6B35; }
.bg-\[\#FF6B35\] { background-color: #FF6B35; }
.bg-\[\#4ECDC4\]\/10 { background-color: rgba(78, 205, 196, 0.1); }
.text-\[\#4ECDC4\] { color: #4ECDC4; }
.bg-\[\#4ECDC4\] { background-color: #4ECDC4; }
.text-\[\#0A0E27\] { color: #0A0E27; }
.bg-\[\#0A0E27\] { background-color: #0A0E27; }
.bg-\[\#F7F9FC\] { background-color: #F7F9FC; }
.border-\[\#FF6B35\] { border-color: #FF6B35; }
.border-\[\#4ECDC4\] { border-color: #4ECDC4; }

.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.text-purple-300 { color: #d8b4fe; }
.bg-purple-500 { background-color: #a855f7; }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.text-amber-300 { color: #fcd34d; }
.bg-amber-500 { background-color: #f59e0b; }

/* Custom gradient text */
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* Custom Components */
.hero-gradient {
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.stagger-1 { animation-delay: 0.1s; transform: translateY(30px); }
.stagger-2 { animation-delay: 0.2s; transform: translateY(30px); }
.stagger-3 { animation-delay: 0.3s; transform: translateY(30px); }
.stagger-4 { animation-delay: 0.4s; transform: translateY(30px); }

.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card > div:first-child {
    position: relative;
    z-index: 1;
}

.project-card > div:last-child {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
    transition: left 0.5s;
    z-index: 0;
    pointer-events: none;
}

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

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(10, 14, 39, 0.15);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--light);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--primary), transparent);
}

.timeline-item:last-child::after {
    display: none;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF8E53);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF8E53, var(--accent));
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Responsive Grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-2xl { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 30px;
    }
}
