/* Reset and Base Styles */
* { margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

body {  
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        /*background: #f5f5f5;*/
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        
}



.headerbox {
        background-color: black;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        border-bottom: double 1px gold;
}
/* Navigation */
       /* ===== MULTI-LEVEL DROPDOWN MENU ===== */
.navbar {
            background: #34495e;
            border-radius: 10px;
            overflow: visible;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: 0 auto;
        }

.nav-menu {
            list-style: none;
            display: flex;
            margin: 0;
            padding: 0;
            position: relative;
        }

.nav-item {
            position: relative;
        }

.nav-link {
            display: block;
            color: white;
            text-decoration: none;
            padding: 15px 20px;
            transition: background-color 0.3s ease;
            white-space: nowrap;
        }

.nav-link:hover,
.nav-item:hover .nav-link {
            background-color: #2c3e50;
        }

        /* Arrow indicator for items with submenus */
.has-submenu > .nav-link::after {
            content: '▼';
            float: right;
            margin-left: 10px;
            transition: transform 0.3s ease;
            font-size: 12px;
}

.has-submenu:hover > .nav-link::after {
            transform: rotate(180deg);
}

        /* First level dropdown */
.dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
}

.nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
}

.dropdown-item {
            display: block;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
            position: relative;
}

.dropdown-item:last-child {
            border-bottom: none;
}

.dropdown-item:hover {
            background-color: #f8f9fa;
            color: #667eea;
            padding-left: 25px;
}

        /* Submenu styling */
.has-submenu .dropdown-item::after {
            content: '▶';
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            transition: transform 0.3s ease;
}

.has-submenu:hover .dropdown-item::after {
            transform: translateY(-50%) rotate(90deg);
}

.submenu {
            position: absolute;
            top: 0;
            left: 100%;
            background: white;
            min-width: 180px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
}

.has-submenu:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
}

        /* Third level submenu */
.has-third-level .submenu {
            z-index: 1002;
}

/* Sub Header */

.subheaddiv1 {
        background-image: url("images/wscode.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 40vh;
        position: relative;

}

.subheaddiv2 {
        background: 
        linear-gradient(to right, rgba(0, 0, 0.6, 0.95), transparent);
        background-size: cover;
        height: 40vh;
        z-index: 1;
}

.subheaddiv3 {
        color: white;
        display: flex;
        margin: 0;
        justify-content: center;
        align-items: center;
        background-size: cover;
        height: 40vh; 
        z-index: 2;
        font-size: 2em;
        border-bottom: double 1px gold;
}


/* sub header icon */

.subdivicon {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 20%;
        z-index: 10;
}



/* Main Homepage (Optional)  */

.mindex {
    background-image: url("images/marblewb.png");
    background-size: cover; /* or contain */
    background-repeat: no-repeat;
    background-position: center;
    flex: 1;
    padding: 50px 20px;
    text-align: center;
    color: #666;
}

/* Main Cyber */

.mcyber {
        background-image: url("images/chi201Z.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        flex: 1;
        padding: 50px 20px;
        text-align: center;
        
}

/*Body with static background image*/

.bodystaticimg {
    
        background-image: url('your-image.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed; 
        margin: 0;
        padding: 0;
        min-height: 100vh;
}


/* Body Content Boxes */

.divoutbox {
        display: flex;
        border: 2px solid black;
        border-radius: 5px;
        width: 80%;
        padding: 10px;
        margin: 20px auto;
        justify-content: center;
        align-items: center;
        /* float over background */
        position: relative;
        z-index: 1;
        /*min-height: 200vh;*/
}

.divinbox {
        background-color:  white;

}

/* SEO Gallery */

.gallery-container {
            max-width: 900px;
            margin: 50px auto;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
}

.gallery-wrapper {
            display: flex;
            transition: transform 1s ease-in-out;
            width: calc(100% * 7); /* Total width for all 7 images */
}

.gallery-slide {
            flex: 0 0 calc(100% / 3); /* Each slide takes 1/3 of visible width */
            padding: 10px;
            box-sizing: border-box;
}

.gallery-slide img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide img:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

        /* Smooth fade overlay on hover */
.gallery-slide {
            position: relative;
}

.gallery-slide::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            bottom: 10px;
            background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
            border-radius: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 1;
}

.gallery-slide:hover::before {
            opacity: 1;
}

        /* Elegant progress indicator */
.progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            margin-top: 20px;
            overflow: hidden;
}

.progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ffffff, #f0f0f0);
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s linear;
            box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

        /* Subtle animation when transitioning */
@keyframes slideGlow {
            0% { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
            50% { box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3); }
            100% { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
}

.gallery-wrapper.transitioning .gallery-slide img {
            animation: slideGlow 1s ease-in-out;
}

        /* Optional: Add subtle breathing effect */
@keyframes breathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.01); }
}

