/* Fonts */
@font-face {
    font-family: "roboto";
    src: url(Roboto/Roboto-BoldItalic.ttf);
}

.top-navbar .navbar-brand .brand-py {
    color: #f97316;
}

.top-navbar .navbar-brand .brand-grex {
    color: #0d6efd;
}

.page-header h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    margin: 2rem auto 0;
    padding: 1.5rem 3rem;
    border-radius: 20px;
    font-family: "roboto", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    box-shadow: 0 20px 60px rgba(26,26,46,0.4);
    max-width: 500px;
    text-align: center;
}

.main-content {
    box-sizing: border-box;
    width: 100%;
    padding: 3rem 2rem;
    max-width: 1050px;
    margin-inline: auto;
}

/* Modern Contact Form */
.contact-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 30px 60px -15px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 auto 4rem;
    transition: all 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.4);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: "roboto", sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border: 2px solid rgba(53,52,52,0.15);
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: "roboto", sans-serif;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4b2b;
    background: rgba(255,255,255,1);
    box-shadow: 
        0 0 0 4px rgba(255,75,43,0.15),
        0 10px 30px rgba(255,75,43,0.1);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 3.5rem;
    color: #666;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-group:focus-within .input-icon {
    color: #ff4b2b;
    transform: scale(1.1);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    width: 100%;
    height: 60px;
    padding: 0 2rem;
    border-radius: 18px;
    font-family: "roboto", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 50%, #667eea 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255,75,43,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255,75,43,0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.info-card {
    min-width: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.info-card i {
    font-size: 2.5rem;
    color: #ff4b2b;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-family: "roboto", sans-serif;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        padding: 1.2rem 2rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
}



  /* DuoRing Spinner */
.duo-ring {
    position: relative;
    width: 84px;
    height: 84px;
}

/* Outer clockwise ring (pygrex Blue) */
.ring-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #0d6efd; 
    border-right-color: #0d6efd;
    animation: spin 1s linear infinite;
}

/* Inner counter-clockwise ring (pygrex Orange) */
.ring-spin-reverse {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: #fd7e14; 
    animation: spin-reverse 1.2s linear infinite;
}

/* Central Logo Image */
.center-logo {
    position: absolute;
    inset: 0;
    margin: auto;
    height: 42px; /* Adjust this slightly if you want the logo bigger/smaller */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.3)); /* Subtle blue glow behind the logo */
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Fullscreen Dark Overlay Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0f19; /* Matches your hero section background */
    z-index: 99999; /* Keeps loader on top of the sidebar and navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hidden state for smooth JS fade-out */
#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}