* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #070b11;
    --bg-alt: #0f1724;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-soft: rgba(148, 163, 184, 0.3);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text);
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    border-bottom: 1px solid var(--border-soft);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    border-color: var(--border-soft);
    color: var(--text);
    background: rgba(15, 23, 42, 0.9);
    text-decoration: none;
}

.nav-btn.active {
    background: var(--accent-soft);
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.7);
    text-decoration: none;
}

.nav a {
    text-decoration: none;
}

.main {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

.page-section {
    display: none;
    border-radius: 1.5rem;
    padding: 2.2rem 2.4rem;
    background: radial-gradient(circle at top left, rgba(15, 118, 255, 0.16), transparent 55%),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 60%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.page-section.active {
    display: block;
}

/* Flip Container */
.flip-container {
    perspective: 1000px;
    width: 100%;
    height: 80vh;
    position: relative;
    transform-style: preserve-3d;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Flip animations */
.flip-container.flipped .flip-inner.flip-right {
    transform: rotateY(180deg);
}

.flip-container.flipped .flip-inner.flip-left {
    transform: rotateY(-180deg);
}

/* Ensure the back face is properly oriented based on flip direction */
.flip-inner.flip-right .flip-back {
    transform: rotateY(180deg);
}

.flip-inner.flip-left .flip-back {
    transform: rotateY(-180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.flip-back {
    background: var(--bg-alt);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.flip-back-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.flip-back-btn:hover {
    background: #2563eb;
    transform: translateX(-3px);
}

.flip-back-btn svg {
    width: 18px;
    height: 18px;
}

.flip-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    color: var(--text);
}

.flip-content h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.flip-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Home Grid Layout */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    min-height: 80vh;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Center box container */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Small buttons container */
.small-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Style for small buttons */
.small-button {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    height: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('images/akd background.jpg') center/cover no-repeat;
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.small-button:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-3px) scale(1.02);
}

.small-button h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.small-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.small-button:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Position each box in the grid */
.box-1, .box-2, .box-3, .box-4 {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('images/akd background.jpg') center/cover no-repeat;
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.box-1 { grid-column: 1; grid-row: 1; }
.box-2 { grid-column: 3; grid-row: 1; }
.box-3 { grid-column: 1; grid-row: 2; }
.box-4 { grid-column: 3; grid-row: 2; }

.box-1:hover, .box-2:hover, .box-3:hover, .box-4:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-5px) scale(1.02);
}

.box-1 .info-box, .box-2 .info-box, .box-3 .info-box, .box-4 .info-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    padding: 20px;
    text-align: center;
}

.box-1 .info-box h3,
.box-2 .info-box h3,
.box-3 .info-box h3,
.box-4 .info-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.box-1 .info-box::before,
.box-2 .info-box::before,
.box-3 .info-box::before,
.box-4 .info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.box-1:hover .info-box::before,
.box-2:hover .info-box::before,
.box-3:hover .info-box::before,
.box-4:hover .info-box::before {
    background: rgba(0, 0, 0, 0.2);
}

.box-2 .info-box:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.box-2 h3 {
    position: relative;
    z-index: 2;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    transition: all 0.3s ease;
}

.box-2 .info-box:hover h3 {
    transform: scale(1.05);
}
.box-3 { grid-column: 1; grid-row: 2; }
.box-4 { grid-column: 3; grid-row: 2; }

/* Center Box - Çalışmalarımız */
.center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/sirket-gorseli.jpg') center/cover no-repeat;
    border: 3px solid var(--accent);
    border-radius: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    width: 350px;
    height: 350px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 auto 2rem;
}

.center-box h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
}

.center-box {
    transition: all 0.3s ease;
}

.center-box:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('images/sirket-gorseli.jpg') center/cover no-repeat;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.4) !important;
    transform: scale(1.02);
    z-index: 3;
}

/* Hover effect for all info boxes */
.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    background: var(--bg-alt);
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.4) !important;
    transform: scale(1.02);
    z-index: 2;
}

/* Footer powered by text */
.footer-powered-by {
    position: fixed;
    right: 1.5rem;
    bottom: 1.2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    text-transform: none;
    line-height: 1.3;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
}

.footer-powered-by span {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    padding-right: 2.5rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    background: rgba(15, 23, 42, 0.9);
}

/* Filter Card */
.filter-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-content {
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin: 0.25rem 0;
    padding: 0.5rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.action-buttons::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.action-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.action-btn i {
    font-size: 0.9em;
}

.action-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.action-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .action-btn i {
        font-size: 0.9rem;
    }
}

