/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: black; /* Fallback background */
    color: #fff; /* Text color */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    text-align: center; /* Center text alignment by default */
}

/* Canvas Container: Fixed Fullscreen Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Always behind other elements */
    pointer-events: none; /* Ignore clicks */
}

/* Sticky Navigation Bar */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 1); /* Slight transparency */
    padding: 10px 20px;
    z-index: 10; /* Ensure it's on top */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); /* Slight shadow for separation */
}

.logo img {
    width: 30px;
    height: auto; /* Maintains aspect ratio */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #00bcd4;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Section Styling */
section {
    padding: 60px 20px;
    z-index: 1; /* Higher than the canvas */
    max-width: 1200px; /* Limit the max width */
    margin: 0 auto; /* Center the section */
    text-align: center; /* Center text alignment */
}

/* Hero Section for Intro */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: rgba(0, 0, 0, 0.99); /* Semi-transparent overlay */
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    max-width: 800px; /* Limit max width for readability */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 800px; /* Limit max width for readability */
}

.hero .btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, #6c7879, #3e494b); /* 3D gradient */
    color: #fff;
    text-decoration: none;
    border-radius: 30px; /* Rounded corners */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), -4px -4px 10px rgba(255, 255, 255, 0.1); /* Light source effect */
    font-weight: bold;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease; /* Smooth transitions */
    display: inline-block;
    position: relative;
    border: none; /* Remove default border */
}

/* Hover Effect */
.hero .btn:hover {
    background: linear-gradient(145deg, #4e5a5c, #2c3537); /* Darker gradient on hover */
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.35), -4px -4px 10px rgba(255, 255, 255, 0.1); /* Enhanced 3D effect */
    transform: translateY(-2px); /* Slight lift */
}

/* Active State */
.hero .btn:active {
    background: linear-gradient(145deg, #4a5557, #2a3133); /* Darker shade when clicked */
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.1); /* Indented effect */
    transform: translateY(1px); /* Pressed effect */
}

.about {
    background: rgba(0, 0, 0, 0.98); /* Semi-transparent */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Space between cards */
}

/* Certification & Project Cards */
.card {
    background: rgba(0, 0, 0, 0.97); /* Semi-transparent */
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.card a {
    text-decoration: none;
    color: #00bcd4;
}

.card a:hover {
    color: #fff;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Space between cards */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }
}
