/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    line-height: 1.6;
    color: #e2e8f0;
    background: #020617;
    overflow-x: hidden;
    position: relative;
}

/* Binary background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #64ffda, #a855f7, #06b6d4);
    z-index: 1000;
    transition: width 0.25s ease;
    box-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

/* Typing Animation Container */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #64ffda;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.main-content {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(100,255,218,0.08)"/><circle cx="80" cy="40" r="1.5" fill="rgba(100,255,218,0.08)"/><circle cx="60" cy="80" r="1" fill="rgba(100,255,218,0.08)"/><circle cx="30" cy="60" r="2.5" fill="rgba(100,255,218,0.08)"/><circle cx="90" cy="20" r="1" fill="rgba(100,255,218,0.08)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #00d4ff, #0099ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #64ffda;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #94a3b8;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.15);
    color: #0f172a;
    background-color: #00d4ff;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: #0f172a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

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

.profile-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.15);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(168, 85, 247, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 30px 80px rgba(100, 255, 218, 0.2);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #64ffda;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #64ffda, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #020617;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cbd5e1;
    line-height: 1.8;
}

.philosophy {
    background: linear-gradient(135deg, #64ffda, #a855f7);
    color: #020617;
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.philosophy:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.3);
}

.philosophy:hover::before {
    animation: shimmer 0.8s ease;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Skills Section */
.skills {
    background: #020617;
}

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

.skill-card {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.08);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(168, 85, 247, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.15);
    border-color: #64ffda;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #020617;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.skill-card h3 {
    color: #f1f5f9;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.skill-card p {
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

/* Projects Section */
.projects {
    background: #0f172a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 255, 218, 0.08);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(168, 85, 247, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(100, 255, 218, 0.15);
    border-color: #64ffda;
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    height: 200px;
    background: linear-gradient(135deg, #64ffda, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #020617;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f1f5f9;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: #020617;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.project-link:hover {
    color: #0066ff;
    transform: translateX(5px);
}

/* Experience Section */
.experience {
    background: #020617;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.timeline-item {
    margin: 50px 0;
    position: relative;
}

.timeline-content {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    width: 45%;
    border: 1px solid rgba(100, 255, 218, 0.15);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

.timeline-content h3 {
    color: #f1f5f9;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-content p {
    color: #cbd5e1;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #020617;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    z-index: 2;
}

/* Education Section */
.education {
    background: #0f172a;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.education-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(168, 85, 247, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(100, 255, 218, 0.15);
    border-color: #64ffda;
}

.education-card:hover::before {
    opacity: 1;
}

.education-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.degree-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #020617;
    transition: transform 0.3s ease;
}

.education-card:hover .degree-icon {
    transform: scale(1.1) rotate(5deg);
}

.degree-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.university {
    font-size: 1.1rem;
    color: #64ffda;
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: #94a3b8;
    font-size: 0.95rem;
    font-style: italic;
}

.education-content {
    position: relative;
    z-index: 2;
}

.description {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.focus-areas {
    margin-top: 20px;
}

.focus-areas h4 {
    color: #f1f5f9;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.focus-tag {
    background: linear-gradient(135deg, #64ffda, #a855f7);
    color: #020617;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.focus-tag:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    color: white;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: rgba(100, 255, 218, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(168, 85, 247, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.1);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #00d4ff;
    position: relative;
    z-index: 2;
}

.contact-item h3 {
    color: #f1f5f9;
    position: relative;
    z-index: 2;
}

.contact-item p {
    color: #cbd5e1;
    position: relative;
    z-index: 2;
    word-break: break-word;
}

/* Footer */
footer {
    background: #010409;
    color: #cbd5e1;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #0f172a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }
    
      .hero .description {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 30px;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        min-width: unset;
    }

    .degree-title {
        font-size: 1.2rem;
    }

    .focus-tags {
        justify-content: center;
    }
}

/* Accessibility */
.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;
}

.cta-button:focus,
.contact-item:focus,
.project-link:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.8);
    }
}

/* Enhanced Effects */
.magnetic-effect {
    transition: transform 0.3s ease;
}

.magnetic-effect:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Glow Effects */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, #64ffda, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-on-hover:hover::after {
    opacity: 0.1;
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    transform: translateX(-100%);
    animation: reveal 1s ease forwards;
}

@keyframes reveal {
    to {
        transform: translateX(100%);
    }
}

/* Keyboard Navigation Support */
.keyboard-nav *:focus {
    outline: 2px solid #64ffda !important;
    outline-offset: 2px;
}

/* Loading State */
.loaded .main-content {
    opacity: 1;
}