/*
Theme Name: HD Bilgisayar
Theme URI: https://hdbilgisayar.com
Author: HD Bilgisayar
Author URI: https://hdbilgisayar.com
Description: Custom theme for HD Bilgisayar ve Yazılım Sistemleri
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hdbilgisayar
*/

/* =====================================================

   HD Bilgisayar - Global Styles

   Dark Mode + Bento Grid + Glassmorphism

   ===================================================== */



/* ===== CSS Variables ===== */

:root {

    /* Colors */

    --primary: #0A0A0A;

    --secondary: #1A1A1A;

    --surface: #141414;

    --accent: #DC2626;

    --accent-hover: #EF4444;

    --accent-glow: rgba(220, 38, 38, 0.3);

    --white: #FFFFFF;

    --muted: #A3A3A3;

    --border: rgba(255, 255, 255, 0.1);



    /* Typography */

    --font-heading: 'Inter', sans-serif;

    --font-body: 'DM Sans', sans-serif;



    /* Spacing */

    --nav-height: 80px;

    --section-padding: 6rem;



    /* Effects */

    --blur: 20px;

    --transition: 0.3s ease;

    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

}



/* ===== Reset & Base ===== */

*,

*::before,

*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



html {

    scroll-behavior: smooth;

    scroll-padding-top: var(--nav-height);

}



body {

    font-family: var(--font-body);

    background-color: var(--primary);

    color: var(--white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



/* ===== Typography ===== */

h1,

h2,

h3,

h4,

h5,

h6 {

    font-family: var(--font-heading);

    font-weight: 700;

    line-height: 1.2;

}



h1 {

    font-size: clamp(2.5rem, 5vw, 4rem);

}



h2 {

    font-size: clamp(2rem, 4vw, 3rem);

}



h3 {

    font-size: clamp(1.25rem, 2vw, 1.5rem);

}



p {

    color: var(--muted);

}



a {

    color: inherit;

    text-decoration: none;

    transition: color var(--transition);

}



/* ===== Utilities ===== */

.container {

    width: 100%;

    max-width: 1280px;

    margin: 0 auto;

    padding: 0 1.5rem;

}



.section {

    padding: var(--section-padding) 0;

}



.text-accent {

    color: var(--accent);

}



.text-muted {

    color: var(--muted);

}



.badge {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 1rem;

    background: rgba(220, 38, 38, 0.2);

    border: 1px solid rgba(220, 38, 38, 0.3);

    border-radius: 9999px;

    color: var(--accent);

    font-size: 0.875rem;

    font-weight: 500;

}



.badge .dot {

    width: 8px;

    height: 8px;

    background: var(--accent);

    border-radius: 50%;

    animation: pulse 2s ease-in-out infinite;

}



/* ===== Buttons ===== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    padding: 1rem 2rem;

    font-family: var(--font-body);

    font-size: 1rem;

    font-weight: 600;

    border-radius: 0.75rem;

    border: none;

    cursor: pointer;

    transition: all var(--transition);

}



.btn:active {

    transform: scale(0.98);

}



.btn-primary {

    background: var(--accent);

    color: var(--white);

    box-shadow: 0 10px 40px var(--accent-glow);

}



.btn-primary:hover {

    background: var(--accent-hover);

    box-shadow: 0 10px 50px rgba(220, 38, 38, 0.5);

}



.btn-secondary {

    background: rgba(255, 255, 255, 0.05);

    color: var(--white);

    border: 1px solid var(--border);

    backdrop-filter: blur(10px);

}



.btn-secondary:hover {

    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.3);

}



.btn-icon {

    transition: transform var(--transition);

}



.btn:hover .btn-icon {

    transform: translateX(4px);

}



/* ===== Navigation ===== */

.navbar {

    position: fixed;

    top: 1rem;

    left: 1rem;

    right: 1rem;

    z-index: 1000;

    background: rgba(26, 26, 26, 0.8);

    backdrop-filter: blur(var(--blur));

    border: 1px solid var(--border);

    border-radius: 1rem;

    transition: all var(--transition);

}



.navbar.scrolled {

    box-shadow: var(--shadow);

}



.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 1.5rem;

}



.nav-logo {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}



.nav-logo-icon {

    width: 40px;

    height: 40px;

    background: var(--accent);

    border-radius: 0.75rem;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 4px 20px var(--accent-glow);

    transition: box-shadow var(--transition);

}



.nav-logo:hover .nav-logo-icon {

    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.5);

}



