/* General Page Style */
body {
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, #000, #2b2d42);
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    width: 100%;
    text-align: center;
    padding: 60px 0; /* Reduced padding to decrease height */
    background: linear-gradient(135deg, #000000, #003366, #2c003e); 
    color: #e0e0e0;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}


/* Background animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: -5%; /* Further adjusted position */
    left: -5%; /* Further adjusted position */
    width: 110%; /* Further adjusted width */
    height: 110 0%; /* Further adjusted height */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)); /* Darker radial gradient */
    animation: pulseBg 15s infinite linear;
    z-index: 0;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Text Styles */
.hero-section h1 {
    font-size: 3.5rem; /* Smaller font size */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: fadeInUpBig 1s ease-in-out;
    z-index: 1;
    position: relative;
    transform: translateY(-10px); /* Slight lift */
}

.hero-section p {
    font-size: 1.5rem; /* Smaller font size */
    max-width: 900px;
    margin: 0 auto;
    color: #c0c0c0;
    animation: fadeInUp 1.5s ease-in-out;
    z-index: 1;
    position: relative;
    transform: translateY(-5px); /* Slight lift */
}

/* Hover effects on text */
.hero-section h1:hover, .hero-section p:hover {
    color: #4caf50;
    transition: color 0.4s ease-in-out;
}

/* Text animations */
@keyframes fadeInUpBig {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional Particle Animation (Advanced CSS feature) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png'); /* Optional: Particle effect texture */
    opacity: 0.15;
    z-index: 1;
    pointer-events: none; /* Ensures it doesn't interfere with interactions */
}


/* Home Button */
.home-button {
    position: absolute;
    top: -6px; /* Position from top */
    left: -570px; /* Position from left */
    padding: 12px 24px; /* Adjust padding */
    background: linear-gradient(145deg, #2c003e, #003366); /* Gradient background with dark purple and dark blue */
    color: #e0e0e0; /* Light color for text */
    text-decoration: none; /* Remove underline */
    border-radius: 8px; /* Rounded corners */
    font-size: 1.1rem; /* Font size */
    font-weight: bold; /* Font weight */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Shadow effect */
    transition: all 0.5s ease; /* Smooth transition for all properties */
    z-index: 1; /* Ensure it's above other content */
    overflow: hidden; /* Ensure no overflow from button */
    position: relative; /* For pseudo-element positioning */
}

/* Button Hover Effect */
.home-button::before {
    content: '';
    position: absolute;
    top: -6%;
    left: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%);
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 0; /* Behind button text */
}

.home-button:hover::before {
    opacity: 1; /* Show radial gradient on hover */
}

.home-button:hover {
    background: linear-gradient(145deg, #003366, #2c003e); /* Inverted gradient on hover */
    color: #ffffff; /* Text color on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7); /* Enhanced shadow effect */
}

/* Ensure text is above pseudo-element */
.home-button span {
    position: relative;
    z-index: 1;
}


/* Projects Section */
.projects-section {
    padding: 100px 200px;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.projects-title {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 40px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.projects-title:hover {
    color: #e6f1ff;
    transform: translateY(-5px);
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #64ffda;
    transition: width 0.4s ease, left 0.4s ease;
}

.projects-title:hover::after {
    width: 100%;
    left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Increased minimum card width */
    gap: 30px;
    padding: 0 2vw;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6); /* Increased shadow intensity */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Reduced transform duration */
    background: rgba(0, 0, 0, 0.8); /* Added background color for cards */
}

.project-card:hover {
    transform: scale(1.05); /* Reduced scaling to 1.05 instead of 1.1 */
    z-index: 1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 
                0 0 15px rgba(0, 50, 100, 0.6); /* Slightly reduced shadow intensity */
}


.project-image {
    width: 100%;
    padding-top: 47.15%; /* Aspect ratio 635/1347 ≈ 0.4715 */
    position: relative;
    overflow: hidden;
    background-color: #000; /* Background color to fill empty spaces */
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits inside the container without being cropped */
    object-position: center; /* Centers the image */
}




.project-info {
    padding: 20px;
    color: #fff;
}

.project-info h3 {
    font-size: 1.6rem; /* Slightly larger title */
    margin-bottom: 10px;
    color: #ff9800;
}

.project-info p {
    font-size: 1.1rem; /* Slightly larger text */
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.project-features li {
    font-size: 0.9rem;
    padding-left: 15px;
    position: relative;
    margin-bottom: 8px;
}

.project-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #64ffda;
    font-size: 1rem;
}

.project-link {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #3a3a7d; /* Dark blue */
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #e0e0e0; /* Light grey text for better contrast */
    background: linear-gradient(135deg, #1a1a1a, #2c2c54); /* Black to dark purple gradient */
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 5px #3a3a7d; /* Soft shadow and inner glow */
    position: relative;
    overflow: hidden;
    text-decoration: none; /* Removes underline */
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 58, 125, 0.2), rgba(58, 58, 125, 0.4)); /* Gradient for hover effect */
    transition: left 0.4s ease;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    background: linear-gradient(135deg, #2c2c54, #3a3a7d); /* Dark purple to dark blue gradient */
    color: #fff; /* Text color changes to white */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 0 8px #e0e0e0; /* Enhanced shadow and inner glow */
    transform: translateY(-3px) scale(1.05); /* Slight lift and scale */
    text-decoration: none; /* Ensures no underline on hover */
}



/* Footer Styles */
.footer {
    background-color: #0a192f; /* Dark blue background */
    padding: 30px 550px; /* Reduced vertical padding for less height */
    text-align: center;
    color: #8892b0; /* Light gray-blue text */
    border-top: 1px solid #1e2a38; /* Subtle border to define the section */
}

.footer p {
    font-size: 0.9rem; /* Maintain font size for the paragraph */
    margin: 5px 0; /* Added margin for spacing */
    color: #8892b0; /* Consistent text color */
}

.email-link {
    color: #64ffda; /* Light blue for email link */
    text-decoration: none; /* Remove underline */
}

.email-link:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Social Links Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Maintain gap for spacing */
    margin-top: 5px; /* Reduced margin for spacing */
}

.social-link {
    color: #8892b0; /* Consistent icon color */
    font-size: 1.5rem; /* Increased icon size for better visibility */
    transition: color 0.3s, transform 0.3s; /* Smooth transitions */
}

.social-link:hover {
    color: #64ffda; /* Light blue on hover */
    transform: scale(1.1); /* Slightly enlarges icon on hover */
}

/* Responsive Styles */
@media (max-width: 600px) {
    .footer p {
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }

    .social-link {
        font-size: 1.3rem; /* Adjust icon size for smaller screens */
    }
}