/* ==========================================================================
   1. Theme Variables & Base Style Reset
   ========================================================================== */
:root {
    --bg-color: #070A12;
    --text-color: #f0f3f8;
    --neon-color: #00f0ff;
    --glass-bg: rgba(16, 19, 26, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body.light-theme {
    --bg-color: rgb(242, 244, 252);
    --text-color: #000306;
    --neon-color: #7c3aed;
    --glass-bg: rgba(255, 255, 255, 0.361);
    --glass-border: rgba(124, 58, 237, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Glassmorphism Reusable Style */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.section-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 35px;
}

section {
    padding: 60px 20px;
}

h3, .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.neon-text {
    color: var(--neon-color);
}

/* ==========================================================================
   2. Header Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--neon-color);
}

.cyber-btn {
    background: transparent;
    color: var(--neon-color);
    border: 1px solid var(--neon-color);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

/* ==========================================================================
   3. Hero Section (2-Column Layout)
   ========================================================================== */
.hero {
    padding-top: 130px;
    display: flex;
    justify-content: center;
}

.hero-container {
    display: flex;
    max-width: 850px;
    width: 100%;
    padding: 40px;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 2;
}

.status {
    font-size: 0.75rem;
    color: #10b981;
    display: block;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.85;
}

.action-btn {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    color: var(--neon-color);
    border: 1px solid var(--neon-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.action-btn i {
    margin-right: 8px;
    vertical-align: middle;
}

.action-btn:hover {
    background: var(--neon-color);
    color: var(--bg-color);
}

/* Profile Image Box */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

/* ==========================================================================
   4. About & Project Card Grids
   ========================================================================== */
.terminal-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.project-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card {
    padding: 25px;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-color);
}

.icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.project-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.project-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

button {
    display: center;
    text-decoration: none;
    background: transparent;
    color: var(--neon-color);
    border: 1px solid var(--neon-color);
    padding: 10px 20px;
    border-radius: 4px; 
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    

}

/* ==========================================================================
   5. Interactive Forms & Footer
   ========================================================================== */

.social-btn{
    display: column;
    align-items:center;
    justify-content:center;
    gap: 30px;
    padding: 10px 20px;

    width:180px;
    height:100px;

    color:#8ffcff;
    text-decoration:none;
    border: 1px solid var(--neon-color);
    border-radius:4px;

    font-size:18px;
    font-weight:bold;

    transition:0.3s;
}

.fa-facebook-f {
    color:#1877f2;
}

.fa-instagram {
    color:#e1306c;
}

.fa-linkedin-in {
    color:#0077b5;
}

.fa-envelope {
    color:#d44638;
}

.social-btn i{
    font-size:24px;
}

.social-btn:hover{
    background:#00e5ff;
    color:#081b29;
    box-shadow:0 0 20px #00e5ff;
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* CSS Page Animation */
.fade-in {
    animation: simpleFade 0.6s ease-out forwards;
    margin: 0 auto;
    place-items: center;
}

@keyframes simpleFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-container {
        gap: 20px;
        padding: 30px;
    }

    .section-container {
        padding: 25px;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 170px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding: 25px;
    }

    .hero-image {
        margin-bottom: 20px;
    }

    .profile-pic {
        width: 160px;
        height: 160px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 50px 15px;
    }

    .section-container {
        padding: 20px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }

    /* Buttons */
    .action-btn,
    button {
        width: 100%;
        text-align: center;
    }

    /* Social Buttons */
    .social-btn {
        width: 100%;
        height: auto;
        padding: 15px;
        font-size: 16px;
    }

    /* Headings */
    h3,
    .section-title {
        font-size: 1.3rem;
        text-align: center;
    }

    footer {
        font-size: 0.75rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding-top: 190px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .profile-pic {
        width: 130px;
        height: 130px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .cyber-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .project-card img {
        height: 180px;
    }

    .action-btn {
        padding: 12px;
    }
}