:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.contact-btn {
    padding: 0.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    opacity: 0;
    transform: translateY(30px);
    animation: punchUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

@keyframes punchUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-btn__lines {
    width: 30px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn__lines::before,
.menu-btn__lines::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.menu-btn__lines::before {
    transform: translateY(-8px);
}

.menu-btn__lines::after {
    transform: translateY(8px);
}

/* Mobile menu open state */
.menu-btn.open .menu-btn__lines {
    transform: translateX(-20px);
    background: transparent;
}

.menu-btn.open .menu-btn__lines::before {
    transform: rotate(45deg) translate(15px, -15px);
}

.menu-btn.open .menu-btn__lines::after {
    transform: rotate(-45deg) translate(15px, 15px);
}

/* Contact button container */
.contact-btn-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem 0;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    transition: all 0.3s ease;
}

/* Show desktop contact button by default */
.contact-btn-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem 0;
}

/* Hide mobile contact button by default */
.mobile-contact-btn {
    display: none;
}

/* Mobile menu button - hidden by default */
.menu-btn {
    display: none;
    margin-left: auto;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    /* Show mobile menu button on small screens */
    .menu-btn {
        display: flex;
    }
    
    /* Hide desktop contact button on small screens */
    .desktop-only {
        display: none;
    }
    
    /* Show mobile contact button in menu */
    .mobile-contact-btn {
        display: block;
        margin-top: 1.5rem;
    }
    
    .mobile-contact-btn .contact-btn {
        background: #3498db;
        color: white;
        border: none;
        padding: 0.8rem 2rem;
        display: inline-block;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .mobile-contact-btn .contact-btn:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        z-index: 5;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    .nav-center.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        color: white !important;
        font-size: 1.2rem;
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 5px;
        text-align: center;
    }
    
    .mobile-contact-btn {
        margin-top: 1.5rem;
    }
    
    .mobile-contact-btn .contact-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid white;
        padding: 0.8rem 2rem;
    }
    
    .mobile-contact-btn .contact-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .contact-btn-container {
        display: none;
    }
    
    .contact-btn {
        padding: 0.8rem 2rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.contact-btn {
    padding: 0.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.navbar.hide {
    transform: translateY(-100%);
    /* Keep the navbar clickable when hidden */
    pointer-events: none;
}

/* Ensure the navbar is above other content when visible */
.navbar:not(.hide) {
    pointer-events: auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #5dade2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Background */
.hero.main-background {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../images/small size.jpeg');
    background-size: cover;
    background-position: center 10%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    min-height: 100vh;
    width: 100%;
}

/* Hero Section Animation */
@keyframes punchUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    opacity: 0;
    animation: punchUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

.hero-content {
    padding: 2rem;
    padding-top: 30%;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: punchUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-content > *:hover {
    transform: translateY(-5px);
}

.hero-content h1 {
    animation-delay: 0.6s;
}

.hero-content p {
    animation-delay: 0.7s;
}

.hero-content h3 {
    animation-delay: 0.8s;
}

.hero-content .cta-buttons {
    animation-delay: 1s;
}

.hero h3 {
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h3 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.6;
    margin: 1rem 0;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

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

section {
    padding: 5rem 0;
}

/* Section Title Styles */
.section-title {
    text-align: center;
    color: #3498db;
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 300;
    font-style: italic;
}

.section-title::after {
    display: none;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: #687989;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 0.5rem auto 0;
}

.about {
    background: #000000;
    padding: 6rem 0;
    position: relative;
    color: #ffffff;
}

/* About Grid Styles */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1%;
}

.about-column:first-child,
.about-column:last-child {
    grid-row: 1;
    margin-top: 60%;
}

.about-column:nth-child(2) {
    grid-row: 1 / span 2;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-tile {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-tile.about-text {
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.about-tile.about-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: liquid-shine 8s linear infinite;
}

.about-tile.about-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.15),
        transparent 70%
    );
    opacity: 0.6;
}

@keyframes liquid-shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

.about-tile.about-text p {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-tile.about-text a {
    text-decoration: none;
}

.about-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.about-tile h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-tile p {
    color: #f0f0f0;
    line-height: 1.6;
}

.about-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-text p {
    margin: 10px 0;
    max-width: 90%;
}

.about-text p:last-child {
    font-style: italic;
    color: #3498db;
    margin-bottom: 0;
}

.about-tile.about-text p {
    margin: 10px 0;
    max-width: 90%;
    color: #ffffff;
}

.services {
    padding: 100px 0;
    color: #fff;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    background: linear-gradient(90deg, #fff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #3498db;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact textarea {
    height: 150px;
    resize: vertical;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor:pointer;
}

/* Contact Section with Matrix Background */
.contact {
    position: relative;
    background: #000000;
    color: #fff;
    padding: 5rem 0 0;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    left: 0;
    right: 0;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    opacity: 0.9;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px 0;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-title {
    text-align: center;
    color: #3498db;
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 300;
    font-style: italic;
}

.contact-grid {
    display: grid;
    padding-top: 10%;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-info h2,
.contact-form-container h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    width: 100%;
}

.contact-details {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ccc;
    width: 100%;
}

.contact-details i {
    color: #3498db;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.quick-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.quick-links h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.link-columns {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-container input,
.contact-form-container textarea {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form-container textarea {
    min-height: 150px;
    resize: vertical;
}

/* Original button styles */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #3498db;
    color: white;
    border-radius: 25px;
}

.btn.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact form button specific styles */
.contact-form-container .btn.primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: white;
    border-radius: 10px; /* Enhanced border radius for a more rounded appearance */
}

.contact-form-container .btn.primary:hover {
    background-color: #2980b9;
}

.contact-form-container .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 10, 10, 0.95);
    z-index: 3;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    opacity: 1;
}

.footer-bottom.visible {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 -5px 50px rgba(52, 152, 219, 0.3);
}

/* Add padding to the last section to prevent content from being hidden behind the footer */
.contact .container {
    padding-bottom: 80px; /* Adjust this value based on your footer's height */
}

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .link-columns {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .nav-center:not(.active) .nav-links {
        display: none !important;
    }
}

/* Form Validation Styles */
.form-errors {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #c00;
}

.form-errors p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.form-success {
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #0c0;
}

.form-success p {
    margin: 0;
    font-size: 0.9rem;
}

/* Loading State Styles */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    margin-right: 0.5rem;
}

/* Form Input Focus States */
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Form Input Error States */
.contact-form-container input.error,
.contact-form-container textarea.error {
    border-color: #c00;
    background-color: #fff8f8;
}

/* About Image Styles */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    position: relative;
}

.about-tile:hover .about-image {
    transform: scale(1.05);
}

/* Adjust the about-tile that contains images */
.about-column .about-tile:has(.about-image) {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.about-column .about-tile:has(.about-image)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Increased from 0.4 to 0.6 for darker overlay */
    border-radius: 8px;
    pointer-events: none;
}

/* About Button Styles */
.about-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.about-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-btn:hover::before {
    left: 100%;
}

/* Text Carousel Styles */
.text-carousel-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: absolute;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

/* Modern Slideshow Styles */
.modern-slideshow {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.modern-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 255, 0.1) 10px,
            rgba(0, 255, 255, 0.1) 20px
        );
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

