/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-bg: #0A192F; /* Deep Navy */
    --secondary-bg: #112240; /* Darker Navy for cards */
    --accent-blue: #3498DB; /* Bright Blue for CTAs, links */
    --accent-blue-darker: #2980b9; /* Darker shade for hover */
    --light-blue-accent: #6F9AC4; /* Lighter blue for subtle text or borders */
    --text-primary: #E0E0E0; /* Off-white/Light Gray */
    --text-secondary: #A0A0A0; /* Medium Gray */
    --text-on-accent: #FFFFFF; /* White for text on bright blue buttons */
    --border-color: #1D3461; /* Darker blue for borders */
    --header-bg: rgba(10, 25, 47, 0.85); /* Semi-transparent header */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem; /* Increased padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem; /* Slightly larger logo text */
    font-weight: 700; /* Bolder logo */
    color: #E0E0E0;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Increased gap */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500; /* Medium weight for nav links */
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative; /* For underline effect */
    padding-bottom: 0.3rem;
}

.nav-links a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-blue);
    transform: translateY(-2px); /* Slight lift on hover */
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
}
.hamburger-menu:hover,
.hamburger-menu:focus {
    color: var(--accent-blue);
}
.hamburger-menu.active .fa-bars::before {
    content: "\f00d"; /* FontAwesome close icon */
}


/* Hero Section */
#home {
    background-image: url('resources/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(135deg, var(--primary-bg) 0%, #071324 100%, rgba(10,25,47,0.7));
    padding: 6rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-logo-container {
    margin-bottom: 2rem;
}

.hero-logo-img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
    border-radius: 8px; /* Optional: if your logo looks good with rounded corners */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1; /* Ensure content is above any background elements */
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700; /* Bolder for impact */
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive font size */
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.cta-button {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: var(--accent-blue);
    color: var(--text-on-accent);
    border: none;
    border-radius: 8px; /* More rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--accent-blue-darker);
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* General Section Styling */
.features, .contact {
    padding: 5rem 1.5rem;
    background-color: var(--primary-bg); /* Default section background */
}

.features {
     background-color: #071324; /* Slightly different shade for variation */
}

.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-container h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title-container h2::after { /* Underline for section titles */
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
}


/* Features Section */
.features-spot {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.features-spot p { /* Changed from h3 to p for semantics */
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-blue-accent);
    font-weight: 300;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 2rem;
}

.feature-card {
    background: var(--secondary-bg);
    padding: 2.5rem 2rem; /* Increased padding */
    border-radius: 12px; /* More rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    text-align: center; /* Center text */
}

.feature-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: var(--card-hover-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    background-color: rgba(52, 152, 219, 0.1); /* Subtle background for icon */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700; /* Bolder card titles */
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: var(--primary-bg);
}
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}
.contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-email a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
.contact-email a:hover {
    text-decoration: underline;
}

.linkedin-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.linkedin-btn {
    display: inline-flex; /* Use inline-flex for better alignment */
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--accent-blue);
    color: var(--text-on-accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem; /* Text size */
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.linkedin-btn i {
    font-size: 1.5rem; /* Icon size */
    margin-right: 0.75rem;
}

.linkedin-btn:hover, .linkedin-btn:focus {
    background-color: var(--accent-blue-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

/* Footer */
.footer {
    background-color: #071324; /* Slightly different from primary for distinction */
    color: var(--text-secondary);
    padding: 3rem 1.5rem; /* Increased padding */
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}
.footer-link {
    color: var(--light-blue-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--accent-blue);
    color: var(--text-on-accent);
    cursor: pointer;
    padding: 0.8rem; /* Make it slightly larger */
    border-radius: 50%; /* Circular button */
    font-size: 1.2rem; /* Icon size */
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-blue-darker);
    transform: scale(1.1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Initially hidden on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: var(--secondary-bg); /* Solid background for mobile menu */
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        display: block; /* Make links take full width */
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color); /* Separators */
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a::after { /* Remove underline effect for mobile stacked links */
        display: none;
    }
    .nav-links a:hover, .nav-links a:focus {
        background-color: var(--border-color); /* Highlight on hover/focus */
        color: var(--accent-blue);
        transform: translateY(0); /* Reset desktop hover effect */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .hero {
        padding-top: 5rem; /* Adjust for header */
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Adjust hero heading for mobile */
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack feature cards on mobile */
        gap: 1.5rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }

    .section-title-container h2 {
        font-size: 1.8rem;
    }
    .features-spot p {
        font-size: 1.1rem;
    }
    .contact-content p {
        font-size: 1rem;
    }
}
