/* Global Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0e0e0e;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #0e0e0e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
}

.nav a {
    margin-left: 25px;
    color: #aaa;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s, padding 0.3s;
    /* Added to make them behave like buttons */
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav a:hover {
    color: #0e0e0e;
    background-color: #fff;
}

/* Hero Section with background image */
.hero {
    position: relative;
    padding: 120px 40px 80px;
    text-align: center;
    background-image: url('images/Background3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This ensures a smooth transition to the image */
    transition: background-image 0.5s ease-in-out;
}

/* Overlay for text readability on hero section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 0;
}

.highlight {
    color: #fff;
}

.tagline {
    color: #aaa;
    margin-top: 15px;
    font-size: 1.1rem;
}

.socials a {
    margin: 10px;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.socials a:hover {
    background: #fff;
    color: #000;
}

/* Custom message box for alerts */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    text-align: center;
}

.message-box.show {
    opacity: 1;
    visibility: visible;
}


/* Section Headings */
section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Card Styles */
.card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card h3,
.card h4 {
    margin-bottom: 12px;
}

.card p,
.card ul {
    color: #ccc;
    line-height: 1.5;
}

.card ul {
    padding-left: 20px;
}

/* Work Cards */
.work-card {
    margin-bottom: 30px;
}

.work-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.work-card p {
    margin-top: 15px;
    color: #ccc;
    line-height: 1.5;
}

.work-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

/* Common work image style */
.work-images img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Radar images (default style) */
.work-images img {
    width: calc(50% - 7.5px);
    height: 220px;
    object-fit: cover; /* Radar images will fill the space, possibly cropping */
}

/* Timer project special layout */
.work-images img.portrait-img {
    width: 38%;
    height: 300px;
    object-fit: contain; /* Timer images will be fully visible, no cropping */
}

.work-images img.landscape-img {
    width: 58%;
    height: 220px;
    object-fit: contain; /* Timer images will be fully visible, no cropping */
}

/* Hover effect */
.work-images img:hover {
    transform: scale(1.05);
}

/* Awards Section */
.awards {
    margin-top: 20px;
    color: #aaa;
}

/* Contact Form */
.contact-form {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: #ccc;
}

.contact-form input,
.contact-form textarea {
    margin-top: 6px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0e0e0e;
    color: #fff;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn.primary {
    background: #3dbfff;
    color: #000;
}

.btn.primary:hover {
    opacity: 0.85;
}

.btn.outline {
    background: #333;
    color: #fff;
}

.btn.outline:hover {
    opacity: 0.85;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #333;
    color: #aaa;
}

.contact-info a {
    color: #3dbfff;
}

/* New style for the About Me section background */
.about {
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-top: 50px; /* Added margin to create space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-images {
        flex-direction: column;
        align-items: center;
    }

    .work-images img,
    .work-images img.portrait-img,
    .work-images img.landscape-img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .nav a {
        margin-left: 15px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }
}
