/* ========================================
   EGE AKMAN - One Pager CV
   Clean, Minimal, Dark Cyan Theme
   ======================================== */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0c10;
    color: #e4e7ec;
    line-height: 1.6;
    font-size: 16px;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
    }
}

/* ========================================
   Header
   ======================================== */

.header {
    margin-bottom: 6rem;
}

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

.logo {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e4e7ec;
    letter-spacing: -0.02em;
}

.logo .accent {
    color: #00d4ff;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #9ba3b5;
    padding: 0.5rem 1rem;
    background: #14171d;
    border: 1px solid #1e2330;
    border-radius: 100px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px #22c55e;
}

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

.name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e4e7ec 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #9ba3b5;
    max-width: 600px;
}

.intro.secondary {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.intro .highlight {
    color: #00d4ff;
    font-weight: 500;
}

/* ========================================
   Info Grid
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #1e2330;
    border: 1px solid #1e2330;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 6rem;
}

@media (max-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #0f1115;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background 0.2s ease;
}

.info-card:hover {
    background: #14171d;
}

.info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00d4ff;
}

.info-value {
    font-size: 0.9375rem;
    color: #9ba3b5;
    line-height: 1.5;
}

/* ========================================
   Timeline
   ======================================== */

.timeline-section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #e4e7ec;
}

.timeline {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.timeline-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    height: 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-width: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #14171d;
    border: 1px solid #1e2330;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    border-color: #2a3040;
    transform: translateX(4px);
}

.timeline-bar {
    width: 4px;
    min-height: 60px;
    height: 100%;
    background: #00d4ff;
    border-radius: 2px;
    flex-shrink: 0;
}

.timeline-bar.education {
    background: #a855f7;
}

.timeline-details {
    flex: 1;
    min-width: 0;
}

.timeline-details h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e4e7ec;
    margin-bottom: 0.25rem;
}

.timeline-details .company {
    font-size: 0.875rem;
    color: #00d4ff;
    margin-bottom: 0.25rem;
}

.timeline-details .company.education-text {
    color: #a855f7;
}

.timeline-details .location,
.timeline-details .period {
    font-size: 0.8125rem;
    color: #6b7280;
}

.timeline-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.legend-dot {
    width: 12px;
    height: 4px;
    border-radius: 2px;
}

.legend-dot.work {
    background: #00d4ff;
}

.legend-dot.education {
    background: #a855f7;
}

/* ========================================
   Skills
   ======================================== */

.skills-section {
    margin-bottom: 6rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-group-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

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

.skill-tag {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    color: #00d4ff;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
}

/* ========================================
   Experience
   ======================================== */

.experience-section {
    margin-bottom: 6rem;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: #14171d;
    border: 1px solid #1e2330;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.experience-card:hover {
    border-color: #2a3040;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e4e7ec;
    margin-bottom: 0.25rem;
}

.experience-header .role {
    font-size: 0.875rem;
    color: #9ba3b5;
}

.experience-header .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.experience-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-points li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: #9ba3b5;
    line-height: 1.6;
}

.experience-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: 500;
}

/* ========================================
   Contact Form
   ======================================== */

.contact-section {
    margin-bottom: 6rem;
    padding: 3rem;
    background: #14171d;
    border: 1px solid #1e2330;
    border-radius: 16px;
}

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

.contact-intro {
    font-size: 1.0625rem;
    color: #9ba3b5;
    max-width: 500px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ba3b5;
}

.form-input {
    padding: 1rem;
    background: #0a0c10;
    border: 1px solid #1e2330;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    color: #e4e7ec;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input:hover {
    border-color: #2a3040;
}

.form-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

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

/* Button with states */
.form-button {
    position: relative;
    padding: 1rem 2rem;
    background: #00d4ff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0a0c10;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    height: 52px;
}

.form-button:hover:not(:disabled) {
    background: #00a3c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.form-button:active:not(:disabled) {
    transform: translateY(0);
}

.form-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button text states */
.button-text,
.button-loading,
.button-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.button-loading,
.button-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
}

/* Loading state */
.form-button.loading .button-text {
    opacity: 0;
    visibility: hidden;
}

.form-button.loading .button-loading {
    opacity: 1;
    visibility: visible;
}

/* Success state */
.form-button.success .button-text {
    opacity: 0;
    visibility: hidden;
}

.form-button.success .button-loading {
    opacity: 0;
    visibility: hidden;
}

.form-button.success .button-success {
    opacity: 1;
    visibility: visible;
}

.form-button.success {
    background: #22c55e;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button-success svg {
    width: 18px;
    height: 18px;
}

/* Form message */
.form-message {
    font-size: 0.875rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Alternative contact */
.contact-alt {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1e2330;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-alt-text {
    font-size: 0.8125rem;
    color: #6b7280;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ba3b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link-inline:hover {
    color: #00d4ff;
}

.contact-link-inline svg {
    opacity: 0.6;
}

.contact-link-inline:hover svg {
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e2330;
}

.footer p {
    font-size: 0.8125rem;
    color: #6b7280;
}

.footer-note {
    margin-top: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    opacity: 0.6;
}

/* ========================================
   Animations
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .header,
    .info-grid,
    .timeline-section,
    .skills-section,
    .experience-section,
    .contact-section {
        animation: fadeUp 0.6s ease-out both;
    }
    
    .header { animation-delay: 0s; }
    .info-grid { animation-delay: 0.1s; }
    .timeline-section { animation-delay: 0.2s; }
    .skills-section { animation-delay: 0.3s; }
    .experience-section { animation-delay: 0.4s; }
    .contact-section { animation-delay: 0.5s; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0c10;
}

::-webkit-scrollbar-thumb {
    background: #2a3040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Selection */
::selection {
    background: #00d4ff;
    color: #0a0c10;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .timeline {
        flex-direction: column;
    }
    
    .timeline-track {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .year {
        height: auto;
        padding: 0 0.5rem;
    }
    
    .experience-header {
        flex-direction: column;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
}
