/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from dashboard - teal and blue tones */
    --primary-teal: #14b8a6;
    --primary-teal-dark: #0d9488;
    --primary-teal-light: #5eead4;
    --primary-blue: #0ea5e9;
    --primary-blue-dark: #0284c7;
    --primary-blue-light: #7dd3fc;
    --dark-gray: #1e293b;
    --medium-gray: #475569;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header & Navigation - Beyaz arka plan (logo uyumu) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-image {
    height: 60px;
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* A harfinin sol tarafı - Koyu teal/lacivert, yukarı doğru sivrilen */
.logo-a-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 50px;
    background: linear-gradient(to top, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
    clip-path: polygon(0% 100%, 0% 20%, 50% 0%, 100% 20%, 100% 100%);
    border-radius: 2px 0 0 0;
}

/* A harfinin sağ tarafı - Açık mavi/teal, glitch efekti */
.logo-a-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.glitch-line {
    background: var(--primary-blue);
    height: 3px;
    margin-bottom: 2px;
    border-radius: 1px;
    opacity: 0.9;
}

.glitch-line:nth-child(1) {
    width: 35px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
}

.glitch-line:nth-child(2) {
    width: 30px;
    margin-left: 2px;
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
}

.glitch-line:nth-child(3) {
    width: 25px;
    margin-left: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
}

.glitch-line:nth-child(4) {
    width: 20px;
    margin-left: 6px;
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
}

.glitch-line:nth-child(5) {
    width: 15px;
    margin-left: 8px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-aydinnet {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-teal-light);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.logo-soft {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue-light);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-teal);
    background-color: var(--light-gray);
}

.nav-link.active {
    color: var(--primary-teal);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Orta bölüm - Koyu arka plan + erp.jpg (düşük opaklık) */
.hero,
.services,
.erp,
.about,
.projects,
.contact {
    position: relative;
    background-color: #0f172a;
    background-image: 
        linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.88) 100%),
        url('erp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before,
.services::before,
.erp::before,
.about::before,
.projects::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Hero Section - Ortada, tek satır başlık */
.hero {
    margin-top: 80px;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* İlk satır: beyaz / açık gri (NetProGlass "Optik Mağazanızı" gibi) */
.hero-title-line {
    color: rgba(255, 255, 255, 0.95);
}

/* İkinci satır: parlak teal (NetProGlass "Geleceğe Taşıyın" gibi) */
.hero-title-accent {
    color: var(--primary-teal-light);
    background: linear-gradient(135deg, var(--primary-teal-light) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4), 0 2px 8px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5), 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
    border-color: transparent;
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.3) 0%, 
        rgba(14, 165, 233, 0.3) 50%,
        rgba(20, 184, 166, 0.3) 100%);
    filter: blur(40px);
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.4) 0%, 
        rgba(14, 165, 233, 0.4) 100%);
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 20%;
    animation: float 8s ease-in-out infinite reverse;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.4) 0%, 
        rgba(20, 184, 166, 0.4) 100%);
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 70%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.3) 0%, 
        rgba(14, 165, 233, 0.3) 100%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 1;
}

.services .container,
.erp .container,
.about .container,
.projects .container,
.contact .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--primary-teal-light) 0%, 
        var(--primary-teal) 30%,
        var(--primary-blue) 60%,
        var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.3));
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2), 
                0 0 0 1px rgba(20, 184, 166, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4), 
                0 8px 20px rgba(14, 165, 233, 0.3),
                0 0 0 1px rgba(20, 184, 166, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--primary-teal);
    background: rgba(15, 23, 42, 0.8);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Projects Section */
.projects-placeholder,
.contact-placeholder {
    text-align: center;
    padding: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
}

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
}

/* ERP Section */
.erp {
    position: relative;
    overflow: hidden;
}

.erp-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.erp-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.erp-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

.erp-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 184, 166, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

.erp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.25);
}

.erp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.erp-card:hover .erp-image {
    transform: scale(1.05);
}

.erp-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    opacity: 0.9;
}

.erp-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-teal-light);
}

@media (max-width: 1024px) {
    .erp-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .erp-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    .erp-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .erp-gallery {
        grid-template-columns: 1fr;
    }
    .erp-card {
        aspect-ratio: 16 / 10;
    }
}

/* Footer - Beyaz arka plan (logo uyumu) */
.footer {
    background-color: var(--white);
    color: var(--text-dark);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo .logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo .logo-aydinnet {
    color: var(--primary-teal-light);
}

.footer-logo .logo-soft {
    color: var(--primary-blue-light);
}

.footer-logo .logo-a-left {
    background: linear-gradient(to top, var(--primary-teal-dark) 0%, var(--primary-teal-light) 100%);
}

.footer-logo .glitch-line {
    background: var(--primary-blue-light);
}

.footer-logo .glitch-line:nth-child(1) {
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
}

.footer-logo .glitch-line:nth-child(2) {
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
}

.footer-logo .glitch-line:nth-child(3) {
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
}

.footer-logo .glitch-line:nth-child(4) {
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
}

.footer-logo .glitch-line:nth-child(5) {
    background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: var(--spacing-sm);
        display: block;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .hero-container {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-teal);
    color: var(--white);
}
