 html {
            overflow-x: hidden; /* Ensure no horizontal scrollbar on html element */
        }
        *, *::before, *::after {
            box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
        }



/* Basic Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4e5;
    margin: 0;
    
}
/* Ensure the body is initially invisible */
body {
    opacity: 1;
    animation: fadeIn 1.2s ease-in-out forwards; /* 1.5s duration, ease-in-out timing, stays at final state */
}

/* Define the keyframe animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start fully transparent */
    }
    to {
        opacity: 1; /* End fully opaque */
    }
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden; /* Clear floats */
}

/* Header and Navigation */
header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0px;
    position: relative;
  

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
}


.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50 ;
    align-items:center;
    font-family: 'Times New Roman', Times, serif;
    animation: pulse 2s infinite ease-in-out;
}
.logo {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
     
}

nav ul li {
    margin-left: 23px;
   
}

nav ul li a {
    color:black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1rem;
    
}

nav ul li a:hover {
    color:#2d61a2;
    text-decoration: underline;
    text-decoration-color:black ;
    text-decoration-thickness: 0.2rem;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.051), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1500x800?text=InnovateX+Hero+Image') no-repeat center center/cover;
    color: #fff;
    padding: 40px 20px;
   
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 10px;
    font-family:'Times New Roman', Times, serif;;
}

.tinker {
        font-size: 2.25rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-decoration: underline;
    text-decoration-color: white;
    text-decoration-thickness:0.01rem;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

/* Sections */
section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

section:nth-of-type(even) {
    background-color: #f9f9f9;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 20px;
    color: #2c3e50;
    font-family: serif;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
}
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 3px;
    background-color: #165a9e; /* Match heading color */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

section h2:hover::after {
    width: 30%; /* How long the underline grows */
}

/* About Us */
#about{
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
    background: transparent;
    z-index: 1;
}
#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('COPY IMG 2.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: -1;
}
#about h2 {
    margin-bottom: 20px;
}

#about p {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin: 10px auto 20px auto;
    font-weight: 300;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 30px;
    margin-bottom: 50px;
}
#services h2 {
    margin-top: 5px;
    margin-bottom: 20px;
 
}

.service-item {
    background: hsl(0, 0%, 97%);
    padding: 70px;
    margin-left:20px ;
    margin-right:20px ;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.623);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #227fbd;
    font-family: sans-serif;
}

.service-item p {
    font-size: 1rem;
    color: #312f2f;
    
}

/* Contact Form */
#contact h2 {
    margin-bottom: 30px;
}
.para{
  padding-left: 300px;
  font-weight: 200;
}

#contactForm {
    margin-top: 10px;
}
#contactForm {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

#contactForm .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    background: #2ecc71; /* Green for submit */
}

#contactForm .btn:hover {
    background: #27ae60;
}


.contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
.service-item img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#canvas-container {
            position: fixed; 
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            z-index: 0; 
}
#overlay-text {
            position: relative; 
            z-index: 1; 
            background-color: rgba(0, 0, 0, 0.6); 
            padding: 2rem;
            border-radius: 1rem; 
            text-align: center;
            color: #ffffff; 
            max-width: 90%; 
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
            backdrop-filter: blur(5px); 
            -webkit-backdrop-filter: blur(5px);
        }