.modern-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 255, 255, 0.1) 0%,
            transparent 50%
        );
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.slideshow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.slide {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.slide-text h3 {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.slide-text h5 {
    color: #90caf9;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    text-align: center;
}

.slide-text p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-nav:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
    left: 1rem;
}

.slide-nav.next {
    right: 1rem;
}

.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #3498db;
    transform: scale(1.2);
}

.section-heading {
    text-align: center;
    color: #b0bec5;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Education Section Styles */
.education-section {
    padding: 100px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.education-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-card h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-card h6 {
    color: #90caf9;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.education-card h7 {
    color: #b0bec5;
    font-size: 0.9rem;
    font-weight: 300;
    display: block;
}

/* Passion Section Styles */
.passion-section {
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.passion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.passion-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.passion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.passion-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.passion-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.passion-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

.passion-content {
    color: #fff;
}

.passion-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.passion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .passion-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .passion-content h2 {
        font-size: 2rem;
    }
}

.about-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.about-section h1,
.about-section h2,
.about-section h3,
.about-section p {
    text-align: center;
    margin: 0 auto;
}

.about-section .about-grid {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-section .about-tile {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.about-section .about-tile p {
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
}

.about-section .about-btn {
    margin: 2rem auto 0;
    text-align: center;
}

.about-section h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ffffff, #a8a8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.biography-section {
    background: transparent;
    position: relative;
    padding: 4rem 2rem 0;
    color: #ffffff;
    border-bottom: 0;
    margin-bottom: 0;
}

.biography-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    margin-bottom: 0;
}

.biography-text,
.mission-section,
.method-section {
    width: 100%;
    max-width: 1000px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.biography-text:hover,
.mission-section:hover,
.method-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.biography-text:hover h2,
.mission-section:hover h2,
.method-section:hover h2 {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.biography-text:hover p,
.mission-section:hover p,
.method-section:hover p {
    color: rgba(255, 255, 255, 1);
    transition: color 0.3s ease;
}

.biography-text:last-child,
.mission-section:last-child,
.method-section:last-child {
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.biography-header h2,
.mission-section h2,
.method-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.biography-header h2::after,
.mission-section h2::after,
.method-section h2::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.biography-text p,
.mission-section p,
.method-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .biography-text,
    .mission-section,
    .method-section {
        padding: 2rem;
    }
    
    .biography-header h2,
    .mission-section h2,
    .method-section h2 {
        font-size: 2rem;
    }
}

.page-content {
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 120px 20px 40px;
    position: relative;
    backdrop-filter: blur(8px);
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/dark.avif') no-repeat center top fixed;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.about-section,
.container {
    position: relative;
    z-index: 1;
}

.biography-section {
    margin-top: 4rem;
}

.cta-buttons .btn.primary {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.cta-buttons .btn.primary::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(52, 152, 219, 0),
        rgba(52, 152, 219, 0.8),
        rgba(52, 152, 219, 0),
        transparent
    );
    border-radius: 33px;
    z-index: -1;
    animation: snakeGlow 4s linear infinite;
    background-size: 200% 100%;
    filter: blur(2px);
}

@keyframes snakeGlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.cta-buttons .btn.primary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-buttons .btn.primary:hover::before {
    animation: snakeGlow 2s linear infinite;
    filter: blur(3px);
}

.cta-buttons .btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:active {
    transform: translateY(-2px);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.quote-icon {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-image img {
    transform: scale(1.1);
}

.author-info {
    flex-grow: 1;
}

.author-info h4 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }
}

/* Photo Gallery Styles */
.gallery-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.gallery-section h1 {
    color: #3498db;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.gallery-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-caption {
    display: none; /* Hide the captions completely */
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.3);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Remove the caption transform effect since we're hiding captions */
.photo-item:hover .photo-caption {
    transform: none;
}

.photo-caption h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .gallery-section {
        padding: 1rem;
    }
    
    .gallery-section h1 {
        font-size: 2rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.closing {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.closing .lightbox-content {
    transform: scale(0.8);
    opacity: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.closing .lightbox-content img {
    transform: scale(0.95);
    filter: brightness(0.8);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.lightbox.closing .close-lightbox {
    opacity: 0;
    transform: translateY(20px) rotate(90deg);
}

.lightbox.active .close-lightbox {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.close-lightbox:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }
    
    .close-lightbox {
        top: -35px;
        right: 0;
        font-size: 1.5rem;
    }
}

.about-column > a[style*="position: relative"] {
    position: relative !important;
    display: block;
}

.about-tile.about-text {
    position: relative;
    z-index: 1;
}

.about-orb-bg {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    max-width: 90vw;
    max-height: 90vw;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.98) 56%, rgba(0,0,0,0.92) 62%, transparent 63%),
        conic-gradient(from 0deg, #217dbb, #174a6a, #3498db, #217dbb 100%);
    box-shadow:
        0 0 60px 10px #174a6a,
        0 0 120px 30px #217dbb;
    filter: blur(2px) brightness(0.6);
    opacity: 0.85;
    animation: about-orb-ring-pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes about-orb-ring-pulse {
    0% {
        filter: blur(2px) brightness(0.6);
        opacity: 0.85;
        box-shadow:
            0 0 60px 10px #174a6a,
            0 0 120px 30px #217dbb;
    }
    50% {
        filter: blur(6px) brightness(0.8);
        opacity: 0.95;
        box-shadow:
            0 0 100px 30px #217dbb,
            0 0 180px 60px #3498db;
    }
    100% {
        filter: blur(2px) brightness(0.6);
        opacity: 0.85;
        box-shadow:
            0 0 60px 10px #174a6a,
            0 0 120px 30px #217dbb;
    }
}

.about .container {
    position: relative;
    z-index: 1;
}

.about .about-orb-bg {
    z-index: 0;
}

.about .about-grid,
.about h2,
.about .section-title {
    position: relative;
    z-index: 2;
}

/* Mobile layout for about section */
@media (max-width: 768px) {
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    
    .about-column {
        margin-top: 0 !important;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .about-column:first-child,
    .about-column:last-child {
        margin-top: 0;
    }
    
    .about-column:nth-child(2) {
        grid-row: auto;
    }
    
    /* Create a flex container for side-by-side images */
    .mobile-first-row,
    .mobile-second-row {
        display: flex;
        gap: 1rem;
        width: 100%;
    }
    
    .mobile-first-row .about-tile,
    .mobile-second-row .about-tile {
        flex: 1;
        width: 50%;
    }
    
    /* Order the elements for mobile layout */
    .mobile-top {
        order: 1;
    }
    
    .mobile-first-row {
        order: 2;
    }
    
    .mobile-middle {
        order: 3;
    }
    
    .mobile-second-row {
        order: 4;
    }
    
    .mobile-bottom {
        order: 5;
    }
    
    /* Make tiles smaller on mobile */
    .about-tile {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .about-tile.about-text {
        min-height: 300px;
    }
}

