:root {
    --grid-columns: 2; /* Number of columns */
    --grid-gap: 0.5rem; /* Smaller gap between grid items */
    --grid-padding: 2rem; /* Padding around the grid */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Light grey background */
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 250px; /* Reduced from 300px */
    height: 100vh;
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    padding: 1.5rem 1rem; /* Reduced padding */
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-right: 1px solid rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal overflow */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(0, 188, 212, 0.5) transparent; /* For Firefox */
}

header:hover {
    transform: translateX(5px);
}

/* Custom scrollbar styling for WebKit browsers */
header::-webkit-scrollbar {
    width: 6px;
}

header::-webkit-scrollbar-track {
    background: transparent;
}

header::-webkit-scrollbar-thumb {
    background-color: rgba(0, 188, 212, 0.5);
    border-radius: 3px;
}

.title {
    position: relative;
    padding-bottom: 1.5rem; /* Reduced padding */
    margin-bottom: 1.5rem; /* Reduced margin */
    width: 100%;
    border-bottom: 2px solid rgba(0, 188, 212, 0.1);
    color: #00bcd4; /* Cyan color */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.8rem; /* Reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.title h1 {
    margin: 0;
    font-size: 1.8rem; /* Reduced font size */
    font-weight: 700;
    letter-spacing: 1px;
}

.title h1 a {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 1.8rem; /* Reduced font size */
    text-shadow: none; /* Remove text shadow for better readability */
    font-weight: 700;
    letter-spacing: 1.5px;
}

.title h1 a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00bcd4, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.title h1 a:hover::before {
    transform: scaleX(1);
}

.title h1 a::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2; /* Increased base opacity */
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.title h1 a:hover::after {
    opacity: 0.4; /* Increased hover opacity */
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px); /* Reduced movement */
    }
}

.title h1 a .letter {
    display: inline-block;
    animation: gentleWave 3s ease-in-out infinite;
    animation-play-state: paused; /* Keep letters still by default */
}

.title h1:hover a .letter {
    animation-play-state: running; /* Only animate on hover */
}

/* Reduce animation intensity */
@keyframes gentleWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px); /* Reduced movement from -5px */
    }
}

/* More subtle letter timing */
.title h1 a .letter:nth-child(2n) {
    animation-delay: 0.1s;
}

.title h1 a .letter:nth-child(3n) {
    animation-delay: 0.2s;
}

.title h1 a:hover {
    transform: translateX(5px);
    text-shadow: 2px 2px 4px rgba(0, 188, 212, 0.1);
}

.title a {
    text-decoration: none;
    color: #00bcd4;
    transition: color 0.3s;
}

.title a:hover {
    color: #0097a7;
}

nav {
    width: 100%;
    margin-bottom: 2rem; /* Add some bottom margin */
}

nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 200px); /* Adjust based on header title height */
    overflow-y: auto;
}

nav ul li {
    margin: 0.8rem 0;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 151, 167, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a.active {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}

nav ul li a:hover:not(.active) {
    color: #00bcd4;
    transform: translateX(5px);
}

main {
    margin-left: 270px; /* Adjusted to match new header width */
    padding: 2rem;
    width: calc(100% - 270px); /* Adjusted to match new header width */
    max-width: 1200px;
}

.greeting {
    position: relative;
    text-align: left;
    margin-bottom: 4rem;
    padding: 4rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
}

.greeting-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.greeting h2 {
    margin: 0;
    color: #333333;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.greeting p {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #00bcd4;
    font-weight: 500;
}

.greeting-description {
    margin: 1.5rem 0 2rem 0;
}

.greeting-description p {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
    font-weight: normal;
}

.greeting-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 188, 212, 0.05) 100%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 1;
}

#greeting button {
    padding: 1.5rem 4rem;
    background-color: #00bcd4; /* Cyan color */
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

