:root {
    --primary-color: #1f2d3d;
    --accent-color: #a51717;
    --bg-color: #fcfaf2;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --light-border: #e9ecef;

    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --light-border: #334155;
    --primary-color: #e2e8f0;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .contact-container,
[data-theme="dark"] .about-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: var(--accent-color);
}

[data-theme="dark"] nav a:hover,
[data-theme="dark"] nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] header {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-col h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form-wrapper {
    background: rgba(10, 10, 10, 0.8);
}

[data-theme="dark"] .form-control {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--accent-color);
    background: rgba(40, 40, 40, 1);
    box-shadow: 0 0 0 4px rgba(165, 23, 23, 0.2);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-info {
    background-color: #0a0a0a;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 10px 10px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.logo-container img {
    height: 65px;
    width: auto;
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(31, 45, 61, 0.2);
}

nav a.ai-nav-btn {
    background: linear-gradient(135deg, #8b1414, #c43c3c);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 20, 20, 0.25);
}

nav a.ai-nav-btn:hover {
    background: linear-gradient(135deg, #a51717, #d64545);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(139, 20, 20, 0.35);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 10px;
    transition: transform 0.3s ease;
    padding: 5px;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-color);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.view-section {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-text {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.hashtag {
    color: var(--accent-color);
    font-weight: 800;
}

.about-card {
    background: var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.about-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 200px;
    color: rgba(0, 0, 0, 0.03);
    font-family: serif;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.gallery-container-relative {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-gallery-wrapper {
    width: 100%;
    margin-top: 40px;
    overflow-x: auto;
    padding: 20px 0 50px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.modern-gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0 20px;
}

.gallery-card {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

@media (max-width: 768px) {

    .prev-btn,
    .next-btn {
        display: none;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.team-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

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

.team-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    background: linear-gradient(45deg, var(--primary-color), #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.team-role {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    display: inline-block;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.team-social a:hover {
    background: rgba(7, 54, 141, 0.747);
    color: white;
    transform: translateY(-3px) rotate(360deg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    overflow: hidden;
}

.feature-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-color);
}

.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.ai-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
}

.ai-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.ai-input-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.ai-input {
    flex: 1;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.ai-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.ai-btn {
    padding: 0 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.ai-btn:hover {
    background: #34495e;
}

.ai-result {
    margin-top: 40px;
    text-align: left;
    background: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    display: none;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 5% 30px 5%;
    margin-top: auto;
}

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

.footer-col h3 {
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #636e72;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease-in-out;
    }

    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
        text-align: center;
        align-items: center;
    }
}

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-card {
        padding: 30px;
    }

    .gallery-track {
        gap: 15px;
    }

    .gallery-card {
        width: 260px;
        height: 350px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-wrapper {
        padding: 30px;
    }

    .ai-input-group {
        flex-direction: column;
    }

    .ai-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.about-modern-section {
    padding: 20px 0;
    margin-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-color);
    font-weight: 700;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-modern-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.highlight-text {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 107, 107, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.about-modern-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}