:root {
    --primary-color: #1a1a2e;
    --secondary-color: #fff;
    --background-color: #f8f9fa;
    --text-color: #333;
    --hover-color: #16213e;
    --accent-color: #4361ee;
    --accent-hover: #3a56d4;
    --card-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    --transition-speed: 0.4s;
}

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

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styles with Animation */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .logo {
    margin-left: 1rem;
    transition: transform var(--transition-speed) ease;
}

header .logo:hover {
    transform: translateY(-2px);
}

header .logo span {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--accent-color), #4895ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all var(--transition-speed) ease;
}

nav {
    margin-right: 1rem;
}

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

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
    display: inline-block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Active nav link */
nav ul li a.active,
nav ul li a[aria-current="page"] {
    color: var(--accent-color);
}
nav ul li a.active::after,
nav ul li a[aria-current="page"]::after {
    width: 100%;
}

/* Enhanced Hero Section */
#hero {
    position: relative;
    background: url('../Images/Homepage.gif') no-repeat center center/cover;
    color: var(--secondary-color);
    text-align: center;
    padding: 10rem 1rem;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

#hero:hover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

#hero p {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

#hero .btn {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

#hero .btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    transform: translateY(-3px);
}

#hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#hero .btn:hover::before {
    left: 100%;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: #f1f3f9;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* About Section Enhancement */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content img {
    max-width: 220px;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    border: 5px solid white;
}

.about-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Grid Items Enhancement */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2.5rem auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    height: 250px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-speed) ease;
}

.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.grid-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item:hover .overlay {
    opacity: 1;
}

.grid-item .text {
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.grid-item:hover .text {
    transform: translateY(0);
}

/* Enhanced Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer ul li {
    margin: 0 15px;
    transition: all var(--transition-speed) ease;
}

footer ul li:hover {
    transform: translateY(-3px);
}

footer ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: all var(--transition-speed) ease;
}

footer ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

footer ul li a:hover {
    color: var(--accent-color);
}

footer ul li a:hover::after {
    width: 100%;
}

/* Add responsive styles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header {
        padding: 0.5rem 1rem;
    }
    
    nav ul {
        gap: 0.7rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
    
    #hero h1 {
        font-size: 2.2rem;
    }
    
    #hero p {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    header .logo {
        margin-bottom: 1rem;
        margin-left: 0;
    }
    
    nav {
        margin-right: 0;
    }
    
    #hero {
        padding: 6rem 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this script to index.html to enable scroll animations */
