:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #888888;
    --accent-secondary: #333333;
    --gray-light: #aaaaaa;
    --gray-dark: #444444;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header - Premium Design */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.site-header:hover {
    background: rgba(15, 15, 15, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Logo with Glow Effect */
.logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: var(--text-color);
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 0 transparent;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.logo .dot {
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo:hover .dot {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Navigation Links with Animated Underline */
nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    color: #666;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 12px;
    transition: color 0.3s ease;
    overflow: hidden;
}

/* Animated Underline Effect */
nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: #fff;
}

/* Glow effect on hover */
nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

nav a:hover::after {
    width: 150%;
    height: 200%;
}

/* İletişim Button - Enhanced */
.btn-download {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 10px 24px;
    border-radius: 30px;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

/* Stagger Visualizer (Canvas) */
.stagger-visualizer {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.7;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #111;
    /* Ensure it sits above fixed bg */
    position: relative;
    z-index: 1;
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    word-spacing: normal;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* Base Layout */
.section {
    padding: 100px 20px;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 800;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: start;
}

.profile-img {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.8rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #bbb;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 12px;
    color: #888;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

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

.skill-card h3 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 15px;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-card strong {
    color: white;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.project-img-placeholder {
    height: 180px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-info {
    padding: 24px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-info p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}

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

.tags span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tags span:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    color: #fff;
}

.contact-links {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
        /* Add side padding to prevent text hitting edges */
    }

    .hero-text {
        font-size: 0.95rem;
        /* Slightly smaller for better fit */
        padding: 0 10px;
    }

    .hero-content {
        padding: 100px 20px 40px;
        /* Adjusted top padding */
    }

    .section {
        padding: 60px 20px;
    }

    .glass-card {
        padding: 24px 20px;
    }

    .about-text h2 {
        font-size: 1.5rem;
        /* Smaller heading on mobile */
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Reduced gap */
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Page Header (for subpages) */
.page-header {
    padding: 180px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: #888;
    font-size: 1.1rem;
}

/* Active Nav State */
nav a.active {
    color: #fff;
}

nav a.active::before {
    width: 100%;
}

/* Contact Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h4 {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.social-links a {
    margin-right: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header {
        padding: 140px 20px 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}