.nav-logo-text {

    font-family: var(--font-heading);

    font-weight: 700;

    font-size: 1.25rem;

}



.nav-menu {

    display: flex;

    align-items: center;

    gap: 2rem;

    list-style: none;

}



.nav-link {

    color: var(--muted);

    font-weight: 500;

    transition: color var(--transition);

}



.nav-link:hover,

.nav-link.active {

    color: var(--white);

}



.nav-cta {

    display: flex;

    gap: 0.75rem;

}



/* Mobile Menu */

.nav-toggle {

    display: none;

    padding: 0.5rem;

    background: none;

    border: none;

    color: var(--muted);

    cursor: pointer;

}



.mobile-menu {

    display: none;

    padding: 1rem 1.5rem 1.5rem;

    border-top: 1px solid var(--border);

}



.mobile-menu.active {

    display: block;

}



.mobile-menu .nav-menu {

    flex-direction: column;

    gap: 1rem;

}



@media (max-width: 768px) {



    .nav-menu,

    .nav-cta {

        display: none;

    }



    .nav-toggle {

        display: block;

    }



    .mobile-menu .nav-menu,

    .mobile-menu .nav-cta {

        display: flex;

    }



    .mobile-menu .nav-cta {

        margin-top: 1rem;

        flex-direction: column;

    }

}



/* ===== Cards ===== */

.card {

    background: rgba(20, 20, 20, 0.5);

    backdrop-filter: blur(10px);

    border: 1px solid var(--border);

    border-radius: 1rem;

    padding: 2rem;

    transition: all var(--transition);

    display: block;

    /* Ensure it works for <a> tags */

}



.card:hover {

    border-color: rgba(220, 38, 38, 0.3);

    transform: translateY(-4px);

}



/* Blog specific card styles */

.blog-card {

    height: 100%;

    display: flex;

    flex-direction: column;

    cursor: pointer;

    overflow: hidden;

    /* For image zoom effect */

}



.blog-image-container {

    height: 200px;

    width: 100%;

    margin-bottom: 1.5rem;

    border-radius: 0.75rem;

    overflow: hidden;

    position: relative;

}



.blog-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.card:hover .blog-image {

    transform: scale(1.05);

}



.card-icon {

    width: 56px;

    height: 56px;

    background: rgba(220, 38, 38, 0.2);

    border-radius: 0.75rem;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 1.5rem;

    transition: all var(--transition);

}



.card:hover .card-icon {

    background: var(--accent);

}



.card-icon svg {

    width: 28px;

    height: 28px;

    color: var(--accent);

    transition: color var(--transition);

}



.card:hover .card-icon svg {

    color: var(--white);

}



.card-title {

    margin-bottom: 0.75rem;

}



/* ===== Bento Grid ===== */

.bento-grid {

    display: grid;

    gap: 1.5rem;

    grid-template-columns: repeat(3, 1fr);

}



.bento-item {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 1.5rem;

    padding: 2rem;

    transition: all var(--transition);

    cursor: pointer;

}



.bento-item:hover {

    border-color: rgba(220, 38, 38, 0.3);

    box-shadow: 0 0 40px rgba(220, 38, 38, 0.1);

}



.bento-item.large {

    grid-column: span 2;

}



.bento-item.tall {

    grid-row: span 2;

}



@media (max-width: 1024px) {

    .bento-grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .bento-item.large {

        grid-column: span 2;

    }

}



