:root {
    --primary: #d10a11;
    --secondary: #000;
    --light: #f8f8f8;
    --accent: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--secondary);
    overflow-x: auto;
    min-width: 1000px;
}

.container {
    width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('images/karate-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
}

.logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 960px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 10px;
}

.logo {
    width: 120px;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(209, 10, 17, 0.3);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    text-align: center;
}

.site-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.site-title p {
    font-size: 1.2rem;
    color: var(--accent);
    animation: fadeInUp 1s ease-out;
}

/* Navigation */
nav {
    background-color: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/karate-master.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.hero-btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(209, 10, 17, 0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary);
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: #f0f0f0;
    position: relative;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.member-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    border: 1px solid rgba(0,0,0,0.1);
}

.member-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.member-photo {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

/* Add loading animation */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.member-photo::before {
    content: "Photo";
    color: #999;
    font-size: 1.5rem;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

.member-rank {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    font-style: italic;
}

.member-position {
    margin-bottom: 10px;
    font-weight: bold;
}

.member-contact {
    color: #666;
    font-size: 0.9rem;
}

/* Dojos Section */
.dojos {
    padding: 80px 0;
}

.dojo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dojo-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dojo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.dojo-image {
    height: 200px;
    background-color: #e0e0e0;
    position: relative;
}

.dojo-info {
    padding: 20px;
}

.dojo-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.dojo-address, .dojo-schedule {
    margin-bottom: 10px;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
}

.contact-form .error-message {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.contact-form .form-group.error .error-message {
    display: block;
}

.contact-form .form-group.error .form-control {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(209, 10, 17, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 16px;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #b00910;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(209, 10, 17, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: rgb(12, 11, 11);
    padding: 60px 0 20px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.social-media-section {
    text-align: center;
    padding: 30px 0;
    background: rgba(29, 27, 27, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}
/* Desktop fixed layout */
.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dojo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Fixed layout for all devices */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

/* Shared Responsive Improvements */
.section-title {
    padding: 0 20px;
}

.about-content {
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

.form-control {
    font-size: 16px; /* Prevents zoom on mobile */
}rgb(58, 49, 49);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #0f0d0d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgb(12, 11, 11);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(41, 42, 54, 0.897);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(158, 145, 145, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseLogo {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.animated {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

html {
    scroll-behavior: smooth;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background: var(--primary);
    border-radius: 4px;
}

/* Fixed layout for all devices */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

/* Shared Responsive Improvements */
.section-title {
    padding: 0 20px;
}

.about-content {
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

.form-control {
    font-size: 16px; /* Prevents zoom on mobile */
}rgb(58, 49, 49);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #0f0d0d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgb(12, 11, 11);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(41, 42, 54, 0.897);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(158, 145, 145, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseLogo {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.animated {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

html {
    scroll-behavior: smooth;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Martial Arts Themed Animations */
.belt-ranks {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
}

.belt {
    width: 60px;
    height: 15px;
    border-radius: 2px;
    position: relative;
    transform: skew(-20deg);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.belt.white { background-color: #fff; border: 1px solid #ddd; }
.belt.yellow { background-color: #ffd700; }
.belt.orange { background-color: #ffa500; }
.belt.green { background-color: #228b22; }
.belt.blue { background-color: #0000cd; }
.belt.brown { background-color: #8b4513; }
.belt.black { background-color: #000; }

.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.kata-demonstration {
    position: relative;
    height: 200px;
    margin: 50px 0;
    overflow: hidden;
}

.kata-figure {
    width: 60px;
    height: 120px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: 40px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    animation: kataMove 8s infinite;
}

.kata-shadow {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 40px;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    animation: kataShadow 8s infinite;
}

@keyframes kataMove {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(300px) rotate(360deg); }
    50% { transform: translateX(600px) scaleX(-1); }
    75% { transform: translateX(300px) rotate(-360deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes kataShadow {
    0% { transform: translateX(10px) scale(1); opacity: 0.6; }
    25% { transform: translateX(310px) scale(0.8); opacity: 0.8; }
    50% { transform: translateX(610px) scale(1); opacity: 0.6; }
    75% { transform: translateX(310px) scale(0.8); opacity: 0.8; }
    100% { transform: translateX(10px) scale(1); opacity: 0.6; }
}
/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(201, 140, 183);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon.facebook:hover {
    background: #3b5998;
    transform: translateY(-5px);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transform: translateY(-5px);
}

.social-icon.youtube:hover {
    background: #FF0000;
    transform: translateY(-5px);
}/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(119, 115, 115);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon.facebook:hover {
    background: #3b5998;
    transform: translateY(-5px);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transform: translateY(-5px);
}

.social-icon.youtube:hover {
    background: #FF0000;
    transform: translateY(-5px);
}/* Contact Info Shape */
.contact-shape {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.contact-shape h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-shape p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}/* Contact Info Shape */
.contact-shape {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.contact-shape h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-shape p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}/* Footer and Social Media Styles */
footer {
    background-color: black;
    color: rgb(12, 11, 11);
    padding: 60px 0 20px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.social-media-section {
    text-align: center;
    padding: 30px 0;
    background: rgba(29, 27, 27, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}