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

:root {
    --primary-blue: #0ea5e9;
    --secondary-blue: #3b82f6;
    --dark-blue: #1e40af;
    --light-blue: #7dd3fc;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-blue), transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--dark-blue), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* macOS Dock */
.macos-dock {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 8px;
}

.dock-container {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 8px 16px 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dock-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-icon {
    font-size: 36px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    pointer-events: none;
    transition: inherit;
}

.dock-item:hover .dock-icon {
    transform: translateY(-20px) scale(1.2);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.dock-item.neighbor .dock-icon {
    transform: translateY(-8px) scale(1.1);
}

.dock-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dock-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 8px var(--primary-blue);
}

.dock-item.active .dock-indicator {
    opacity: 1;
}

/* macOS Window System */
.macos-windows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.macos-window {
    position: fixed;
    width: 90%;
    max-width: 1200px;
    top: 20px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform-origin: center center;
    will-change: transform, opacity;
}

.macos-window.active {
    pointer-events: auto;
}

/* Genie effect için CSS tabanlı animasyon */
.macos-window.genie-effect-base {
    transition: transform 0.7s cubic-bezier(0.5, 0, 0, 1),
                opacity 0.7s cubic-bezier(0.5, 0, 0, 1);
    transform-origin: center bottom;
    will-change: transform, opacity;
}

/* Açılma animasyonu - daha yumuşak */
.macos-window.genie-effect-open {
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1),
                opacity 0.6s ease-out;
    transform-origin: center bottom;
}

/* Kapanma için profesyonel genie effect */
.macos-window.genie-effect-close {
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1) !important,
                opacity 0.8s cubic-bezier(0.7, 0, 0.2, 1) !important;
    transform-origin: center bottom !important;
}

.macos-window.minimized {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.window-titlebar {
    height: 40px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    -webkit-app-region: drag;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.close {
    background: #ff5f56;
}

.control-btn.close:hover::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b0000;
    font-size: 14px;
    font-weight: bold;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.minimize:hover::before {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b5a00;
    font-size: 14px;
    font-weight: bold;
}

.control-btn.maximize {
    background: #27c93f;
}

.control-btn.maximize:hover::before {
    content: '↗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #006400;
    font-size: 10px;
    font-weight: bold;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.8;
}

.window-content {
    height: calc(100% - 40px);
    overflow-y: auto;
    padding: 40px;
}

.window-content > * {
    opacity: 1 !important;
}

.window-content .glass-card,
.window-content .section-title,
.window-content .hero-title,
.window-content .hero-subtitle,
.window-content .glass-button,
.window-content .skill-icon-img,
.window-content .skill-card h4 {
    opacity: 1 !important;
}

/* Custom scrollbar for windows */
.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.5);
    border-radius: 10px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.7);
}

/* Glass Morphism Base */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.glass-card:hover {
    border-color: var(--primary-blue);
}


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

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 2;
    padding: 40px 20px;
}

/* Profile Photo */
.profile-photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.profile-photo {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3),
                inset 0 2px 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 1;
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    color: #cbd5e1;
    margin-bottom: 40px;
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Glass Buttons */
.glass-button {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-button.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
}

.glass-button.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.glass-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(14, 165, 233, 0.5);
}

.glass-button.full-width {
    width: 100%;
}

/* Floating Cards */
.floating-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.float-card {
    padding: 30px;
    text-align: center;
    width: 100%;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.float-card h3 {
    font-size: 18px;
    color: var(--text-light);
}


.section-title {
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    font-weight: 700;
}

/* About Section */
.about-content {
    display: grid;
    gap: 30px;
}

.about-card {
    padding: 40px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--light-blue);
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

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

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    padding: 25px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.skill-icon-img {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: brightness(1.1);
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--text-light);
    opacity: 1;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    position: relative;
    overflow: hidden;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-project {
    padding: 12px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--light-blue);
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

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

.tag {
    padding: 6px 15px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    font-size: 13px;
    color: var(--light-blue);
}

/* Social Media Section */
.social-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instagram-column {
    grid-row: span 2;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-embed {
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.instagram-embed {
    min-height: 400px;
}

.instagram-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.linkedin-card {
    padding: 20px;
}

.linkedin-badge {
    margin: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.linkedin-badge .badge-base {
    transform: scale(0.85);
}

.linkedin-badge .badge-base__link {
    display: none;
}

.email-card {
    padding: 20px;
}

.email-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.email-card h3 {
    font-size: 24px;
    color: var(--light-blue);
    margin-bottom: 10px;
}

.email-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
    word-break: break-all;
}

.email-link:hover {
    color: var(--primary-blue);
}

.social-button {
    margin-top: 12px;
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 900px) {
    .social-cards-grid {
        grid-template-columns: 1fr;
    }

    .instagram-column {
        grid-row: auto;
    }
}

/* Footer */
.footer {
    padding: 40px 20px;
}

.footer-card {
    padding: 30px;
    text-align: center;
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

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

.social-icon {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .floating-cards {
        display: none;
    }

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
