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

:root {
    --primary: #0a0f1a;
    --surface: #111827;
    --card: #1f2937;
    --border: #374151;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --text: #f3f4f6;
    --muted: #9ca3af;
    --gradient: linear-gradient(135deg, #f59e0b, #ef4444);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Nav */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

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

nav ul { display: flex; list-style: none; gap: 2rem; }

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px; height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(245, 158, 11, 0.1);
    animation: fadeIn 1s 0.3s both;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(245, 158, 11, 0.2);
}

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

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--muted);
    font-weight: 400;
    min-height: 2.2rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.tagline {
    color: var(--muted);
    margin: 1rem 0 2rem;
    font-size: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.btn-primary, .btn-outline {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--text);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.mouse {
    width: 26px; height: 40px;
    border: 2px solid var(--muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.container { max-width: 1100px; margin: 0 auto; }

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

.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gradient);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* About */
.about-content {
    max-width: 750px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
}

.about-content strong { color: var(--text); }

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
}

.skill-category h3 {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.skill-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.skill-item:hover { transform: scale(1.15); }

.skill-item img, .skill-item svg {
    width: 48px; height: 48px;
    object-fit: contain;
}

.skill-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeIn 0.2s;
}

.skill-icon {
    font-size: 2.5rem;
    transition: transform 0.3s;
}

.skill-icon:hover { transform: scale(1.2); }

/* AWS Services tags */
.aws-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aws-services span {
    background: rgba(255, 153, 0, 0.1);
    color: #ff9900;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 153, 0, 0.25);
    transition: all 0.3s;
}

.aws-services span:hover {
    background: #ff9900;
    color: var(--primary);
    transform: translateY(-2px);
}

.more-tag {
    background: transparent !important;
    border: 1px dashed rgba(255, 153, 0, 0.4) !important;
    color: var(--muted) !important;
    font-style: italic;
}

.more-tag:hover {
    background: transparent !important;
    color: var(--accent) !important;
    transform: none !important;
}

/* Monitoring tags - style distinct */
.skill-category:has(h3 .fa-chart-bar) .aws-services span {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.25);
}

.skill-category:has(h3 .fa-chart-bar) .aws-services span:hover {
    background: #06b6d4;
    color: var(--primary);
}

/* Security tags - style vert */
.security-tags span {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
}

.security-tags span:hover {
    background: #22c55e !important;
    color: var(--primary) !important;
}

/* Skill labels visibles */
.skill-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.3rem;
}

.skill-logos.labeled .skill-item {
    width: 90px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

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

.timeline-dot {
    position: absolute;
    left: -2.85rem; top: 0.5rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-dot { transform: scale(1.5); }

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timeline-content h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }

.timeline-content h4 {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content ul { list-style: none; margin-bottom: 1rem; }

.timeline-content li {
    padding: 0.25rem 0 0.25rem 1.2rem;
    position: relative;
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tech-tags span {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    transition: all 0.3s;
}

.tech-tags span:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cert-badge {
    width: 70px; height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--accent);
    font-size: 2rem;
    color: var(--accent);
}

.datadog-badge { background: rgba(99, 44, 166, 0.1); border-color: #632CA6; }
.datadog-badge svg { width: 40px; height: 40px; }

.cert-item h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.cert-date { color: var(--muted); font-size: 0.8rem; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item div { font-size: 0.9rem; color: var(--muted); }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul { display: none; }
    .nav-toggle { display: flex; }
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--surface);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }
    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .hero-content { text-align: center; }
    .hero-links { justify-content: center; }
    .hero-photo img { width: 150px; height: 150px; }
    .stats { gap: 2rem; }
    .timeline { padding-left: 2rem; }
    .timeline-dot { left: -1.85rem; }
    section { padding: 4rem 1rem; }
}
