/* =========================================
   1. CORE VARIABLES & SETUP
   ========================================= */
:root {
    --bg-color: #0b0c10;
    --text-main: #ffffff;
    --text-muted: #a0aab2;
    --accent-color: #00a8ff;
    --card-bg: #151821;
    --card-hover: #1c202b;
    --glow-color: rgba(0, 168, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span.kd {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* =========================================
   3. ABOUT PAGE STYLES
   ========================================= */
.about-section {
    flex: 1;
    padding: 50px;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.8s ease-out forwards;
}

.about-container {
    background-color: var(--card-bg);
    max-width: 1000px;
    width: 100%;
    border-radius: 16px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.section-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.about-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Education Cards */
.education-wrapper {
    margin-top: 50px;
}

.education-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s, background-color 0.3s;
}

.education-card:hover {
    transform: translateX(10px);
    background-color: var(--card-hover);
}

.edu-icon {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 50px;
    display: flex;
    justify-content: center;
}

.edu-details h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.edu-details .school {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 15px;
}

.edu-details .info-row, .edu-details .date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* =========================================
   4. CONTACT PAGE STYLES
   ========================================= */
.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out forwards;
    background: radial-gradient(circle at center, rgba(0, 168, 255, 0.05) 0%, var(--bg-color) 60%);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px var(--glow-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(90deg, #007bb5, #00a8ff);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   5. FOOTER
   ========================================= */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: #08090c;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

footer .copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   6. RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================= */
@media (max-width: 768px) {
    /* Shrinks the padding so things fit on a small screen */
    nav, .about-section { 
        padding: 20px; 
    }
    
    .about-container { 
        padding: 30px 20px; 
    }

    /* Hides the long list of links to save space */
    .nav-links { 
        display: none; 
    }
    
    /* Stacks the Education Cards vertically instead of side-by-side */
    .education-card { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .edu-icon { 
        justify-content: flex-start; 
    }

    /* Adjusts font sizes and wraps social icons for mobile */
    .contact-header h1 { 
        font-size: 2rem; 
    }
    
    .social-links { 
        flex-wrap: wrap; 
        justify-content: center; 
    }
}