body {
    font-family: 'Sansation', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 2rem 1rem 0 1rem; */
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 0;
}

/* Ensure media scale inside containers */
img, svg, video {
    max-width: 100%;
    height: auto;
}

html {
    overflow-x: hidden;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
    padding: 2rem 3rem;
    background: rgb(249 248 244);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 96%;
    font-family: 'Sansation', sans-serif;
    box-sizing: border-box;
}

h1.main-header {
    margin: 0;
    width: 100%;
    border-radius: 0;
}

h1 .logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    width: auto;
    z-index: 10;
}

h1:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

h1 .highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    font-family: 'Sansation', sans-serif;
}
h1 .h1-content {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 22px;
    width: 100%;
    margin: 0;
}

h1 .h1-content .header-tagline {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

h1 .h1-content .about-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

h1 .h1-content .about-link:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 .label {
    width: auto;
    height: 60px;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialization {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.static-website,
.e-commerce-website,
.management-system,
.ai-innovation,
.iot-innovation,
.msg-innovation {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: rgb(249 248 244);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.static-website:hover,
.e-commerce-website:hover,
.management-system:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.static-website h3,
.e-commerce-website h3,
.management-system h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
}

.static-website p,
.e-commerce-website p,
.management-system p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.static-website ul,
.e-commerce-website ul,
.management-system ul {
    text-align: left;
    color: #5a6c7d;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.static-website li,
.e-commerce-website li,
.management-system li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.static-website button,
.e-commerce-website button,
.management-system button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    max-width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.static-website button:hover,
.e-commerce-website button:hover,
.management-system button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Business Website card with professional image background */
.static-website {
    position: relative;
    background: transparent; /* override default card background */
    color: #ffffff;
    overflow: hidden;
}

.static-website::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../images/business.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.static-website > * {
    position: relative;
    z-index: 1;
}

.static-website h3,
.static-website p,
.static-website ul,
.static-website li {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* E-commerce card with professional image background */
.e-commerce-website {
    position: relative;
    background: transparent;
    color: #ffffff;
    overflow: hidden;
}

.e-commerce-website::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../images/e-comm.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.e-commerce-website > * {
    position: relative;
    z-index: 1;
}

.e-commerce-website h3,
.e-commerce-website p,
.e-commerce-website ul,
.e-commerce-website li {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Management System card with professional image background */
.management-system {
    position: relative;
    background: transparent;
    color: #ffffff;
    overflow: hidden;
}

.management-system::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../images/management.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.management-system > * {
    position: relative;
    z-index: 1;
}

.management-system h3,
.management-system p,
.management-system ul,
.management-system li {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.specialization h3,
.ai-innovation h3 {
    text-transform: uppercase;
    /* color: #2c3e50; */
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

/* Modal loader overlay */
.modal-loading-overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-loading-overlay .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(52, 73, 94, 0.2);
    border-top-color: #34495e;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.modal-loading-overlay .loading-text {
    margin-top: 12px;
    color: #34495e;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #333;
}

.popup-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-family: 'Sansation', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.popup-content p {
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 400;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Loading state for submit button */
.submit-btn.loading {
    position: relative;
    opacity: 0.85;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #2ecc71; /* default success */
    color: #ffffff;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2000;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 0.3px;
    opacity: 0;
    pointer-events: none;
    animation: toastIn 200ms ease-out forwards, toastOut 200ms ease-in forwards 2600ms;
}

.toast.error {
    background: #e74c3c;
}

@keyframes toastIn {
    from { transform: translateX(-50%) translateY(10px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* Footer is static across all viewport heights */

@media (max-width: 490px) {
    .headline {
        font-size: 16px !important;
    }
}

@media (min-width: 491px) and (max-width: 768px) {
    .popup-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }

    .headline {
        font-size: 19px !important;
    }
}

@media (max-width: 1024px) {
    .specialization {
        flex-direction: column;
        align-items: center;
    }
    
    .static-website,
    .e-commerce-website,
    .management-system {
        max-width: 100%;
        /* width: 100%; */
        /* min-width: 250px; */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
        padding: 1rem 1rem;
    }
    
    h1 .logo {
        height: 50px;
    }
    
    .static-website,
    .e-commerce-website,
    .management-system {
        padding: 1.2rem;
    }
    
    h1 .h1-content {
        gap: 8px;
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    h1 .h1-content .about-link {
        padding: 6px 10px;
        font-weight: 600;
    }
    
    h1 .h1-content .header-tagline {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        display: flex;
        margin-top: 6px;
    }
}

/* Fixed Footer Styles */
.fixed-footer {
    position: static;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    align-self: stretch;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Sansation', sans-serif;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: #3498db;
}

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

.social-links a {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.85rem;
}

.headline {
    padding-top: 30px;
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.headline-2 {
    padding-top: 30px;
    font-size: 32px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.font-style-theme {
    background: -webkit-linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.button-theme {
    /* 1. Set the four-color gradient background */
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545) !important;
    
    /* 2. Optional: Style the text to stand out against the busy background */
    color: white; /* White text looks sharp against the dark/vibrant gradient */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Adds contrast for better readability */

    /* 3. General Button Styling (Adjust as needed) */
    padding: 10px 25px;
    border: none; /* Remove default button border */
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.margin-b-5 {
    margin-bottom: 20px;
}
.margin-b-10 {
    margin-bottom: 40px;
}

/* Business Website card with professional image background */
.ai-innovation {
    position: relative;
    background: transparent; /* override default card background */
    color: #ffffff;
    overflow: hidden;
}

.ai-innovation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0.3)), url('../images/ai.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.ai-innovation > * {
    position: relative;
    z-index: 1;
}

.ai-innovation h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
}

.ai-innovation p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* IoT */
.iot-innovation {
    position: relative;
    background: transparent; /* override default card background */
    color: #ffffff;
    overflow: hidden;
}

.iot-innovation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0.3)), url('../images/iot.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.iot-innovation > * {
    position: relative;
    z-index: 1;
}

.iot-innovation h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
}

.iot-innovation p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* MSG */
.msg-innovation {
    position: relative;
    background: transparent; /* override default card background */
    color: #ffffff;
    overflow: hidden;
}

.msg-innovation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0.3)), url('../images/msg.png') center / cover no-repeat;
    border-radius: inherit;
    z-index: 0;
}

.msg-innovation > * {
    position: relative;
    z-index: 1;
}

.msg-innovation h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Sansation', sans-serif;
    letter-spacing: 1px;
}

.msg-innovation p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.font-small {
    font-size: 12px;
}

@media (max-width: 768px) {
    /* body {
        padding: 1rem 0.5rem 0 0.5rem;
    } */
    
    .container {
        margin-top: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    
    .footer-section {
        min-width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
        padding: 0.8rem;
    }
    h1 .logo {
        height: 40px;
    }
    h1 .h1-content {
        font-size: 16px;
        gap: 6px;
    }
    .submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        border-radius: 40px;
    }
    .footer-content {
        padding: 0.8rem 0.5rem 0.5rem 0.5rem;
        gap: 0.8rem;
    }
    .header-tagline .label {
        height: 35px;
    }
    .headline-2 {
        font-size: 22px;
    }
}

@media (min-width: 200px) and (max-width: 944px) {
    .header-tagline span {
        display: none !important;
    }

    .specialization {
        padding: 10px;
    }
}