/* Design System Variables */
:root {
    --bg-dark: #0a1128;
    --bg-lighter: #121e42;
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --accent-teal: #00e5ff;
    --accent-teal-dark: #00b3cc;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Reset and Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.highlight {
    color: var(--accent-teal);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent-teal);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background: var(--accent-teal);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-teal);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--accent-teal);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

/* Layout Utilities */
section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-pad {
    padding: 8rem 5% 4rem; /* Top padding larger to account for fixed header */
}

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

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

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

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    margin-top: 60px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Particles background effect */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.05), transparent 35%),
                radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.05), transparent 35%);
    z-index: 1;
}

/* About Section */
.full-width-card {
    max-width: 900px;
    margin: 0 auto;
}

.full-width-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.full-width-card p:last-child {
    margin-bottom: 0;
}

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

.skill-card {
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.skill-card ul {
    list-style: none;
    color: var(--text-secondary);
}

.skill-card li {
    margin-bottom: 0.5rem;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--card-border);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-teal);
    left: 12px;
    top: 35px;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-teal);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contract-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-teal);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--accent-teal-dark);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

.timeline-content strong {
    color: #fff;
    font-weight: 600;
}

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

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer Section */
.footer {
    background: var(--bg-lighter);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-teal);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .timeline::after {
        left: 10px;
    }
    .timeline-dot {
        left: 2px;
    }
    .timeline-item {
        padding-left: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
}