@media (max-width: 640px) {

    .bento-grid {

        grid-template-columns: 1fr;

    }



    .bento-item.large,

    .bento-item.tall {

        grid-column: span 1;

        grid-row: span 1;

    }

}



/* ===== Stats ===== */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1.5rem;

}



.stat-card {

    text-align: center;

    padding: 1.5rem;

    background: rgba(26, 26, 26, 0.5);

    backdrop-filter: blur(10px);

    border: 1px solid var(--border);

    border-radius: 1rem;

}



.stat-value {

    font-family: var(--font-heading);

    font-size: 2.5rem;

    font-weight: 800;

    color: var(--accent);

    margin-bottom: 0.5rem;

}



.stat-label {

    color: var(--muted);

    font-size: 0.875rem;

}



@media (max-width: 768px) {

    .stats-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



/* ===== Footer ===== */

.footer {

    background: var(--primary);

    border-top: 1px solid var(--border);

    padding: 4rem 0 2rem;

}



.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 3rem;

}



.footer-brand p {

    margin: 1rem 0 1.5rem;

    max-width: 320px;

}



.footer-social {

    display: flex;

    gap: 0.75rem;

}



.social-link {

    width: 40px;

    height: 40px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border);

    border-radius: 0.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all var(--transition);

}



.social-link:hover {

    background: var(--accent);

    border-color: var(--accent);

}



.footer-title {

    font-size: 1rem;

    margin-bottom: 1.5rem;

}



.footer-links {

    list-style: none;

}



.footer-links li {

    margin-bottom: 0.75rem;

}



.footer-links a {

    color: var(--muted);

    transition: color var(--transition);

}



.footer-links a:hover {

    color: var(--accent);

}



.footer-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 2rem;

    margin-top: 3rem;

    border-top: 1px solid var(--border);

}



.footer-bottom p {

    font-size: 0.875rem;

}



.footer-legal {

    display: flex;

    gap: 1.5rem;

}



.footer-legal a {

    color: var(--muted);

    font-size: 0.875rem;

}



.footer-legal a:hover {

    color: var(--accent);

}



@media (max-width: 1024px) {

    .footer-grid {

        grid-template-columns: 1fr 1fr;

    }



    .footer-brand {

        grid-column: span 2;

    }

}



@media (max-width: 640px) {

    .footer-grid {

        grid-template-columns: 1fr;

    }



    .footer-brand {

        grid-column: span 1;

    }



    .footer-bottom {

        flex-direction: column;

        gap: 1rem;

        text-align: center;

    }

}



/* ===== Forms ===== */

.form-group {

    margin-bottom: 1.25rem;

}



.form-label {

    display: block;

    margin-bottom: 0.5rem;

    font-weight: 500;

    font-size: 0.875rem;

}



.form-input,

.form-select,

.form-textarea {

    width: 100%;

    padding: 0.875rem 1rem;

    background: rgba(26, 26, 26, 0.5);

    border: 1px solid var(--border);

    border-radius: 0.75rem;

    color: var(--white);

    font-family: var(--font-body);

    font-size: 1rem;

    transition: all var(--transition);

}



.form-input::placeholder,

.form-textarea::placeholder {

    color: var(--muted);

}



.form-input:focus,

.form-select:focus,

.form-textarea:focus {

    outline: none;

    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);

}



.form-select {

    cursor: pointer;

    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A3A3A3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 1rem center;

    background-size: 1.25rem;

}



.form-select option {

    background: var(--secondary);

}



.form-textarea {

    resize: vertical;

    min-height: 120px;

}



/* ===== Page Header ===== */

.page-header {

    padding: calc(var(--nav-height) + 4rem) 0 4rem;

    text-align: center;

    background: linear-gradient(to bottom, var(--secondary), var(--primary));

    position: relative;

    overflow: hidden;

}



.page-header::before {

    content: '';

    position: absolute;

    top: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 600px;

    height: 600px;

    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);

    pointer-events: none;

}