#greeting button:hover {
    background-color: #0097a7; /* Darker cyan */
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#greeting button:active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 188, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0);
    }
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: 2rem; /* Increased gap to prevent overlap */
    padding: var(--grid-padding);
    justify-items: center;
    align-items: start;
}

.grid-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease, z-index 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.grid-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Update responsive breakpoints for grid */
@media (max-width: 1200px) {
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-gallery img:nth-child(3n+1) {
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .grid-gallery img {
        height: 250px;
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Increased gap between form elements */
    max-width: 800px; /* Increased max-width */
    width: 90%; /* Set width to 90% */
    margin: 2rem auto; /* Center the form with margin */
    padding: 3rem; /* Increased padding */
    background-color: #ffffff; /* White background */
    border-radius: 10px; /* More rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Slightly larger shadow */
}

form label {
    font-weight: bold; /* Bold labels */
    margin-bottom: 0.5rem; /* Space between label and input */
}

form input, form textarea {
    padding: 1rem; /* Increased padding */
    border: 1px solid #ddd; /* Light border */
    border-radius: 6px; /* More rounded corners */
    font-size: 1.1rem; /* Slightly larger font size */
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text color */
}

form textarea {
    padding: 1rem; /* Increased padding */
    border: 1px solid #ddd; /* Light border */
    border-radius: 6px; /* More rounded corners */
    font-size: 1.1rem; /* Slightly larger font size */
    min-height: 200px; /* Increased minimum height */
    resize: vertical; /* Allow vertical resizing only */
}

form button {
    padding: 1rem 2rem; /* Increased padding */
    background-color: #00bcd4; /* Cyan background */
    color: #ffffff; /* White text color */
    border: none; /* Remove border */
    border-radius: 6px; /* More rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 1.1rem; /* Slightly larger font size */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

form button:hover {
    background-color: #0097a7; /* Darker cyan on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

section {
    padding: 2rem;
    margin: 1rem 0;
    background-color: #ffffff; /* White background */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section#work {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items */
}

.project {
    margin-bottom: 2rem;
}

.project img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #333333;
    color: #ffffff;
    width: calc(100% - 270px); /* Adjusted to match new header width */
    margin-left: 270px; /* Adjusted to match new header width */
    position: relative; /* Change from fixed to relative */
    margin-top: 4rem; /* Add space above footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.footer-social a:hover {
    color: #00bcd4;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    header {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #ddd; /* Light border */
        max-height: 300px; /* Limit header height on mobile */
        overflow-y: auto;
    }

    .title {
        text-align: center;
        padding-bottom: 1.5rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        text-align: center;
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
    }

    form {
        max-width: 100%; /* Full width on smaller screens */
        padding: 2rem; /* Adjust padding */
    }

    .greeting {
        padding: 2rem;
        margin-top: 1rem;
    }

    .greeting h2 {
        font-size: 2.5rem;
    }

    .greeting p {
        font-size: 1.2rem;
    }

    .greeting-decoration {
        width: 150px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.875rem;
    }

    .greeting h2 {
        font-size: 1.5rem;
    }

    .greeting p {
        font-size: 1rem;
    }

    #greeting button {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    padding: 1rem 0;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    outline: none;
}

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

#contact-form button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.contact-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    padding: 3rem;
    border-radius: 15px;
    color: white;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

#work {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}

#work .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

#work h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

#work .section-description {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.8rem 1.5rem;
    border: 2px solid #00bcd4;
    border-radius: 25px;
    background: transparent;
    color: #00bcd4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-button:hover,
.filter-button.active {
    background: #00bcd4;
    color: white;
}

.grid-gallery {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.grid-gallery .project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.grid-gallery .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-card .project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 188, 212, 0.9);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.cta-button {
    font-size: 1.2rem;
    padding: 15px 30px;
    background-color: #00B0F0; /* The Irregular at Magic High School blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #0091c7;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 176, 240, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 176, 240, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 176, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 176, 240, 0);
    }
}

#services-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#services-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);  /* Reduced float height */
    }
    100% {
        transform: translateY(0px);
    }
}

