@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
/* ... (existing CSS code) ... */
/* ... (existing CSS code) ... */

.home {
    height: 100vh;
    position: relative; /* Essential for positioning the banner inside */
    display: flex;
    align-items: center;
    padding: 0 10%;
    /* Remove the linear-gradient background if you want only the image */
    background: transparent; /* Changed to transparent as image will cover */
    padding-top: 150px;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Place it behind the content */
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
    object-position: center; /* Centers the image */
    opacity: 0.7; /* Adjust transparency as needed */
    animation: fadeIn 2s ease-in-out forwards;
}

/* Optional: Add an overlay for better text readability */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 35, 0.6); /* Darker overlay for contrast */
    z-index: 1; /* Must be below home-content but above banner-img */
}

.home-content {
    position: relative;
    z-index: 2; /* Ensure content is on top of the image and overlay */
    max-width: 600px;
}

/* ... (rest of your CSS code) ... */
/* Contact Section Styling */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center; /* Ensures vertical alignment */
}

.contact-info {
    padding: 30px; /* Add more internal padding */
    background: #1a1a3a; /* Match skill/project card background for consistency */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center content vertically if space allows */
    height: 100%; /* Make it fill available height of its grid cell */
}

.contact-illustration {
    text-align: center;
    margin-bottom: 25px; /* Space below the illustration */
}

.contact-illustration img {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    border-radius: 10px; /* Optional: slight rounded corners */
    opacity: 0.8; /* Slightly subdue the image */
    transition: transform 0.3s ease;
}

.contact-illustration img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.contact-info h3 {
    font-size: 28px; /* Slightly larger heading */
    color: #00d9ff;
    margin-bottom: 15px; /* Adjusted margin */
    text-align: center; /* Center align heading */
}

.contact-info .tagline {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px; /* Space below tagline */
    text-align: center; /* Center align tagline */
    color: #c0c0c0;
}

.contact-info p {
    font-size: 17px; /* Slightly larger text for contact details */
    margin-bottom: 15px; /* Increased margin between contact lines */
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.contact-info p i {
    margin-right: 15px; /* More space for icon */
    color: #00d9ff;
    font-size: 20px; /* Larger icons */
}

.contact-info .social-icons {
    margin-top: 30px; /* More space above social icons */
    text-align: center; /* Center social icons */
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Slightly larger social icon buttons */
    height: 45px;
    background: transparent;
    border: 2px solid #00d9ff;
    border-radius: 50%;
    color: #00d9ff;
    margin: 0 10px; /* Adjust spacing between icons */
    transition: 0.3s;
}

/* ... (rest of your CSS, including contact form focus/hover styles and form-message) ... */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding: 20px; /* Adjust padding for smaller screens */
    }
    .contact-illustration img {
        max-width: 120px; /* Adjust size for smaller screens */
    }
    .contact-info h3 {
        font-size: 24px;
    }
    .contact-info .tagline {
        font-size: 15px;
    }
    .contact-info p {
        font-size: 15px;
    }
}

body {
    background: #0a0a23;
    color: #e0e0e0;
    overflow-x: hidden;
}
/* Contact Form Enhancements */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease; /* Add transition for smooth effects */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00d9ff; /* Highlight border on focus */
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4); /* Glow effect on focus */
    outline: none; /* Remove default outline */
}

.contact-form input:hover,
.contact-form textarea:hover {
    background: #2a2a4a; /* Slightly change background on hover */
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-message.success {
    background: #00d9ff;
    color: #0a0a23;
    opacity: 1;
}

/* Ensure social icons have good hover */
.social-icons a:hover {
    background: #00d9ff;
    color: #0a0a23;
    box-shadow: 0 0 15px #00d9ff, 0 0 30px #00d9ff; /* Enhanced glow */
    transform: translateY(-3px); /* Slight lift */
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(5, 5, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    color: #00d9ff;
    text-decoration: none;
    font-weight: 600;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    font-size: 18px;
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover {
    color: #00d9ff;
}

.home {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(135deg, #0a0a23, #1a1a3a);
    padding-top: 150px; /* Adjusted to increase space above the button */
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    animation: fadeIn 2s ease-in-out forwards;
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #00d9ff;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 500;
    margin: 10px 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.home-content h3 span {
    color: #00d9ff;
}

.home-content p {
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00d9ff;
    border-radius: 50%;
    color: #00d9ff;
    margin-right: 15px;
    transition: 0.3s;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
    opacity: 0;
}

.social-icons a:hover {
    background: #00d9ff;
    color: #0a0a23;
    box-shadow: 0 0 15px #00d9ff;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #00d9ff;
    color: #0a0a23;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    animation: slideTop 1s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
    box-shadow: 0 0 10px #00d9ff;
}

.btn:hover {
    box-shadow: 0 0 20px #00d9ff, 0 0 40px #00d9ff;
    transform: translateY(-3px);
}

.about, .skills, .projects, .contact {
    padding: 100px 10%;
    background: #0a0a23;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 50px;
    color: #00d9ff;
}

.section-title span {
    color: #e0e0e0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 24px;
    color: #00d9ff;
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #1a1a3a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 40px;
    color: #00d9ff;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #1a1a3a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 20px;
    color: #00d9ff;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 14px;
    line-height: 1.6;
}

.project-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-top: 10px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 24px;
    color: #00d9ff;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: #00d9ff;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a3a;
    border: none;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 16px;
}

.contact-form textarea {
    resize: none;
    height: 150px;
}

.contact-form .btn {
    width: 200px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #050514;
    color: #e0e0e0;
    font-size: 14px;
}
.skill-card i {
    font-size: 40px;
    color: #00d9ff;
    margin-bottom: 15px;
}
@keyframes slideRight {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideTop {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideBottom {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    .home-content h1 {
        font-size: 40px;
    }
    .home-content h3 {
        font-size: 24px;
    }
    .section-title {
        font-size: 36px;
    }
    .navbar a {
        font-size: 16px;
        margin-left: 20px;
    }
}