/*--------------------------------------------------------------
# Contact Page - Style 3: Sophisticated Tech Premium
--------------------------------------------------------------*/

:root {
    --primary: #85cf15;
    --secondary: #253858;
    --accent: #f46f25;
    --bg-deep: #0a0f18;
    /* Near black for contrast if needed */
    --bg-soft: #f8fafc;
    --border-subtle: rgba(226, 232, 240, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 30px 60px -12px rgba(37, 56, 88, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 50px 100px -20px rgba(133, 207, 21, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.1);
}

/* Luxury Mesh Hero */
#contact-hero {
    background: radial-gradient(at 0% 0%, rgba(133, 207, 21, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 56, 88, 0.03) 0px, transparent 50%),
        #fff;
    padding: 150px 0 10px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

#contact-hero h1 {
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 10px;
}

#contact-hero h1 span {
    background: linear-gradient(135deg, var(--primary), #b0e64c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#contact-hero h2 {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

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

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--primary), #b0e64c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.section-title p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Sleek Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    z-index: 20;
}

.info-card-premium {
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    position: relative;
    animation: float-slow 7s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card-premium::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 48px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent, rgba(162, 222, 59, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.info-card-premium:nth-child(2) {
    animation-delay: 1.5s;
}

.info-card-premium:nth-child(3) {
    animation-delay: 3s;
}

@keyframes float-slow {

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

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

.info-card-premium:hover {
    transform: translateY(-18px) scale(1.02) !important;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(162, 222, 59, 0.12);
}



.info-card-premium .icon-wrap {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: all 0.5s ease;
    border: 1px solid rgba(162, 222, 59, 0.1);
    box-shadow: 0 10px 20px rgba(162, 222, 59, 0.05);
}

.info-card-premium:hover .icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.info-card-premium h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.info-card-premium p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-card-premium a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(133, 207, 21, 0.2);
    transition: all 0.3s ease;
}

.info-card-premium a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* The "Grow Together" Masterpiece Section */
.premium-core-section {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    background: #fff;
}

.split-master-container {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 48px;
    box-shadow: 0 60px 120px -30px rgba(37, 56, 88, 0.12);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.master-left {
    padding: 10px 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.master-right {
    display: none;
}

.master-right img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.master-headline {
    text-align: center;
    margin-bottom: 15px;
}

.master-headline h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.master-headline h2 b {
    color: var(--primary);
    position: relative;
}

.master-headline h2 b::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(133, 207, 21, 0.15);
    z-index: -1;
}

.master-headline p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.php-email-form .form-group,
.contact-form-premium .form-group {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.php-email-form label,
.contact-form-premium label {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px !important;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.php-email-form .form-control,
.contact-form-premium .form-control {
    width: 100%;
    height: 52px;
    /* Force consistent height */
    padding: 0 24px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-main);
    box-shadow: none;
}

.php-email-form .form-control:focus,
.contact-form-premium .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(133, 207, 21, 0.08);
    outline: none;
    transform: translateY(-2px);
}

.php-email-form textarea.form-control,
.contact-form-premium textarea.form-control {
    height: auto !important;
    min-height: 110px;
    padding: 14px 24px;
}

/* Fix for intl-tel-input alignment */
.contact-form-premium .iti {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.contact-form-premium .iti__flag-container {
    z-index: 5;
}

/* Form Feedback Messages */
.php-email-form .loading,
.contact-form-premium .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    border-radius: 16px;
    color: var(--secondary);
    font-weight: 600;
    border: 1px solid var(--border-subtle);
}

.php-email-form .loading:before,
.contact-form-premium .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--primary);
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.php-email-form .sent-message,
.contact-form-premium .sent-message {
    display: none;
    color: #fff;
    background: var(--primary);
    text-align: center;
    padding: 20px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(133, 207, 21, 0.2);
}

.php-email-form .error-message,
.contact-form-premium .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 24px;
}

/* Status control classes usually added by the form script */
.php-email-form.submitting .loading {
    display: block;
}

.php-email-form.sent .sent-message {
    display: block;
}

.php-email-form.error .error-message {
    display: block;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-master-submit {
    background: var(--secondary);
    color: #fff;
    padding: 22px 60px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-shadow: 0 20px 40px rgba(37, 56, 88, 0.2);
}

.btn-master-submit:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(133, 207, 21, 0.3);
}

/* Modern Location Display */
.location-section-premium {
    padding: 80px 0;
    background: #fff;
}

.location-section-premium .row {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.modern-location-card {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-location-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
}

.location-top {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 240px;
}

.location-top .badge {
    background: #f1fdf4;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.location-top h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary);
}

.location-top p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.location-map-wrap {
    height: 350px;
    background: #f8fafc;
    filter: grayscale(1) invert(0.05);
    transition: all 0.6s ease;
}

.modern-location-card:hover .location-map-wrap {
    filter: grayscale(0) invert(0);
}

/* Web & Software Development Lifecycle */
.dev-lifecycle-premium {
    padding: 60px 0;
    background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
    position: relative;
}

.dev-card {
    padding: 40px;
    background: #fff;
    border-radius: 32px;
    border: 1px solid var(--border-subtle);
    height: 100%;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: all 0.5s ease;
}

.dev-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(37, 56, 88, 0.08);
    border-color: rgba(133, 207, 21, 0.3);
}

.dev-card:hover::before {
    height: 100%;
}

.dev-card-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(133, 207, 21, 0.05);
    border-radius: 16px;
    transition: all 0.5s ease;
}

.dev-card:hover .dev-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.dev-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
}

.dev-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.luxury-learning-section {
    padding: 20px 0 80px 0 !important;
    background:
        radial-gradient(at 0% 0%, rgba(162, 222, 59, 0.03) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(37, 56, 88, 0.02) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(162, 222, 59, 0.03) 0, transparent 50%),
        #fff;
    position: relative;
    overflow: hidden;
}

.luxury-learning-section::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background-image:
        radial-gradient(rgba(162, 222, 59, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.4;
    z-index: 0;
}

/* Continuous Learning - Higher Impact */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
}

.luxury-resource-card {
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 56px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.02),
        0 40px 80px rgba(37, 56, 88, 0.04);
    position: relative;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.luxury-resource-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 56px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent, rgba(162, 222, 59, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.luxury-resource-card:nth-child(2) {
    animation-delay: 1s;
}

.luxury-resource-card:nth-child(3) {
    animation-delay: 2s;
}

.luxury-resource-card:nth-child(4) {
    animation-delay: 3s;
}

@keyframes float {

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

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

.luxury-resource-card:hover {
    transform: translateY(-20px) scale(1.03) !important;
    background: #fff;
    border-color: rgba(162, 222, 59, 0.3);
    box-shadow:
        0 20px 40px rgba(162, 222, 59, 0.08),
        0 60px 120px rgba(37, 56, 88, 0.08);
}

.luxury-resource-card .icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(162, 222, 59, 0.08);
    border-radius: 24px;
    transition: all 0.5s ease;
}

.luxury-resource-card:hover .icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.luxury-resource-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.luxury-resource-card p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 35px;
}

.luxury-resource-card .btn-lux {
    padding: 14px 32px;
    border-radius: 100px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.luxury-resource-card:hover .btn-lux {
    background: #fff;
    color: var(--secondary);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .split-master-container {
        grid-template-columns: 1fr;
    }

    .master-right {
        display: none;
    }

    .master-left {
        padding: 60px 40px;
    }
}