#services-button {
    animation: float 3s ease-in-out infinite;
}

/* Updated Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #00bcd4;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-group input:hover,
.form-group textarea:hover {
    background-color: #ffffff;
    border-color: #e0e7ff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00bcd4;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

#contact-form button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

#contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

#contact-form button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#contact-form button:hover i {
    transform: translateX(3px);
}

/* Add placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

/* Add focus states for better accessibility */
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
    }
}

.contact-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

contact-item a:hover {
    opacity: 0.8;
}

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

social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

#contact-form button {
    background: #00bcd4;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#contact-form button:hover {
    background: #0097a7;
    transform: translateY(-2px);
}

#contact-form button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Updated Contact Section Styles */
#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    padding: 1rem 0;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    outline: none;
}

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

#contact-form button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.contact-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    padding: 3rem;
    border-radius: 15px;
    color: white;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 2rem 1rem;
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: 2rem;
    }
    
    #contact h2 {
        font-size: 2rem;
    }
}

/* Enhanced Contact Form Styles */
.animated-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.animated-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #2c3e50;
}

.animated-form .form-group .required {
    color: #e74c3c;
    margin-left: 4px;
}

.animated-form input,
.animated-form textarea,
.animated-form select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.animated-form input:focus,
.animated-form textarea:focus,
.animated-form select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.submit-button {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

.submit-button .button-text {
    position: relative;
    z-index: 1;
    margin-right: 8px;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
    animation: pulse 2s infinite;
}

.form-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.875rem;
    color: #e74c3c;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    color: #333333;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group label i {
    color: #00bcd4;
}

.contact-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    padding: 2.5rem;
    border-radius: 15px;
    color: #ffffff;
}

.contact-info p,
.contact-info span,
.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-right: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: #ffffff;
}

.contact-info .info-header {
    margin-bottom: 2rem;
}

.contact-info .info-header h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info .info-header h3 i {
    color: #ffffff;
    font-size: 1.6rem;
    opacity: 0.9;
}

.contact-info .info-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ...existing code... */

#contact .contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#contact .contact-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

#contact .contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    border-radius: 2px;
}

#contact .contact-description {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    margin-top: 2rem;
}

/* ...existing code... */

/* Form validation styles */
.form-messages {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.submit-button.loading .button-text,
.submit-button.loading .fa-paper-plane {
    display: none;
}

.submit-button.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form feedback animation */
.form-feedback {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.form-feedback.show {
    height: 20px;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* ...existing code... */

/* Magic Circle Animation */
.magic-circle {
    position: fixed;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    background-image: url('magic-circle.png');
    background-size: contain;
    animation: rotate 20s linear infinite;
}

.magic-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 176, 240, 0.2) 0%, transparent 70%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mahouka-inspired Button Style */
.cta-button {
    font-size: 1.2rem;
    padding: 15px 30px;
    background-color: #00B0F0; /* The Irregular at Magic High School blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #0091c7;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 176, 240, 0.5);
}

/* Magic Activation Effect */
.magic-effect {
    position: relative;
    overflow: hidden;
}

.magic-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 176, 240, 0.4),
        transparent
    );
    transition: 0.5s;
}

.magic-effect:hover::before {
    left: 100%;
}

/* ...existing code... */

.project-card {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.filter-button {
    transition: all 0.3s ease;
}

.filter-button.active {
    background: #00bcd4;
    color: white;
}

/* Optimize animations for better performance */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 188, 212, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0);
        transform: scale(1);
    }
}

/* Fix mobile responsiveness */
@media (max-width: 768px) {
    header {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    footer {
        width: 100%;
        margin-left: 0;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        position: static;
    }
}

/* Add will-change for smoother animations */
.title h1 a,
.nav ul li a,
.grid-gallery img,
.project-card {
    will-change: transform;
}

/* Add responsive design improvements */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .greeting h2 {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}

/* Add loading state for form submission */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
