@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-dark: #09090b; /* Very Dark Zinc */
    --bg-card: rgba(24, 24, 27, 0.4); /* Zinc 900 Glass */
    --primary: #e11d48; /* Crimson / Rose Red */
    --primary-rgb: 225, 29, 72;
    --success: #10b981; /* Emerald / Green */
    --success-rgb: 16, 185, 129;
    --secondary: #fb923c; /* Bright Orange */
    --secondary-rgb: 251, 146, 60;
    --text-main: #fafafa;
    --text-dim: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.05); /* Softer white glass border */
    --glow: 0 0 15px rgba(var(--primary-rgb), 0.35); /* Crimson glow */
}

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

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

h1,
h2,
h3,
.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

code,
pre,
.terminal-text {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Effects */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1.5rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    box-shadow: var(--glow);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8rem;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
    text-shadow: none;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 600px;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-outline {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(var(--secondary-rgb), 0.1);
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.3);
    transform: translateY(-2px);
}

/* Profile Card */
.hero-profile {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(24, 24, 27, 0.6);
    border-top: 2px solid var(--primary);
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    padding: 5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(var(--secondary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
}

/* Section Common Styling */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .about-content,
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        gap: 3rem;
        text-align: center;
    }

    .hero-text-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .hero-buttons {
        justify-content: center;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}

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

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

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    padding: 0.5rem 1rem;
    background: rgba(var(--secondary-rgb), 0.1);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    border-left: 4px solid var(--primary);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.exp-header h3 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin: 0;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.exp-meta .company {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.exp-meta .date {
    color: var(--primary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.exp-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-details ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.exp-details ul li:last-child {
    margin-bottom: 0;
}

.exp-details ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exp-meta {
        align-items: flex-start;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
}

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

.cert-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary);
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.2);
}

.form-group textarea {
    resize: vertical;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    font-size: 2rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}