/**
 * Cyber Defence - Contact Page Styles
 * Contains all styling for the contact page elements with comprehensive responsive fixes
 */

/* Root Variables */
:root {
    --primary-color: #0e76bc;
    --secondary-color: #00356b;
    --accent-color: #00eeff;
    --dark-color: #0a192f;
    --darker-color: #060f1d;
    --light-color: #f0f8ff;
    --text-color: #e0e0e0;
    --text-dark: #333;
    --transition-slow: all 0.5s ease;
    --transition-medium: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Global container settings */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
    background: linear-gradient(135deg, var(--darker-color), var(--dark-color));
    overflow: hidden;
    z-index: 1;
}

/* WebGL Background Canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 90%;
}

.contact-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 3s linear infinite;
    background-size: 200% auto;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Enhanced visible styling for the "Touch" text */
.accent-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.contact-hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Contact Info Section */
.contact-section {
    position: relative;
    padding: 100px 8% 80px;
    background: var(--dark-color);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    padding: 20px 0;
    position: relative;
}

.contact-info-box {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 118, 188, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.contact-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.contact-info-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 118, 188, 0.1), transparent);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.contact-info-box:hover::after {
    opacity: 1;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(14, 118, 188, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.5s ease;
}

.contact-info-box:hover .info-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.info-title {
    font-size: 22px;
    color: var(--text-color);
    margin: 0;
}

.info-content {
    padding-left: 65px;
}

.info-text {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.info-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.info-link:hover {
    color: var(--accent-color);
}

.info-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 118, 188, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px);
}

.social-link:hover::before {
    transform: translateY(0);
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.option-card {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 118, 188, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(14, 118, 188, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--accent-color);
    transition: all 0.5s ease;
}

.option-card:hover .option-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.option-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.option-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.option-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.option-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.option-link:hover {
    color: var(--accent-color);
}

.option-link:hover i {
    transform: translateX(5px);
}

/* Contact Form */
.contact-form-container {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 118, 188, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    z-index: 1;
}

.form-section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 118, 188, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 118, 188, 0.2);
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: rgba(10, 25, 47, 0.9);
    padding: 0 5px;
    color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-direction: column;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 238, 255, 0.8));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
}

.submit-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: all 0.5s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 118, 188, 0.3);
}

.reset-btn {
    padding: 15px 30px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(14, 118, 188, 0.5);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.reset-btn:hover {
    background: rgba(14, 118, 188, 0.1);
    border-color: var(--primary-color);
}

/* Form Animation Border */
.input-animation-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.form-control:focus ~ .input-animation-border {
    width: 100%;
}

/* Form Error Message */
.form-error-message {
    display: none;
    color: #ff3860;
    font-size: 13px;
    margin-top: 5px;
}

.form-error-message.active {
    display: block;
    animation: fadeIn 0.3s;
}

.form-control.error {
    border-color: #ff3860;
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
    animation: fadeIn 1s;
}

.success-icon {
    font-size: 60px;
    color: #00c851;
    margin-bottom: 20px;
    animation: bounceIn 1s;
}

.success-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.success-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.success-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.success-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 118, 188, 0.3);
}

/* Project Form Section */
.project-form-section {
    padding: 80px 8%;
    position: relative;
    background: var(--darker-color);
    overflow: hidden;
}

.project-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(14, 118, 188, 0.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(14, 118, 188, 0.05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(14, 118, 188, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, rgba(14, 118, 188, 0.05) 25%, transparent 25%);
    background-size: 20px 20px;
    z-index: 0;
}

.project-form-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 118, 188, 0.2);
}

.project-form-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.project-form-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    position: relative;
}

.form-col-full {
    grid-column: span 1;
}

.project-form-group {
    margin-bottom: 25px;
    position: relative;
}

.project-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.project-form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 118, 188, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.project-form-control:focus {
    outline: none;
    background: rgba(10, 25, 47, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(14, 118, 188, 0.2);
}

.project-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230e76bc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Checkbox Style */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    min-height: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 118, 188, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(14, 118, 188, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 22px;
}

.form-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 5px;
}

.project-form-buttons {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.project-submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 238, 255, 0.8));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
}

.project-submit-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: all 0.5s ease;
    z-index: -1;
}

