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

:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    --primary: #6366f1; /* Electric Violet */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #06b6d4; /* Teal/Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.3);
    --accent: #f43f5e; /* Rose */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Base Layouts & Gradients */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: float-slow 20s infinite alternate;
}

.sphere-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
}

.sphere-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
    animation-delay: -10s;
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 25%, #6366f1 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 3rem;
}

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

/* Glassmorphism Styles */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

/* Navigation bar */
.navbar-custom {
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.navbar-custom .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-subtitle {
    font-family: 'Fira Code', monospace;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.terminal-window {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #111827;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.terminal-line {
    margin-bottom: 8px;
}

.terminal-prompt {
    color: #38bdf8;
    margin-right: 8px;
}

.terminal-keyword {
    color: #f43f5e;
}

.terminal-string {
    color: #34d399;
}

.terminal-comment {
    color: var(--text-muted);
}

/* Skills Grid */
.skill-card {
    padding: 1.5rem;
    height: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.skill-percentage {
    font-family: 'Fira Code', monospace;
    color: var(--secondary);
    font-weight: 600;
}

.skill-progress-container {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Experience & Education Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(99, 102, 241, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--secondary);
    transition: var(--transition-smooth);
}

.timeline-item:hover::before {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transform: scale(1.3);
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ServiceSwift Spotlight & Interactive Schema */
.spotlight-card {
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.05);
}

.schema-navigator {
    max-height: 450px;
    overflow-y: auto;
}

.schema-list-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.schema-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.schema-list-item.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    font-weight: 600;
}

.schema-list-item.active::after {
    content: '→';
    font-family: 'Fira Code', monospace;
}

.schema-details-panel {
    background: #090d16;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.table-schema-view th {
    color: var(--text-muted);
    font-weight: 500;
    border-color: var(--border-color);
}

.table-schema-view td {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.datatype-badge {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

.constraint-badge {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

/* Workflow step container */
.workflow-step {
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.workflow-step:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

/* Project Cards */
.project-card {
    overflow: hidden;
    height: 100%;
}

.project-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-placeholder {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

.project-links {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.project-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.project-btn-primary {
    background: var(--primary);
    color: white;
}

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

.project-btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.project-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.project-tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Contact Form */
.form-control-custom {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
    outline: none;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline-premium {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

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

/* Floating WhatsApp Direct Inquiry Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: white;
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.5);
}

/* Animations */
@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(30px) rotate(10deg); }
}

/* Scroll Animation classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Animations */
.pulse-glow-violet {
    animation: glow-v 3s infinite alternate;
}

@keyframes glow-v {
    0% { border-color: rgba(99, 102, 241, 0.2); }
    100% { border-color: rgba(99, 102, 241, 0.8); }
}

.pulse-glow-cyan {
    animation: glow-c 3s infinite alternate;
    animation-delay: 1.5s;
}

@keyframes glow-c {
    0% { border-color: rgba(6, 182, 212, 0.2); }
    100% { border-color: rgba(6, 182, 212, 0.8); }
}
