/* Reset & Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00a3e0;
    --dark-bg: #ffffff;
    --card-bg: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0066cc;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --dark-mode-bg: #0a0e27;
    --dark-mode-card: #1a2047;
    --dark-mode-text: #e0e0e0;
    --dark-mode-text-secondary: #b0b0b0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0e27;
        --card-bg: #1a2047;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --border-color: #2a3f6b;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 163, 224, 0.2);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar */
.navbar {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--dark-bg);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 163, 224, 0.05));
    border-bottom: 1px solid var(--border-color);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%230066cc" stroke-width="0.5" opacity="0.05"/></pattern><radialGradient id="glow" cx="50%25" cy="50%25"><stop offset="0%25" style="stop-color:%2300a3e0;stop-opacity:0.1"/><stop offset="100%25" style="stop-color:%2300a3e0;stop-opacity:0"/></radialGradient></defs><rect width="1200" height="600" fill="url(%23grid)"/><circle cx="300" cy="200" r="200" fill="url(%23glow)" opacity="0.3"/><circle cx="900" cy="400" r="250" fill="url(%23glow)" opacity="0.2"/></svg>');
    background-repeat: repeat;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes moveBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.15), rgba(0, 102, 204, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(0, 163, 224, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero-age {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 20px;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #22c55e;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.timezone-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.15), rgba(0, 102, 204, 0.1));
    border: 1px solid rgba(0, 163, 224, 0.4);
    border-radius: 20px;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.experience-block {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 163, 224, 0.05));
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.experience-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1), transparent);
    transition: right 0.6s ease-out;
}

.experience-block:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 163, 224, 0.08));
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.experience-block:hover::before {
    right: -50px;
}

.experience-block h4 {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-block p {
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
    font-size: 0.95rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 163, 224, 0.05));
    border: 1px solid rgba(0, 163, 224, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 163, 224, 0.08));
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-langs {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-langs::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.15), transparent);
    transition: left 0.6s ease-out;
}

.about-langs:hover::before {
    left: 100%;
}

.about-langs:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2), inset 0 0 20px rgba(0, 163, 224, 0.05);
}

.about-langs h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.about-langs ul {
    list-style: none;
}

.about-langs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.about-langs li:last-child {
    border-bottom: none;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--accent), var(--secondary-color));
    background-size: 100% 100%;
    animation: shimmer 4s infinite;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    animation: slideInLeft 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-marker::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.8);
    animation: glow 2s ease-in-out infinite;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-left: 2rem;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.2), transparent);
    transition: left 0.5s;
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 163, 224, 0.3);
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.job-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.job-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.skills-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: rgba(0, 102, 204, 0.2);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 102, 204, 0.5);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: rotateIn 0.6s ease-out backwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.2), transparent);
    transition: left 0.6s ease-out;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3), inset 0 0 20px rgba(0, 163, 224, 0.1);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.skill-category:hover h3 {
    color: var(--accent);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.skill-item {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.15), rgba(0, 102, 204, 0.1));
    color: var(--secondary-color);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 163, 224, 0.3);
    transition: var(--transition);
    cursor: default;
}

.skill-item:hover {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.3), rgba(0, 102, 204, 0.2));
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 163, 224, 0.3);
}

/*New Skills Styles*/
.skill-category.skill-networking { --cat-color: #00a3e0; }
.skill-category.skill-security { --cat-color: #ff6b6b; }
.skill-category.skill-cloud { --cat-color: #ffd93d; }
.skill-category.skill-linux { --cat-color: #ff9999; }
.skill-category.skill-programming { --cat-color: #a78bfa; }
.skill-category.skill-tools { --cat-color: #4ade80; }

.skill-category h3 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--cat-color);
    color: var(--cat-color);
    transition: var(--transition);
}

.skill-category:hover h3 {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* New Cert Styles */
.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
    position: relative;
    z-index: 1;
}

.cert-cloud { border-bottom-color: #00a3e0; }
.cert-security { border-bottom-color: #ff6b6b; }
.cert-linux { border-bottom-color: #ff9999; }
.cert-dev { border-bottom-color: #a78bfa; }

.cert-cloud .cert-header,
.cert-cloud h3 { border-color: #00a3e0; color: #00a3e0; }

.cert-security .cert-header,
.cert-security h3 { border-color: #ff6b6b; color: #ff6b6b; }

.cert-linux .cert-header,
.cert-linux h3 { border-color: #ff9999; color: #ff9999; }

.cert-dev .cert-header,
.cert-dev h3 { border-color: #a78bfa; color: #a78bfa; }

.cert-header h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
}

.cert-count {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.2), rgba(0, 102, 204, 0.15));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.cert-item {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.08), rgba(0, 102, 204, 0.04)) !important;
    padding: 0.8rem !important;
    border-left: 4px solid var(--secondary-color) !important;
    border-radius: 6px !important;
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    flex-direction: row !important;
}

.cert-badge {
    display: none;
}

.cert-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-category {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: rotateIn 0.6s ease-out backwards;
}

.cert-category:nth-child(1) { animation-delay: 0.1s; }
.cert-category:nth-child(2) { animation-delay: 0.2s; }
.cert-category:nth-child(3) { animation-delay: 0.3s; }
.cert-category:nth-child(4) { animation-delay: 0.4s; }

.cert-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.2), transparent);
    transition: left 0.6s ease-out;
}

.cert-category:hover::before {
    left: 100%;
}

.cert-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3), inset 0 0 20px rgba(0, 163, 224, 0.1);
}

.cert-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.cert-category:hover h3 {
    color: var(--accent);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cert-item {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.1), rgba(0, 102, 204, 0.05));
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cert-item:hover {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.2), rgba(0, 102, 204, 0.1));
    border-left-color: var(--primary-color);
    padding-left: 1.3rem;
}

.cert-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: -100%;
    right: -100%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.2), transparent);
    border-radius: 50%;
    transition: all 0.6s ease-out;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    bottom: -50px;
    right: -50px;
}