.gallery-container:hover .gallery-wrapper {
            animation: breathe 4s ease-in-out infinite;
}

        /* Responsive design */
@media (max-width: 768px) {
            .gallery-container {
                margin: 20px;
                padding: 15px;
            }
            
            .gallery-slide img {
                height: 200px;
            }
}

@media (max-width: 480px) {
            .gallery-slide img {
                height: 150px;
            }
}

/*Cards*/

.container {
        max-width: 1200px;
        margin: 0 auto;
}

.cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-top: 40px;
}

.card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
        opacity: 0;
        transition: opacity 0.3s ease;
}

.card:hover::before {
        opacity: 1;
}

.card-image {
        width: 100%;
        height: 250px;
        overflow: hidden;
        position: relative;
}

.card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
}

.card:hover .card-image img {
        transform: scale(1.1);
}

.card-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
        pointer-events: none;
}

.card-content {
        padding: 30px 25px;
}

.card-title {
        font-size: 1.4em;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 15px;
        line-height: 1.3;
        position: relative;
}

.card-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
        transition: width 0.4s ease;
}

.card:hover .card-title::after {
        width: 60px;
}

.card-description {
        color: #5a6c7d;
        line-height: 1.6;
        font-size: 0.95em;
        margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {

        .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        }


        .card-content {
        padding: 25px 20px;
        }
}

/* Footer Styles */
footer {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
        position: relative;
        overflow: hidden;
        }

footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60);
        }

.footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 20px 20px;
        }

.footer-top {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
        }

.footer-section h3 {
        color: #3498db;
        margin-bottom: 20px;
        font-size: 1.2rem;
        font-weight: 600;
        position: relative;
        }

.footer-section h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 40px;
        height: 2px;
        background: #3498db;
        }

.footer-section p, .footer-section li {
        margin-bottom: 10px;
        color: #bdc3c7;
        line-height: 1.8;
        }

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

.footer-section ul li {
        padding: 5px 0;
        transition: all 0.3s ease;
        }

.footer-section ul li:hover {
        color: #3498db;
        transform: translateX(5px);
        }

.footer-section ul li a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
        }

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

.contact-info {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        }

.contact-info:hover {
        transform: translateX(5px);
        }

.contact-info i {
        color: #3498db;
        width: 20px;
        margin-right: 15px;
        font-size: 1.1rem;
        }

.social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        }

.social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(52, 152, 219, 0.1);
        border: 2px solid rgba(52, 152, 219, 0.3);
        border-radius: 50%;
        color: #3498db;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        }

.social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.3), transparent);
        transition: left 0.5s ease;
        }

.social-link:hover::before {
        left: 100%;
        }

.social-link:hover {
        background: #3498db;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
        }

.newsletter {
        background: rgba(52, 152, 219, 0.1);
        padding: 25px;
        border-radius: 10px;
        border: 1px solid rgba(52, 152, 219, 0.2);
        }

.newsletter-form {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        }

.newsletter-form input {
        flex: 1;
        padding: 12px 15px;
        border: none;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        }

.newsletter-form input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

.newsletter-form input::placeholder {
        color: #95a5a6;
        }

.newsletter-form button {
        padding: 12px 25px;
        background: linear-gradient(45deg, #3498db, #2980b9);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        }

.newsletter-form button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
        }

.newsletter-form button:hover::before {
        left: 100%;
        }

.newsletter-form button:hover {
        background: linear-gradient(45deg, #2980b9, #1f5f8b);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

.footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        }

.footer-bottom-links {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        }

.footer-bottom-links a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
        position: relative;
        }

.footer-bottom-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #3498db;
        transition: width 0.3s ease;
        }

.footer-bottom-links a:hover {
        color: #3498db;
        }

.footer-bottom-links a:hover::after {
        width: 100%;
        }

.copyright {
        color: #95a5a6;
        display: flex;
        align-items: center;
        gap: 5px;
        }

.heart {
        color: #e74c3c;
        animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .footer-top {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }

            .footer-bottom-links {
                justify-content: center;
            }

            .social-links {
                justify-content: center;
            }
        }

        /* Demo content styles */
.demo-content {
        padding: 100px 20px;
        text-align: center;
        background: white;
        margin: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }