/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #0066CC;
    --secondary-color: #00AA44;
    --accent-color: #FF6B35;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-dark: #1A1A1A;
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066CC, #0052A3);
    --gradient-secondary: linear-gradient(135deg, #00AA44, #008833);
    --gradient-accent: linear-gradient(135deg, #FF6B35, #E55A2B);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'JetBrains Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Timing */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s var(--ease-in-out);
}

a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-in-out);
    min-height: 44px;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 68, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-light);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-full {
    width: 100%;
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: #666;
    margin-bottom: var(--spacing-xl);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--ease-in-out);
    height: 70px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
}

.nav-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s var(--ease-in-out);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all 0.3s var(--ease-in-out);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn:hover {
    border-color: var(--primary-color);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s var(--ease-in-out);
}

/* Hero Section */
.hero {
    padding: 120px 0 var(--spacing-2xl);
    background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/svg/hero-network-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--spacing-xl);
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero-text {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
    grid-column: 1;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    min-height: 120px;
    display: block;
    line-height: 1.2;
    width: 100%;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

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

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-plus {
    color: var(--accent-color);
    font-size: var(--text-2xl);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: #666;
    margin-top: 0.25rem;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: var(--text-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    position: relative;
    flex-shrink: 0;
    grid-column: 2;
    min-width: 300px;
    max-width: 300px;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Projects Section */
.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--ease-in-out);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-in-out);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-status.live {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.project-content {
    padding: var(--spacing-lg);
}

.project-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.project-description {
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.skill-category {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.skill-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s var(--ease-in-out);
}

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

/* System Administration SVG Icons Enhanced Styles */
.skill-icon[src*="linux.svg"]:hover {
    filter: drop-shadow(0 0 8px #FCC624);
}

.skill-icon[src*="cloud.svg"]:hover {
    filter: drop-shadow(0 0 8px #4299E1);
}

.skill-icon[src*="devops.svg"]:hover {
    filter: drop-shadow(0 0 8px #48BB78);
}

.skill-icon[src*="security.svg"]:hover {
    filter: drop-shadow(0 0 8px #E53E3E);
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-level {
    font-size: var(--text-sm);
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1s var(--ease-in-out);
}

.skill-experience {
    font-size: var(--text-xs);
    color: #666;
    font-style: italic;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-info-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-method h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: var(--spacing-sm);
}

.contact-details small {
    color: #666;
    font-style: italic;
}

.contact-details a {
    color: var(--text-dark);
    transition: color 0.3s var(--ease-in-out);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.quick-links h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: var(--text-sm);
    transition: all 0.3s var(--ease-in-out);
    border: none;
    cursor: pointer;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: border-color 0.3s var(--ease-in-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error) !important;
}

.field-error {
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: 0.25rem;
    display: block;
}

/* Form states */
.contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Experience Section */
.experience {
    background: linear-gradient(135deg, #f8faff 0%, #e8f4fd 100%);
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.experience-card {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transition: all 0.3s var(--ease-in-out);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.experience-icon .icon {
    font-size: 1.5rem;
    z-index: 2;
}

.experience-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s var(--ease-in-out);
}

.experience-card:hover .experience-icon::before {
    opacity: 1;
}

.experience-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.experience-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.experience-proof {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.proof-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
}

.proof-badge.live {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.proof-badge.completed {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d1d3d4;
}

.proof-badge.multiple {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #99d6ff;
}

.proof-badge.proven {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.proof-badge.patents {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.proof-link {
    font-size: var(--text-sm);
    color: var(--primary-color);
    font-weight: 500;
}

.experience-impact {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm);
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.experience-impact span {
    font-size: var(--text-sm);
    color: #555;
    font-style: italic;
}

.experience-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.experience-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    margin: 0;
    font-size: var(--text-sm);
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-in-out);
}

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

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

.hidden {
    display: none;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}