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

:root {
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    --font-arabic: 'Amiri', 'Noto Sans Arabic', 'Dubai', sans-serif;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md); /* REMEMBER TEST */
}

/* Main Content */
.main-content {
    margin-top: 40px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}





/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .education-header,
    .degree-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-actions {
        gap: var(--space-md);
    }
    
    .nav-links {
        gap: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .greeting-line {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Animations */
@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.binary-flicker {
    position: relative;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
/* Mobile Layout Improvements */
@media (max-width: 768px) {
    .main-content {
        margin-top: 60px !important;
        padding: var(--space-lg) var(--space-md) var(--space-md) !important;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: var(--space-sm) !important;
        padding-right: var(--space-sm) !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 80px !important;
        padding: var(--space-md) var(--space-sm) var(--space-sm) !important;
    }
}