.project-submit-btn:hover::before {
    left: 100%;
}

.project-submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 118, 188, 0.3);
}

/* File Upload Style */
.file-input-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    border: 2px dashed rgba(14, 118, 188, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(14, 118, 188, 0.05);
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(14, 118, 188, 0.1);
}

.file-input-label.highlight {
    background: rgba(14, 118, 188, 0.15);
    border-color: var(--accent-color);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.file-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    text-align: center;
}

.file-preview {
    display: none;
    margin-top: 15px;
}

.file-preview.active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(14, 118, 188, 0.1);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
    width: 100%;
}

.file-preview-item i {
    color: var(--accent-color);
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 5px;
}

.file-remove {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-remove:hover {
    color: #ff3860;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Modified for better responsiveness */
.contact-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid.single-column .contact-info-box {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-grid.single-column .contact-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animation for flash text */
.flash-animation {
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Animation for floating icon */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Animation for pulse icon */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation for rotate icon */
.animate-rotate {
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Query Styles for Responsive Design */
/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .contact-hero-title {
        font-size: 42px;
    }
    
    .contact-hero-description {
        font-size: 16px;
    }
    
    .contact-section,
    .project-form-section {
        padding: 80px 5%;
    }
    
    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-container,
    .project-form-container {
        padding: 30px;
    }
    
    .form-buttons,
    .project-form-buttons {
        flex-direction: row;
    }
    
    .submit-btn, 
    .reset-btn,
    .project-submit-btn {
        width: auto;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex-direction: row;
    }
    
    .form-col-full {
        grid-column: span 2;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .contact-hero-title {
        font-size: 54px;
    }
    
    .contact-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-buttons,
    .project-form-buttons {
        flex-direction: row;
    }
    
    .submit-btn, 
    .reset-btn,
    .project-submit-btn {
        width: auto;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex-direction: row;
    }
    
    .form-col-full {
        grid-column: span 2;
    }
}

/* Mobile Phones (up to 767px) */
@media (max-width: 767px) {
    .contact-hero {
        padding: 100px 5% 60px;
        min-height: 50vh;
    }
    
    .contact-hero-content {
        width: 95%;
    }
    
    .contact-hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .contact-hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .contact-section,
    .project-form-section {
        padding: 60px 5%;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .info-title {
        font-size: 18px;
    }
    
    .info-content {
        padding-left: 55px;
    }
    
    .contact-form-container,
    .project-form-container {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .form-section-title,
    .project-form-title {
        font-size: 24px;
    }
    
    .project-form-subtitle {
        font-size: 14px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .file-input-label {
        height: 120px;
    }
    
    .file-icon {
        font-size: 30px;
    }
    
    .file-text {
        font-size: 14px;
    }
    
    /* Ensure the form controls are properly sized for mobile */
    .form-control,
    .project-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Handle small screens with improved header */
    header {
        padding: 15px 5%;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo-img {
        width: 35px;
        height: auto;
    }
    
    /* Reduce particle canvas opacity on mobile */
    #particleCanvas {
        opacity: 0.3;
    }
    
    /* Reduce animation speeds on mobile */
    .animated.animate__fadeInDown,
    .animated.animate__fadeInUp {
        animation-duration: 0.5s;
    }
}

/* Extra Small Phones (up to 479px) */
@media (max-width: 479px) {
    .contact-hero-title {
        font-size: 28px;
    }
    
    .accent-text {
        display: inline-block;
    }
    
    .contact-hero-description {
        font-size: 13px;
    }
    
    .contact-info-box {
        padding: 15px;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 10px;
    }
    
    .info-title {
        font-size: 16px;
    }
    
    .info-content {
        padding-left: 45px;
    }
    
    .info-text {
        font-size: 13px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }   
    
    .option-title {
        font-size: 18px;
    }
    
    .form-buttons,
    .project-form-buttons {
        gap: 10px;
    }
    
    .submit-btn,
    .reset-btn,
    .project-submit-btn,
    .success-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
    
    /* Make file upload more compact */
    .file-input-label {
        height: 100px;
    }
    
    .file-preview-item {
        font-size: 12px;
        padding: 6px 10px;
    }
}

