@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* FinansX Colors - Purple/Blue */
    --finansx-primary: hsl(260, 85%, 60%);
    --finansx-secondary: hsl(240, 90%, 65%);
    --finansx-gradient: linear-gradient(135deg, #8B5CF6, #6366F1, #3B82F6);

    /* MuhasebeX Colors - Cyan/Teal */
    --muhasebex-primary: hsl(190, 85%, 55%);
    --muhasebex-secondary: hsl(175, 80%, 50%);
    --muhasebex-gradient: linear-gradient(135deg, #06B6D4, #14B8A6, #10B981);

    /* HukukX Colors - Orange/Amber */
    --hukukx-primary: hsl(25, 95%, 60%);
    --hukukx-secondary: hsl(45, 95%, 55%);
    --hukukx-gradient: linear-gradient(135deg, #F97316, #FB923C, #FBBF24);

    /* OfisX Colors - Pink/Purple */
    --ofisx-primary: hsl(330, 85%, 65%);
    --ofisx-secondary: hsl(280, 85%, 65%);
    --ofisx-gradient: linear-gradient(135deg, #EC4899, #D946EF, #A855F7);

    /* Neutrals */
    --dark-bg: hsl(240, 15%, 8%);
    --dark-surface: hsl(240, 12%, 12%);
    --dark-elevated: hsl(240, 10%, 16%);
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(0, 0%, 75%);
    --text-muted: hsl(0, 0%, 55%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-family);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-6xl);
    font-weight: 900;
}

h2 {
    font-size: var(--font-size-5xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 15, 20, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #8B5CF6, #06B6D4, #F97316, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            hsl(260, 85%, 15%) 0%,
            hsl(240, 80%, 10%) 25%,
            hsl(190, 75%, 12%) 50%,
            hsl(25, 85%, 15%) 75%,
            hsl(330, 80%, 15%) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #FFFFFF, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: var(--font-size-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--font-size-xl);
    transition: var(--transition-base);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.7);
}

/* Project Showcase Sections */
.project-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.project-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Project Content - Always from LEFT */
.project-content {
    opacity: 0;
    transform: translateX(-100px);
    transition: all var(--transition-slow);
}

.project-section.visible .project-content {
    opacity: 1;
    transform: translateX(0);
}

.project-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.project-content h2 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-5xl);
}

.project-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.project-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.project-features li {
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-base);
}

.project-features li:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.project-features li::before {
    content: '✓';
    font-weight: bold;
    font-size: var(--font-size-xl);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--font-size-lg);
    text-decoration: none;
    color: white;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.project-link:hover::before {
    transform: scaleX(1);
}

.project-link:hover {
    transform: translateY(-2px);
}

/* Project Visual - Always from RIGHT */
.project-visual {
    opacity: 0;
    transform: translateX(100px);
    transition: all var(--transition-slow) 0.2s;
}

.project-section.visible .project-visual {
    opacity: 1;
    transform: translateX(0);
}

.project-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
}

.project-image-wrapper:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
    transition: var(--transition-base);
}

.project-image-wrapper:hover::before {
    opacity: 0;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    object-fit: cover;
    object-position: center 70%;
}

/* FinansX Specific */
.finansx-section {
    background: linear-gradient(135deg,
            hsl(260, 85%, 10%) 0%,
            hsl(240, 80%, 8%) 100%);
}

.finansx-section .project-badge {
    background: var(--finansx-gradient);
    color: white;
}

.finansx-section h2 {
    background: var(--finansx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finansx-section .project-features li::before {
    background: var(--finansx-gradient);
    color: white;
}

.finansx-section .project-link {
    background: var(--finansx-gradient);
}

.finansx-section .project-image-wrapper {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

/* MuhasebeX Specific */
.muhasebex-section {
    background: linear-gradient(135deg,
            hsl(190, 85%, 10%) 0%,
            hsl(175, 80%, 8%) 100%);
}

.muhasebex-section .project-badge {
    background: var(--muhasebex-gradient);
    color: white;
}

.muhasebex-section h2 {
    background: var(--muhasebex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.muhasebex-section .project-features li::before {
    background: var(--muhasebex-gradient);
    color: white;
}

.muhasebex-section .project-link {
    background: var(--muhasebex-gradient);
}

.muhasebex-section .project-image-wrapper {
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
}

/* HukukX Specific */
.hukukx-section {
    background: linear-gradient(135deg,
            hsl(25, 95%, 10%) 0%,
            hsl(45, 85%, 8%) 100%);
}

.hukukx-section .project-badge {
    background: var(--hukukx-gradient);
    color: white;
}

.hukukx-section h2 {
    background: var(--hukukx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hukukx-section .project-features li::before {
    background: var(--hukukx-gradient);
    color: white;
}

.hukukx-section .project-link {
    background: var(--hukukx-gradient);
}

.hukukx-section .project-image-wrapper {
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.4);
}

/* OfisX Specific - Updated to show full image */
.ofisx-section {
    background: linear-gradient(135deg,
            hsl(330, 85%, 10%) 0%,
            hsl(280, 80%, 8%) 100%);
}

.ofisx-section .project-badge {
    background: var(--ofisx-gradient);
    color: white;
}

.ofisx-section h2 {
    background: var(--ofisx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ofisx-section .project-features li::before {
    background: var(--ofisx-gradient);
    color: white;
}

.ofisx-section .project-link {
    background: var(--ofisx-gradient);
}

.ofisx-section .project-image-wrapper {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
    min-height: 800px;
    /* Force full image display */
}

.ofisx-section .project-image {
    object-fit: contain;
    /* Show entire image without cropping */
    object-position: center center;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: var(--spacing-3xl) var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #8B5CF6, #06B6D4, #F97316, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--text-primary);
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    max-width: 1600px;
    margin: var(--spacing-xl) auto 0;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --font-size-6xl: 3.5rem;
        --font-size-5xl: 2.5rem;
        --spacing-4xl: 4rem;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .project-content {
        transform: translateY(50px);
    }

    .project-section.visible .project-content {
        transform: translateY(0);
    }

    .project-visual {
        transform: translateY(50px);
    }

    .project-section.visible .project-visual {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --spacing-3xl: 3rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .project-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
}