.project-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3), 0 0 30px rgba(0, 163, 224, 0.2);
}

.project-header {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.project-header h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.project-card:hover .project-header h3 {
    color: var(--accent);
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-card p {
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.5));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    animation: scaleIn 0.6s ease-out backwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 163, 224, 0.1));
    opacity: 0;
    transition: opacity 0.6s ease-out;
    z-index: 1;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3), 0 0 30px rgba(0, 163, 224, 0.2);
}

.blog-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.blog-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.blog-card:hover h3 {
    color: var(--accent);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-card-views {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 163, 224, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 163, 224, 0.2);
    transition: all 0.3s ease;
}

.blog-card-views:hover {
    background: rgba(0, 163, 224, 0.2);
    border-color: rgba(0, 163, 224, 0.4);
    color: var(--secondary-color);
}

.views-count {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.blog-card-views {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-weight: 500;
}

.views-count {
    font-weight: 700;
    color: var(--accent);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.blog-card-body p {
    margin-bottom: 1rem;
}

.blog-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-read-more {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--accent);
}

.blog-load-more {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 163, 224, 0.04));
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.15), transparent);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1), transparent);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    align-items: center;
}

.contact-left {
    animation: fadeInUp 0.8s ease-out;
}

.contact-left h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-left p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.meta-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.contact-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.contact-card {
    background: linear-gradient(135deg, rgba(26, 32, 71, 0.8), rgba(26, 32, 71, 0.4));
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.2), transparent);
    transition: left 0.6s ease-out;
    z-index: 0;
}

.contact-card:nth-child(1) {
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.contact-card:nth-child(2) {
    animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.contact-card:nth-child(3) {
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.contact-card:hover {
    background: linear-gradient(135deg, rgba(26, 32, 71, 1), rgba(26, 32, 71, 0.6));
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 163, 224, 0.2);
}

.contact-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.contact-card h4 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    background: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    word-break: break-all;
}

.card-link:hover {
    background: rgba(0, 163, 224, 0.3);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    position: relative;
    z-index: 1;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.card-links a {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.3);
    transition: var(--transition);
}

.card-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    border-color: var(--secondary-color);
}

.card-location {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.card-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.6rem 0 0 0;
    position: relative;
    z-index: 1;
    font-family: 'Courier New', monospace;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-left h3 {
        font-size: 1.5rem;
    }

    .contact-right {
        grid-template-columns: 1fr;
    }

    .contact-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 14, 39, 0.8));
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent) 1;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

.footer p {
    position: relative;
    z-index: 1;
    margin: 0;
    transition: var(--transition);
}

.footer:hover p {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-age {
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tag {
        font-size: 0.85rem;
    }

    h2.section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-link {
        display: block;
    }

    /* Disable 3D effects on mobile */
    .project-card,
    .blog-card,
    .skill-category,
    .timeline-content,
    .about-langs {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Animations - Minimal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateX(10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Dark Mode - Default */
body {
    color-scheme: dark;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Legal Pages */
.legal-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.legal-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.legal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
}

/* Page Views Counter */
.page-views-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: rgba(0, 163, 224, 0.05);
    border: 1px solid rgba(0, 163, 224, 0.2);
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-views-counter:hover {
    background: rgba(0, 163, 224, 0.1);
    border-color: rgba(0, 163, 224, 0.4);
    color: var(--secondary-color);
}

#view-count {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}