.page-header h1 {

    margin-bottom: 1rem;

    position: relative;

}



.page-header p {

    max-width: 600px;

    margin: 0 auto;

    font-size: 1.125rem;

    position: relative;

}



/* ===== Animations ===== */

@keyframes float {



    0%,

    100% {

        transform: translateY(0);

    }



    50% {

        transform: translateY(-10px);

    }

}



@keyframes pulse {



    0%,

    100% {

        opacity: 1;

    }



    50% {

        opacity: 0.5;

    }

}



@keyframes glow {



    0%,

    100% {

        box-shadow: 0 0 20px var(--accent-glow);

    }



    50% {

        box-shadow: 0 0 40px rgba(220, 38, 38, 0.5);

    }

}



.animate-float {

    animation: float 3s ease-in-out infinite;

}



.animate-float-delayed {

    animation: float 3s ease-in-out infinite 0.5s;

}



.animate-glow {

    animation: glow 2s ease-in-out infinite;

}



/* ===== Scrollbar ===== */

::-webkit-scrollbar {

    width: 10px;

}



::-webkit-scrollbar-track {

    background: var(--primary);

}



::-webkit-scrollbar-thumb {

    background: var(--secondary);

    border-radius: 5px;

}



::-webkit-scrollbar-thumb:hover {

    background: var(--accent);

}



/* ===== Selection ===== */

::selection {

    background: var(--accent);

    color: var(--white);

}



/* ===== Focus ===== */

:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 2px;

}



/* ===== Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {



    *,

    *::before,

    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }



    html {

        scroll-behavior: auto;

    }

}



/* ===== Grid Background ===== */

.grid-bg {

    background-image:

        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),

        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

    background-size: 60px 60px;

}



/* ===== Glow Effects ===== */

.glow-red {

    position: absolute;

    width: 500px;

    height: 500px;

    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);

    border-radius: 50%;

    pointer-events: none;

}



/* ===== Team Grid ===== */

.team-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1.5rem;

}



.team-card {

    text-align: center;

    padding: 2rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 1rem;

    transition: all var(--transition);

}



.team-card:hover {

    border-color: rgba(220, 38, 38, 0.3);

    transform: translateY(-4px);

}



.team-avatar {

    width: 100px;

    height: 100px;

    background: linear-gradient(135deg, var(--accent), #991b1b);

    border-radius: 50%;

    margin: 0 auto 1.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--font-heading);

    font-size: 2rem;

    font-weight: 700;

}



.team-name {

    margin-bottom: 0.25rem;

}



.team-role {

    color: var(--accent);

    font-size: 0.875rem;

    font-weight: 500;

}



@media (max-width: 1024px) {

    .team-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media (max-width: 640px) {

    .team-grid {

        grid-template-columns: 1fr;

    }

}



/* ===== Contact Page Styles ===== */

.contact-info {

    display: flex;

    flex-direction: column;

    gap: 2rem;

}



.contact-item {

    display: flex;

    gap: 1.5rem;

    align-items: flex-start;

    padding: 1.5rem;

    background: rgba(26, 26, 26, 0.5);

    border: 1px solid var(--border);

    border-radius: 1rem;

    transition: all var(--transition);

}



.contact-item:hover {

    border-color: rgba(220, 38, 38, 0.3);

    transform: translateX(4px);

    background: rgba(26, 26, 26, 0.8);

}



.contact-icon {

    width: 48px;

    height: 48px;

    background: rgba(220, 38, 38, 0.1);

    border-radius: 0.75rem;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--accent);

    flex-shrink: 0;

}



.contact-label {

    font-size: 0.875rem;

    color: var(--muted);

    margin-bottom: 0.25rem;

}



.contact-value {

    font-weight: 600;

    font-size: 1.125rem;

    color: var(--white);

}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--text-light);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
}

.filter-btn:hover {
    background: var(--surface-hover);
    color: var(--white);
    border-color: var(--text-light);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}