/* PlainID Landing Page - Custom Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e27;
    color: #e8eaed;
    overflow-x: hidden;
    line-height: 1.6;
}

/* PlainID Brand Variables - Dark Theme */
:root {
    --plainid-dark-bg: #0a0e27;
    --plainid-darker: #060819;
    --plainid-section-bg: #0f1329;
    --plainid-card-bg: #141937;
    --plainid-border: #1e2545;
    --plainid-text-primary: #e8eaed;
    --plainid-text-secondary: #9ca3af;
    --plainid-blue: #3b82f6;
    --plainid-light-blue: #60a5fa;
    --plainid-accent: #06b6d4;
    --plainid-purple: #8b5cf6;
    --plainid-success: #10b981;
}

/* Section defaults */
section {
    position: relative;
    z-index: 1;
}

/* Container Utilities */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Spacing Utilities */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-6 { padding: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; }
.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-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Colors */
.text-dark { color: var(--plainid-text-primary); }
.text-gray-80 { color: var(--plainid-text-secondary); }
.text-gray-60 { color: #9ca3af; }
.text-gray-600 { color: #9ca3af; }
.text-gray-700 { color: #b4bbc4; }
.text-plainid-blue { color: var(--plainid-blue); }

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }

.min-h-screen { min-height: 100vh; }

/* Grid Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-7xl { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* PlainID Dark Hero Gradient */
.plainid-gradient {
    background: linear-gradient(135deg, var(--plainid-dark-bg) 0%, var(--plainid-section-bg) 50%, var(--plainid-dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs */
.plainid-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
}

/* Grid pattern overlay */
.plainid-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.2;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.plainid-brand {
    font-weight: 800;
    background: linear-gradient(135deg, var(--plainid-blue) 0%, var(--plainid-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Section Background */
.gradient-section {
    background: var(--plainid-section-bg);
    position: relative;
}

/* Add subtle pattern to sections */
.gradient-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Glass Morphism Cards - Dark Theme */
.glass-card {
    background: rgba(20, 25, 55, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--plainid-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    background: rgba(20, 25, 55, 0.8);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Skill Tags - Dark Theme */
.skill-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: default;
    color: var(--plainid-light-blue);
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    border-color: var(--plainid-blue);
}

/* Achievement Cards - Dark Theme */
.achievement-card {
    background: var(--plainid-card-bg);
    border-left: 4px solid var(--plainid-accent);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.achievement-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
    background: rgba(20, 25, 55, 0.8);
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(180deg, var(--plainid-accent) 0%, transparent 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--plainid-accent);
    border: 3px solid var(--plainid-dark-bg);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.timeline-dot.current {
    background: var(--plainid-blue);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
}

/* Authorization Highlight Box */
.authorization-highlight {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #fbbf24;
}

/* Buttons - Dark Theme */
.cta-button {
    position: relative;
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--plainid-blue) 0%, var(--plainid-accent) 100%);
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

/* LinkedIn button style */
.linkedin-button {
    background: linear-gradient(135deg, #0077B5 0%, #00A0DC 100%);
}

.linkedin-button:hover {
    box-shadow: 0 10px 40px rgba(0, 119, 181, 0.4);
}

/* WhatsApp button style */
.whatsapp-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-button:hover {
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

.secondary-button {
    padding: 16px 32px;
    border: 2px solid var(--plainid-blue);
    color: var(--plainid-light-blue);
    background: transparent;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.secondary-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--plainid-accent);
    color: white;
}

/* Impact Metrics - Dark Theme */
.impact-metric {
    text-align: center;
    padding: 24px;
    background: var(--plainid-card-bg);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--plainid-border);
}

.impact-metric:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--plainid-blue);
}

.impact-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--plainid-blue), var(--plainid-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Links - Dark Theme */
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--plainid-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--plainid-light-blue);
}

/* Border Utilities */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-style: solid;
}

.border-gray-300 {
    border-color: var(--plainid-border);
}

.border-plainid-blue-20 {
    border-color: rgba(59, 130, 246, 0.2);
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Security Animation for PlainID */
.security-particle {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    animation: securityFloat 3s ease-out forwards;
}

@keyframes securityFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-5xl { font-size: 2rem; }
    .text-4xl { font-size: 1.75rem; }

    .glass-card {
        padding: 20px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .impact-number {
        font-size: 36px;
    }
}