/* Kişi kartları için döndürme animasyonu */
.team-card {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: relative;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front, .team-card-back {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 1;
}

.team-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), 
                url('images/sirket-gorseli.jpg') center/cover no-repeat;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0.5rem 0 1.2rem;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-card h4 {
    margin: 0.5rem 0 0.25rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.team-card .text-muted {
    color: var(--accent) !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.team-card-back p.text-muted {
    color: var(--accent) !important;
    font-size: 1.5rem !important;
    margin: 0 0 1.25rem 0 !important;
    position: relative;
    z-index: 2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    width: 100%;
    font-family: 'Playfair Display', serif;
}

.team-card .badge {
    background: rgba(59, 130, 246, 0.2) !important;
    color: var(--accent) !important;
    padding: 0.35rem 0.75rem !important;
    font-weight: 500;
    border-radius: 50px;
    margin: 0.5rem 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.team-card .small {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.team-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.team-card .position {
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
}

.team-card .description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
}

.powered-by span {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Info Boxes */
.info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 150px; /* Increased from 100px */
    height: 150px; /* Increased from 100px */
    margin: 0.5rem auto; /* Center the square */
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.info-box h3 {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem; /* Slightly smaller font for square buttons */
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.2;
    width: 100%;
    white-space: normal; /* Allow text to wrap */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.info-box p {
    display: none;
}

/* Hakkımızda ve İletişim Bölümleri */
#about, #contact {
    background: var(--bg);
    padding: 3rem 1.5rem;
}

/* Biz Kimiz Section */
#about .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-description {
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 2.5rem;
}

.about-description h3 {
color: var(--accent);
font-size: 1.8rem;
margin-bottom: 1.5rem;
font-weight: 600;
position: relative;
padding-bottom: 1rem;
font-family: 'Playfair Display', serif;
}

.about-description h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 3px;
background: var(--accent);
border-radius: 3px;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.about-description p {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.about-description:hover {
    box-shadow: 0 0 15px 5px rgba(59, 130, 246, 0.2) !important;
    border-color: var(--accent) !important;
    background: var(--accent-soft);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-description {
        padding: 1.8rem;
    }
    
    .about-description h3 {
        font-size: 1.5rem;
    }
    
    .about-description p {
        font-size: 1rem;
    }
}

#about, #contact {
    padding: 2.5rem;
    background: var(--bg);
    border-radius: 1rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 1100px;
}

/* Contact Section Styles */
.contact-container {
    width: 100%;
}

.contact-container h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.contact-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0.4);
    transform-origin: center;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Top Contact Cards */
.top-contact-cards {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.contact-card .card-icon {
    background: var(--accent-soft);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--accent);
}

.contact-card .card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon svg {
    color: white;
}

.contact-card h3 {
    color: var(--text);
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Bottom Contact Cards */
.bottom-contact-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.large-contact-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.large-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.large-contact-card .card-icon {
    background: var(--accent-soft);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.large-contact-card:hover .card-icon {
    background: var(--accent);
}

.large-contact-card .card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.large-contact-card:hover .card-icon svg {
    color: white;
}

.large-contact-card h3 {
    color: var(--text);
    margin: 0 0 1.2rem 0;
    font-size: 1.4rem;
    text-align: center;
}

.large-contact-card p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    text-align: center;
}

/* Map Container */
.map-container {
    margin-top: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Working Hours */
.working-hours {
    margin: 1.5rem 0;
}

.working-hours .day {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.working-hours .day:last-child {
    border-bottom: none;
}

.working-hours .day span:first-child {
    color: var(--text);
}

.working-hours .day span:last-child {
    color: var(--accent);
    font-weight: 500;
}

.holiday-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.holiday-notice i {
    color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .top-contact-cards {
        flex-wrap: wrap;
    }
    
    .contact-card {
        min-width: calc(50% - 1rem);
    }
    
    .bottom-contact-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .contact-card {
        min-width: 100%;
    }
    
    .top-contact-cards, 
    .bottom-contact-cards {
        gap: 1rem;
    }
    
    #about, #contact {
        padding: 1.5rem;
    }
}

#about h2, #contact h2 {
    text-align: center;
    color: var(--accent);
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
    width: 100%;
}

#about h2::after, #contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0.4);
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform-origin: center;
}

/* Team Cards Container */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -0.75rem;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure columns take equal width */
.col-md-6 {
    flex: 0 0 48%;
    max-width: 48%;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

.flip-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--accent);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flip-button:hover {
    transform: rotate(180deg);
    opacity: 1;
}

.flip-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.team-card-front, .team-card-back {
    transition: all 0.5s ease;
    backface-visibility: hidden;
}

.team-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.team-card-back::-webkit-scrollbar {
    width: 4px;
}

.team-card-back::-webkit-scrollbar-track {
    background: transparent;
}

.team-card-back::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

/* Card flip effect */
.team-card.flipped .team-card-front {
    transform: rotateY(180deg);
}

.team-card.flipped .team-card-back {
    transform: rotateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .team-card {
        min-height: 380px;
    }
    
    .team-card h4 {
        font-size: 1.2rem;
    }
    
    .team-card p.small {
        font-size: 0.85rem;
    }
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 0 -0.75rem;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px 3px rgba(59, 130, 246, 0.2);
}

.card-icon {
    background: var(--accent-soft);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--accent);
}

.contact-card:hover .card-icon svg {
    color: white;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-cards {
        flex-wrap: wrap;
    }
    
    .contact-card {
        min-width: calc(50% - 1rem);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        height: auto;
        padding: 1rem;
    }
    
    .center-box {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin: 2rem auto;
    }
    
    .info-box {
        width: 120px;
        height: 120px;
        margin: 0.5rem auto;
    }
    
    .info-box h3 {
        font-size: 0.8rem;
    }
    
    .box-1, .box-2, .box-3, .box-4 {
        grid-column: 1;
        grid-row: auto;
    }
    
        font-size: 1rem;
        white-space: normal;
    }
}

@media (max-width: 1024px) {
    .contact-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* Team Card List Styles */
.team-card .list-unstyled {
    text-align: left;
    width: 100%;
    padding-left: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.team-card .list-unstyled li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    margin: 0.25rem 0;
    z-index: 2;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card .list-unstyled li:before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--accent);
    font-size: 1.6rem;
    line-height: 1;
    top: 0.4rem;
}

@media (max-width: 800px) {
    .topbar {
        padding-inline: 1rem;
    }

    .nav {
        gap: 0.35rem;
    }

    .nav-btn {
        padding-inline: 0.6rem;
        font-size: 0.8rem;
    }

    .main {
        margin-top: 1.5rem;
        padding-inline: 1rem;
    }

    .page-section {
        padding: 1.6rem 1.4rem;
    }

    .section-inner {
        grid-template-columns: 1fr;
    }

    .section-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .contact-card {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
