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

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
}

/* Media query for body */
@media only screen and (max-width: 1024px) {
    body {
        font-size: 18px;
    }
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
}

header {
    background: #000;
    color: #fff;
    padding: 0 12rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-width: 80px;
    height: auto;
    display: block;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 60px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007FFF;
}

/* Media query for nav */
@media only screen and (max-width: 1024px) {
    header {
        padding: 0 8rem;
    }

    .nav-links li {
        margin-left: 30px;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 768px) {
    header {
        padding: 0 4rem;
    }

    .logo img {
        max-width: 70px;
    }

    .nav-links a {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 480px) {
    header {
        padding: 0 1rem;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        max-width: 60px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
    }
}

.hero {
    height: 110vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12rem;
    background-color: #000;
}

.hero-text {
    max-width: 50%;
    text-align: left;
}

.pillbox {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007FFF; 
    color: #000; 
    border-radius: 12px; 
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.animate-slide {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out; 
}

.animate-slide.show {
    opacity: 1;
    transform: translateX(0);
}

.hero-text h1 {
    font-size: 5rem;
    color: #fff;
}

.hero-text p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 12px 42px;
    background-color: #007FFF;
    color: #000;
    border: 2px solid #007FFF;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    border-radius: 8px; 
}

.cta-btn:hover {
    background: #0056b3;
    color: #000; 
    border-color: #007FFF;
}


.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    margin: 0 20px; 
    font-size: 2.2rem; 
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007FFF; 
}

.hero-image {
    width: 700px; 
    height: 700px; 
    object-fit: cover; 
    border-radius: 50%; 
    margin-right: 5%; 
}

.section {
    padding: 4rem 0;
    text-align: center;
    background-color: #000;
}

/* Media query for hero + section */
@media only screen and (max-width: 1024px) {
    .hero {
        padding: 0 8rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .cta-btn {
        font-size: 1.1rem;
        padding: 10px 36px;
    }

    .pillbox {
        font-size: 1.3rem;
    }

    .social-icons a {
        margin: 0 10px; 
        font-size: 2rem; 
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .hero-image {
        width: 500px; 
        height: 500px; 
    }
}

@media only screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 0 4rem;
        padding-top: 60px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-image {
        width: 300px; 
        height: 300px; 
    }

    .cta-btn {
        font-size: 1rem;
        padding: 8px 32px;
    }

    .pillbox {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 480px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 0 1.5rem;
        margin-left: 0;
        padding-top: 110px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

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

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

    .cta-btn {
        font-size: 1rem;
        padding: 8px 28px;
    }

    .pillbox {
        font-size: 1.1rem;
    }

    .hero-image {
        width: 100%;
        margin-top: 2rem;
    }

    .social-icons {
        text-align: center;
    }

    .social-icons a {
        margin: 0 5px;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin: 0 auto;
    max-width: 100vw;
    padding: 0 10rem;
    margin-top: 36px;
}

.grid-item {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}

.grid-item img {
    width: 350px; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 10px;
}

.grid-item h4 {
    font-size: 1.5rem;
    color: #007FFF;
    margin-top: 1rem;
}

.grid-item p {
    font-size: 1rem;
    color: #fff; 
    margin-top: 0.5rem;
}

/* Media query for grid */
@media only screen and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 4rem;
    }

    .grid-item img {
        width: 300px;
        height: 240px;
    }

    .grid-item h4 {
        font-size: 1.4rem;
    }

    .grid-item p {
        font-size: 0.95rem;
    }
}

@media only screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 4rem;
    }

    .grid-item img {
        width: 250px;
        height: 200px;
    }

    .grid-item h4 {
        font-size: 1.3rem;
    }

    .grid-item p {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .grid-item img {
        width: 100%;
        height: auto;
    }

    .grid-item h4 {
        font-size: 1.2rem;
    }

    .grid-item p {
        font-size: 0.85rem;
    }
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: #000; 
    color: white;
}
