/*
Theme Name: Cooper Data Theme
Author: Gemini
Description: A custom theme for the Cooper Data website.
Version: 1.0
*/

/* --- General Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
}

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

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 31, 63, 0.9); /* Slightly transparent Navy Blue */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    box-shadow: 0 4px 20px rgba(0, 116, 217, 0.3); /* Blueish glow */
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d; /* Enable 3D transforms for children */
    perspective: 1000px;
    padding: 20px 0;
    border-bottom: 3px solid #0074D9; /* Blue */
    animation: slideDown 0.5s ease-out;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

header h1 a {
    color: #00BFFF; /* Deep Sky Blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: right;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

header nav ul li a:hover, header h1 a:hover {
    color: #87CEFA; /* Light Sky Blue */
}

/* --- Main Content --- */
main {
    padding: 40px 0;
    animation: fadeIn 1s ease-in;
}

/* --- Home Page --- */
.home-main .welcome-section {
    text-align: center;
    padding: 100px 0;
}

.home-main .welcome-section h1 {
    font-size: 3em;
    color: #001f3f; /* Navy Blue */
}

/* --- Services Page --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-thumbnail img {
    width: 100%;
    height: auto;
}

.service-content {
    padding: 20px;
}

.service-content h2 {
    margin-top: 0;
    color: #001f3f; /* Navy Blue */
}

/* --- About Page --- */
.about-content {
    margin-bottom: 40px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.contact-form input[type="submit"] {
    background-color: #0074D9; /* Blue */
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: #001f3f; /* Navy Blue */
}

/* --- Contact Page --- */
.contact-section {
    padding: 40px 0;
}

.contact-section h1 {
    text-align: center;
    color: #001f3f;
    margin-bottom: 20px;
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-section form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-section form input[type="text"],
.contact-section form input[type="email"],
.contact-section form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
}

.contact-section form textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
}

.contact-section form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #0074D9; /* Initial blue background */
    color: #00FFFF; /* Bright Cyan text */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative; /* For 3D transform */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 116, 217, 0.3); /* Subtle blue glow */
}

.contact-section form input[type="submit"]:hover {
    background-color: #001f3f; /* Darker blue on hover */
    color: #FFFFFF;
    transform: translateY(-3px) rotateX(5deg); /* Subtle 3D tilt on hover */
    box-shadow: 0 8px 25px rgba(0, 116, 217, 0.5); /* More prominent glow on hover */
}

/* --- General Responsiveness --- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #001f3f;
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 999;
    }

    .main-navigation-menu.toggled {
        display: flex;
    }

    .main-navigation-menu li {
        margin: 0;
        text-align: center;
    }

    .main-navigation-menu li a {
        padding: 15px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}





header:hover {
    box-shadow: 0 8px 30px rgba(0, 116, 217, 0.5);
    transform: translateY(-2px); /* Subtle float effect on hover */
}



.main-navigation-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation-menu li {
    margin: 0 15px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.main-navigation-menu li:hover {
    transform: translateY(-3px) rotateX(5deg); /* Subtle 3D tilt on hover */
}

.main-navigation-menu li a {
    color: #feffff; /* Brighter Cyan */
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    overflow: hidden;
}

.main-navigation-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    transform: skewX(-20deg);
}

.main-navigation-menu li a:hover::before {
    left: 100%;
}

.main-navigation-menu li a:hover {
    color: #FFFFFF;
    background-color: rgba(0, 116, 217, 0.4); /* More prominent Blue highlight on hover */
    box-shadow: 0 0 10px rgba(0, 116, 217, 0.5);
}




/* --- Footer --- */
footer {
    background-color: #001f3f; /* Navy Blue */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* --- Animations --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Home Page Grid Layout --- */

.home-main .container.home-grid {

    display: flex;

    gap: 30px; /* Space between columns */

    align-items: flex-start; /* Align items to the top */

}



.home-sidebar {

    flex: 1;

    max-width: 400px;

}



.main-home-content {

    flex: 2;

}



/* --- About Us Section --- */

.about-us-section {

    background-color: #fff;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    margin-bottom: 30px;

}



.about-us-section:hover {

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

}



.about-us-section h2 {

    color: #001f3f;

    margin-top: 0;

    border-bottom: 2px solid #0074D9;

    padding-bottom: 10px;

    margin-bottom: 20px;

}



.about-us-content p {

    line-height: 1.7;

    color: #555;

}



/* --- News Section --- */

.news-section {

    background-color: #fff;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

}



.news-section h2 {

    color: #001f3f;

    margin-top: 0;

    border-bottom: 2px solid #0074D9;

    padding-bottom: 10px;

    margin-bottom: 20px;

}



.news-item {

    padding: 15px 0;

    border-bottom: 1px dashed #eee;

}



.news-item:last-child {

    border-bottom: none;

}



.news-item h3 {

    margin-top: 0;

    margin-bottom: 5px;

    font-size: 1.4em;

}



.news-item h3 a {

    color: #0074D9;

    text-decoration: none;

    transition: color 0.2s ease;

}



.news-item h3 a:hover {

    color: #001f3f;

}



.news-meta {

    font-size: 0.9em;

    color: #888;

    margin-bottom: 10px;

}



.news-excerpt p {

    color: #555;

    line-height: 1.6;

}



.news-item .read-more {

    display: inline-block;

    margin-top: 10px;

    color: #0074D9;

    text-decoration: none;

    font-weight: bold;

    transition: color 0.2s ease;

}



.news-item .read-more:hover {

    color: #001f3f;

}



/* --- Responsive Adjustments for Home Page Grid --- */

@media (max-width: 992px) {

    .home-main .container {

        flex-direction: column; /* Stack columns on smaller screens */

    }



    .home-sidebar {

        position: static; /* Disable fixed on small screens */

        width: 100%;

        order: 2; /* Move sidebar below main content on small screens */

    }



    .main-home-content {

        order: 1; /* Move main content above sidebar on small screens */

        margin-left: 0;

    }

}



/* --- News Page Styles --- */

.news-page-main .container {

    max-width: 800px;

    margin: 0 auto;

    padding: 40px 20px;

}



.news-page-main .news-section {

    background-color: #fff;

    padding: 30px;

    border-radius: 8px;

    box-shadow: 0 2px 15px rgba(0,0,0,0.08);

}



.news-page-main .news-section h2 {

    font-size: 2.5em;

    color: #001f3f;

    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #0074D9;
    padding-bottom: 15px;
}

.news-page-main .news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-page-main .news-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-page-main .news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.news-page-main .news-item h3 {
    margin-top: 0;
    font-size: 1.8em;
}

.news-page-main .news-item h3 a {
    color: #0074D9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-page-main .news-item h3 a:hover {
    color: #001f3f;
}

.news-page-main .news-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.news-page-main .news-excerpt p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-page-main .news-item .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0074D9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 8px 15px;
    border: 1px solid #0074D9;
    border-radius: 3px;
}

.news-page-main .news-item .read-more:hover {
    background-color: #0074D9;
    color: #fff;
}

/* --- Services Page --- */
.cooper-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cooper-service {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    text-align: center;
}

.cooper-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cooper-service .service-icon img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%;
}

.cooper-service h3 {
    margin-top: 0;
    color: #001f3f; /* Navy Blue */
}

.cooper-service .service-descriptor {
    color: #555;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 116, 217, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 116, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 116, 217, 0);
    }
}

.cooper-service {
    animation: pulse 2s infinite;
}

.cooper-service:nth-child(2) {
    animation-delay: 0.2s;
}

.cooper-service:nth-child(3) {
    animation-delay: 0.4s;
}
