/* Base Variables */
:root {
    --primary-color: #198754;
    /* Teal/Green */
    --primary-dark: #146c43;
    --primary-light: #d1e7dd;
    --accent-color: #0d6efd;
    /* Blue */
    --text-dark: #0F172A;
    --text-light: #475569;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;

    --gradient-primary: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-text: linear-gradient(135deg, #0F172A 0%, #198754 100%);
    --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 25px 50px -12px rgba(25, 135, 84, 0.15);

    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: var(--light-bg);
    position: relative;
}

/* Decorative Background Elements */
.bg-light::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(25, 135, 84, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-left: 20px;
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated logo size */
.logo-img {
    height: 150px;
    /* Super sized as requested */
    width: auto;
    transition: var(--transition);
    /* mix-blend-mode: multiply; Removed for PNG logo */
    margin-top: -5px;
    filter: brightness(0) invert(1);
    /* Make logo white initially */
}

.navbar.scrolled .logo-img {
    height: 100px;
    filter: none;
    /* Restore original colors on scroll */
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    position: relative;
    padding: 5px 0;
    color: var(--white);
    /* White text on transparent header */
    transition: var(--transition);
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
    /* Dark text on white header */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    height: 2px;
    background: var(--white);
    /* White underline initially */
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-links li a::after {
    background: var(--primary-color);
    /* Green underline on scroll */
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--white);
    opacity: 0.9;
}

.navbar.scrolled .nav-links li a:hover,
.navbar.scrolled .nav-links li a.active {
    color: var(--primary-color);
    opacity: 1;
}

/* Specific fix for the Contact button which has .btn-primary class */
.nav-links .btn-primary {
    padding: 12px 28px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
    color: var(--white) !important;
    /* Always white text for the button */
}

/* Ensure hover state for button doesn't get messed up */
.nav-links .btn-primary:hover,
.nav-links .btn-primary.active {
    color: var(--white) !important;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    margin-right: -10px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    /* Matches theme */
    margin: 6px 0;
    border-radius: 3px;
    transition: var(--transition);
    background-color: var(--white);
    /* White hamburger initially */
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--primary-color);
    /* Green hamburger on scroll */
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.nav-links.active~.nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(25, 135, 84, 0.8)), url('../assets/img/ayazagaya-da-bilisim-vadisi.jpg') center/cover no-repeat fixed;
    margin-top: 0;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger font size */
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 700px;
    font-weight: 400;
}

/* Section Headers */
.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    background: rgba(25, 135, 84, 0.08);
    padding: 8px 20px;
    border-radius: 100px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 600;
    background: linear-gradient(to right, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80%;
    height: 80%;
    background: var(--primary-light);
    border-radius: 20px;
    z-index: 1;
}

/* Process Section */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.process-item {
    position: relative;
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-number {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--white);
    border: 4px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-item:hover .process-number {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.process-content {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.process-item:hover .process-content {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.process-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-content p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(25, 135, 84, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 60px;
    align-items: center;
    justify-items: center;
}

.partner-card {
    width: 200px;
    height: 120px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-card img {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    mix-blend-mode: multiply;
}

.partner-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Team */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-card {
    background: var(--white);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 300px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-info {
    padding: 30px;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.team-info .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-dark);
    margin: 0 5px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: #0077b5;
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact */
/* Contact Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    align-items: center;
    padding: 15px;
    border-radius: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--white);
    width: 48px !important;
    /* Force standardized width */
    height: 48px !important;
    /* Force standardized height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin: 0;
    /* Remove any unexpected margins */
}

.info-item h4 {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item div p,
.info-item div a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--white);
    text-decoration: none;
}

.contact-map {
    height: 100%;
    min-height: 600px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%) contrast(1.1);
}

/* Footer */
.footer {
    background: #0F172A;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 130px;
    /* Increased to ~2x size */
    width: auto;
    /* Make logo white for dark footer */
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.footer p,
.footer ul li a {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 992px) {

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

    .contact-map {
        min-height: 400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .logo-img {
        height: 70px;
        /* Adjusted for mobile to fit properly */
        margin-top: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 999;
        /* Higher than overlay (998) */
    }

    /* Force dark text in mobile menu regardless of header state */
    .nav-links li a {
        color: var(--text-dark);
    }

    .nav-links li a::after {
        background: var(--primary-color);
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--primary-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        /* Prevent too wide on larger mobiles */
    }

    /* Force color on partner logos for mobile */
    .partner-card img {
        filter: grayscale(0);
        opacity: 1;
    }


    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        /* Reduced padding */
        font-size: 1rem;
        margin: 0;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .contact-info {
        padding: 40px 24px;
    }

    .section {
        padding: 60px 0;
    }

    .stats-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-item {
        gap: 20px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        border-width: 2px;
    }
}