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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background Grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    color: #22c55e;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

/* Glitch effect on hover */
.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.tagline {
    font-size: 1.3rem;
    color: #888;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #fff;
    color: #0a0a0a;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #333;
}

.btn-secondary:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Section Styles */
section {
    margin-bottom: 4rem;
}

.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-fade-in:nth-child(2) { animation-delay: 0.2s; }
.section-fade-in:nth-child(3) { animation-delay: 0.4s; }
.section-fade-in:nth-child(4) { animation-delay: 0.6s; }
.section-fade-in:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fff, transparent);
}

/* Intro Section */
.intro-content p {
    font-size: 1.15rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Link Cards */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.link-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.link-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Focus Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.focus-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.focus-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.focus-item p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Visitor Counter */
.visitor-counter {
    display: flex;
    justify-content: center;
}

.counter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 4rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.counter-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.counter-display {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.counter-number {
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-email {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-email:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: #fff;
}

.separator {
    color: #333;
}

/* Resume Page Styles */
.resume-container {
    max-width: 1000px;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.contact-info {
    font-size: 0.95em;
    color: #888;
    margin-top: 1rem;
}

.contact-info a {
    color: #b0b0b0;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
}

h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

h3 {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.job-title {
    font-weight: 500;
    color: #e0e0e0;
    font-size: 1rem;
}

.job-date {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

.company {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.7;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-category {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.skill-category strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
}

.cert-list {
    list-style: none;
    margin-left: 0;
}

.cert-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.cert-list li:before {
    content: "✓ ";
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-card {
        padding: 2rem 2.5rem;
    }
    
    .counter-display {
        font-size: 3rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
        color: #333;
    }
    
    .background-grid,
    .navbar {
        display: none;
    }
    
    .container {
        border: none;
        padding: 20px;
        background: white;
    }
    
    h1, h2, h3, .hero h1, .company {
        color: #000;
    }
    
    p, li, .tagline, .contact-info {
        color: #333;
    }
    
    .link-card,
    .focus-item,
    .job-header,
    .skill-category {
        background: white;
        border: 1px solid #ddd;
    }
}