/* --- Professional Color Variables & Reset --- */
:root {
    --primary: #00BCD4;     /* Electric Cyan */
    --secondary: #8E2DE2;   /* Deep Purple Accent */
    --dark-bg: #0F172A;     /* Primary Background (Deep Navy) */
    --surface: #1E293B;     /* Card/Section Background (Dark Slate) */
    --text-light: #F1F5F9;  /* Main Text */
    --text-fade: #A0AEC0;   /* Faded Text */
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: var(--header-height);
    padding-bottom: 60px; /* Space for fixed bottom menu */
    line-height: 1.6;
}

/* Typography & Links */
h1, h2, h3, h4 { color: var(--text-light); font-weight: 600; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary); }
p { color: var(--text-fade); }

/* --- 1. Global Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.95); /* Semi-transparent navy */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 200;
}

.logo-mark {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
}
.logo-mark .fa-code { font-size: 1.3rem; color: var(--secondary); margin: 0 2px; }

.desktop-nav a {
    color: var(--text-light);
    margin-left: 30px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
.desktop-nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.cta-button {
    background: linear-gradient(90deg, var(--primary) 0%, #0093a8 100%);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 35px;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}
.cta-button:hover {
    background: linear-gradient(90deg, #0093a8 0%, var(--primary) 100%);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
    color: var(--dark-bg);
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    display: none;
}

/* --- Mobile Menu Overlay --- */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: none; /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-overlay-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-overlay-menu a {
    font-size: 1.5rem;
    padding: 10px 0;
}

.cta-button-mobile {
    padding: 12px 30px;
    margin-top: 20px;
}


/* --- 2. Main Banner/Hero Section (High Impact) --- */
.main-banner {
    background-image: url('CodesWithAlok.jpg'); /* **REPLACE WITH YOUR IMAGE PATH** */
    background-size: cover;
    background-position: center 30%; /* Focus on the lower half where the logo/text is */
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6); /* Stronger dark overlay */
}

.banner-content {
    max-width: 900px;
    z-index: 10;
    padding: 20px;
}

.banner-image {
    width: 150px;
    height: auto;
    /* Use the CA logo portion of the image */
    display: block; /* Display it as the central logo */
    margin: 0 auto 20px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.7);
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 25px;
}

.description {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-banner {
    font-size: 1.1rem;
    padding: 15px 35px;
    background: var(--secondary);
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-banner:hover {
    background: #7a22c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 45, 226, 0.6);
}
.cta-banner i { margin-left: 10px; }

/* Floating Icons - Subtle movement added */
.floating-icons i {
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
    filter: drop-shadow(0 0 8px var(--primary));
}
.floating-icons .fa-python { top: 15%; left: 10%; animation-delay: 0s; }
.floating-icons .fa-brain { bottom: 20%; right: 15%; animation-delay: 2s; }
.floating-icons .fa-cogs { top: 5%; right: 5%; animation-delay: 4s; }
.floating-icons .fa-bolt { bottom: 10%; left: 30%; animation-delay: 1s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- 3. Main Content Area --- */
.site-main {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 80px;
    padding: 40px;
    background-color: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-subtext {
    text-align: center;
    color: var(--text-fade);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.skill-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--surface);
    transition: transform 0.3s, border-color 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.1);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.skill-card h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Projects Placeholder */
.project-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.project-item {
    background-color: var(--dark-bg);
    padding: 50px;
    flex: 1 1 45%;
    min-width: 300px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}


/* --- 4. Global Footer --- */
.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--surface);
    padding: 40px 5% 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-details {
    text-align: left;
}
.footer-tagline {
    color: var(--text-fade);
    margin-top: 5px;
    font-style: italic;
}

.social-links a {
    font-size: 1.8rem;
    margin-left: 20px;
    color: var(--text-fade);
}
.social-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 15px;
}


/* --- 5. Mobile Bottom Menu (Small Screen Only) --- */
.mobile-bottom-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--surface);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.7);
    z-index: 180;
}

.mobile-bottom-menu a {
    flex: 1;
    text-align: center;
    color: var(--text-fade);
    font-size: 1.4rem;
}

.mobile-bottom-menu a.active {
    color: var(--primary);
    position: relative;
}
/* Active indicator for mobile menu */
.mobile-bottom-menu a.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 1px;
}


/* --- Media Queries for Full Responsiveness --- */

/* Hide desktop menu items and show hamburger/mobile menu elements below 992px */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-details {
        text-align: center;
        margin-bottom: 20px;
    }
    .social-links a {
        margin: 0 10px;
    }
}

/* Hide mobile bottom menu on larger screens */
@media (min-width: 993px) {
    .mobile-bottom-menu {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

/* Adjustments for extra small screens */
@media (max-width: 480px) {
    .site-header {
        padding: 0 3%;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .skill-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Section Styling: About --- */
.about-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Make it responsive */
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary); /* Use the purple accent color */
}
.about-link i {
    margin-left: 8px;
}
.about-link:hover {
    color: var(--primary);
}

.about-stats {
    flex: 1;
    min-width: 250px;
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}
.stat-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}
.stat-item span {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 5px;
}

/* --- New Section Styling: Projects/Portfolio --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    border: 1px solid var(--surface);
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    /* Placeholder for actual image styles */
    background-color: #333; 
    border-bottom: 3px solid var(--secondary);
}

.project-card h4 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 20px 15px;
}

.project-link {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--primary);
    font-weight: 500;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
}
.project-link:hover {
    background-color: rgba(57, 255, 20, 0.3);
}


/* --- New Section Styling: Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes more space than info */
    gap: 40px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

.contact-form-area h4, .contact-info-area h4 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px dashed #333;
    padding-bottom: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.info-item i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-right: 15px;
    margin-top: 2px;
}
.info-item p {
    margin: 0;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-fade);
    margin-top: 20px;
}