* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color:#F9EDED;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}


.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0e27e1;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 50px;
}
.animated-cog{
    font-size: 1.5rem;
    color: #ff6b35; 
    animation: spin 3s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 768px) {
    .animated-cog {
        font-size: 1.2rem; /* Slightly smaller on mobile */
    }
    .logo {
        gap: 5px; /* Less space on mobile */
    }
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding-bottom: 20px;
    padding-right: 20px;
    gap: 2rem;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* style.css - Example Mobile Menu CSS */

/* Default desktop styles (nav-links are visible) */
.nav-links {
    display: flex; /* Or grid, or block as needed for desktop */
    /* ... other desktop navigation styles */
}

.mobile-menu {
    display: none; /* Hide hamburger icon on desktop */
}

/* Styles for mobile devices (e.g., screens smaller than 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column; /* Stack links vertically */
        position: absolute; /* Position them over content */
        top: 100px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: rgba(26, 35, 126, 0.98); /* Example background */
        z-index: 1000;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-out; /* For sliding effect */
        transform: translateY(-100%); /* Start off-screen */
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
        transform: translateY(0); /* Slide into view */
    }

    .nav-links li {
        margin: 15px 0; /* Spacing for mobile links */
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
        padding: 10px 0;
        display: block; /* Make links full width of container */
    }

    .mobile-menu {
        display: flex; /* Show hamburger icon on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's above nav links */
    }

    .mobile-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white; /* Color of the hamburger lines */
        transition: all 0.3s ease;
    }

    /* Optional: Animation for hamburger icon on toggle */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #3F418D), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f4f4f4" width="1200" height="800"/><polygon fill="%23ddd" points="0,800 300,600 600,700 900,500 1200,600 1200,800"/><polygon fill="%23ccc" points="0,600 200,400 500,500 800,300 1000,400 1200,500 1200,800 0,800"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a237e;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
}
.about {
    padding: 5rem 5%;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a237e;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.stat {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #1a237e, #3f51b5);
    color: #fff;
    border-radius: 10px;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.about-image:hover img {
    transform: scale(1.05);
}


.contact {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #1a237e, #3f51b5);
    color: #fff;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #ff6b35;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem 5%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
    }
    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem 5%;
    }

    .services,
    .about,
    .projects,
    .contact {
        padding: 3rem 5%;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- Dropdown Styles --- */
/* Hide the dropdown content by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(26, 35, 126, 0.95); /* Same as header background */
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 1; /* Ensure it appears above other content */
    border-radius: 5px;
    overflow: hidden; /* Cleans up rounded corners */
    left: 50%; /* Center dropdown under button */
    transform: translateX(-50%); /* Center dropdown under button */
    top: 100%; /* Position below the button */
    padding: 0.5rem 0;
}

/* Style the links inside the dropdown */
.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400; /* Adjust font weight as needed */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ff6b35; /* Orange background on hover */
    color: #fff;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease-out; /* Simple fade-in animation */
}

/* Style the dropdown button (the Projects link) */
.dropbtn {
    padding-right: 0.8rem; /* Space for the caret icon */
}

/* Style the caret icon */
.dropbtn .fa-caret-down {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate caret on hover/active */
.dropdown:hover .dropbtn .fa-caret-down {
    transform: rotate(180deg);
}

/* Ensure dropdown parent is positioned correctly */
.nav-links .dropdown {
    position: relative; /* Crucial for absolute positioning of dropdown-content */
    /* Adjust padding/margin if needed to align with other nav items */
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px); /* Start slightly above and fade in */
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0); /* End at normal position */
    }
}


/* --- Responsive Adjustments for Mobile Menu --- */
/* When the mobile menu is active, stack dropdown items vertically */
@media (max-width: 768px) {
    .nav-links .dropdown {
        position: static; /* Remove relative positioning in mobile */
        width: 100%;
        text-align: center; /* Center the "Projects" button */
    }

    .nav-links .dropdown .dropbtn {
        width: 100%; /* Make the button full width */
        padding: 1rem 0; /* Adjust padding for mobile button */
        display: block; /* Ensure it takes full width */
    }

    .dropdown-content {
        position: static; /* Remove absolute positioning */
        min-width: unset; /* Remove fixed min-width */
        box-shadow: none; /* No shadow in mobile dropdown */
        border-radius: 0;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.2); /* Slightly different background for sub-items */
        transform: none; /* Remove transform */
    }

    .nav-links.active .dropdown-content {
        display: block; /* Always show dropdown content when nav is active */
        animation: none; /* No animation in mobile */
    }

    .dropdown-content a {
        padding: 10px 20px; /* Adjust padding for mobile sub-items */
        font-size: 0.95rem; /* Slightly smaller font */
        background-color: rgba(26, 35, 126, 0.9); /* More solid background for sub-items */
    }
}