/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Light grey-blue background for sections */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #0f2136; /* Dark blue for headings */
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

section {
    padding: 60px 0;
}

a {
    text-decoration: none;
    color: #007bff; /* Default link color */
}

ul {
    list-style: none;
}

/* Header Navigation */
header {
    background-color: #0f2136; /* Dark blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #fff;
    font-weight: 500;
}

.theme-toggle i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #e0e0e0;
}
.theme-toggle i:hover {
    color: #fff;
}


/* Hero Section */
#hero {
    background-color: #ffffff; /* White background for hero */
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #0f2136;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 20px;
}

.hero-text .description {
    font-size: 1rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    margin-right: 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-buttons .btn-primary {
    background-color: #3D90D7; /* Orange */
    color: #fff;
    border: 1px solid #0118D8;
}
.hero-buttons .btn-primary:hover {
    background-color: #0118D8; /* Darker Orange */
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background-color: #fff;
    color: #0f2136;
    border: 1px solid #0f2136;
}
.hero-buttons .btn-secondary:hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    max-width: 350px; /* Max width of image */
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto; /* Center if container is wider */
}

/* Core Expertise Section */
#expertise {
    background-color: #f0f4f8; /* Light grey-blue background */
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.expertise-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.expertise-item i {
    color: #3D90D7; /* Orange */
    margin-bottom: 15px;
}

.expertise-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #0f2136;
}

.expertise-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Featured Projects Section */
#projects {
    background-color: #ffffff; /* White background for projects */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.project-card h3 {
    font-size: 1.3rem;
    margin: 15px 20px 10px;
    color: #0f2136;
}

.project-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 20px 15px;
    flex-grow: 1; /* Makes description take available space */
}

.project-card .learn-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: #3D90D7;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.project-card .learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0118D8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card .learn-more:hover::after {
    transform: scaleX(1);
}

/* Footer */
footer {
    background-color: #0f2136; /* Dark blue */
    color: #adb5bd; /* Lighter text color for footer */
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2c3e50; /* Slightly lighter border */
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4, .footer-connect h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #3D90D7; /* Orange on hover for social icons */
}
.social-icons a:last-child {
    margin-right: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Image on top on smaller screens */
        margin-bottom: 30px;
    }
    .hero-image img {
        max-width: 300px;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text .subtitle {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-connect {
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}







