/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f4f7f6;
    --text-color: #333;
    --primary-color: #0078d4; /* Tech Blue */
    --accent-color: #005a9e;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

span {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* --- Header & Nav --- */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- About Section --- */
.about-section {
    background: var(--card-bg);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img img {
    width: 400px;        /* Made Bigger (Was 300px) */
    height: 400px;       /* Made Bigger (Was 300px) */
    max-width: 100%;    
    border-radius: 50%; 
    object-fit: cover;  
    border: 5px solid var(--primary-color);
    display: block;     
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
}

.academic {
    font-style: italic;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Goals Section --- */
.goals-section {
    background: var(--card-bg);
}

.goals-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-item {
    background: var(--bg-color);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--accent-color);
}

.contact-info h3 {
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 280px;   /* Made bigger on mobile too so it scales beautifully */
        height: 280px;  
        margin: 0 auto; 
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}