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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Split Container */
.split-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
}

.split-left,
.split-right {
    flex: 1;
    padding: 2rem;
}

.split-left {
    background: #ffffff;
    border-right: 1px solid #e9ecef;
}

.split-right {
    background: #f8f9fa;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.brand-code {
    color: #6b7280;
}

.brand-name {
    color: #1f2937;
}

.nav-toggle {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: #2563eb;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: #2563eb;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.subtitle-line {
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: #374151;
    color: white;
    border-color: #374151;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}

.window-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.window-title {
    font-family: 'JetBrains Mono', monospace;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
    margin: 0;
}

.code-comment {
    color: #6a9955;
}

.code-keyword {
    color: #569cd6;
}

.code-class {
    color: #4ec9b0;
}

.code-function {
    color: #dcdcaa;
}

.code-param {
    color: #9cdcfe;
}

.code-property {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.code-variable {
    color: #9cdcfe;
}

/* Section Styles */
section {
    padding: 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #2563eb;
    margin-bottom: 1rem;
}

/* About Section */
.about-section .split-container {
    min-height: auto;
    padding: 4rem 0;
}

.about-intro {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-item i {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-item h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-item p {
    color: #6b7280;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.certifications {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.certifications h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.cert-item i {
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Experience Section */
.experience-section {
    background: #f8f9fa;
}

.experience-section .split-left {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.experience-section .split-right {
    background: #ffffff;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
    margin-left: -5px;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #6b7280;
    line-height: 1.6;
}

.experience-summary {
    max-width: 500px;
}

.experience-summary p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-achievements h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.key-achievements ul {
    list-style: none;
    padding: 0;
}

.key-achievements li {
    color: #6b7280;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.key-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Skills Section */
.skills-section .split-container {
    min-height: auto;
    padding: 4rem 0;
}

.skills-description {
    margin-bottom: 2rem;
}

.skills-description p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
}

.skill-categories {
    display: grid;
    gap: 2rem;
}

.skill-category h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category i {
    color: #2563eb;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skills-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.skill-bars {
    width: 100%;
    max-width: 400px;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #1f2937;
}

.skill-level {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
}

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

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease;
}

/* Projects Section */
.projects-section {
    background: #f8f9fa;
}

.projects-section .split-left {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.projects-section .split-right {
    background: #ffffff;
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #2563eb;
    color: white;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.projects-description {
    max-width: 500px;
}

.projects-description p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section .split-container {
    min-height: auto;
    padding: 4rem 0;
}

.contact-intro {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-label {
    color: #1f2937;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #6b7280;
    display: block;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

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

.footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-text {
    text-align: center;
    flex-grow: 1;
}

.footer-text p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-top: 1px solid #e9ecef;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .split-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .split-left,
    .split-right {
        padding: 1.5rem;
    }
    
    .split-left {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .split-left,
    .split-right {
        padding: 1rem;
    }
    
    .code-window {
        font-size: 0.8rem;
    }
}

/* Skill fill data attributes */
.skill-fill[data-width="95%"] { width: 95%; }
.skill-fill[data-width="90%"] { width: 90%; }
.skill-fill[data-width="88%"] { width: 88%; }
.skill-fill[data-width="85%"] { width: 85%; }