/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Full-page background gradient */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1e2a38, #2c3e50);
    padding: 20px;
}

/* Top links */
.top-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.top-links a {
    text-decoration: none;
    color: white;
    background: #34495e;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.top-links a:hover {
    background: #3e556b;
    transform: translateY(-3px);
}

/* Main container */
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(40, 44, 52, 0.95);
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Profile picture (bigger square & responsive) */
.profile-pic {
    width: 250px;           /* default desktop size */
    height: 250px;          /* keeps it square */
    overflow: hidden;
    border-radius: 20px;    /* optional rounded corners */
    margin: 20px auto;      /* centers horizontally */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ensures full coverage without distortion */
    transition: transform 0.3s ease;
}

.profile-pic img:hover {
    transform: scale(1.05);
}

/* Description text */
.description h1 {
    font-size: 2.5em;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.description p {
    font-size: 1.2em;
    color: #bdc3c7;
    margin-bottom: 30px;
}

/* Sections */
section {
    margin-top: 30px;
    width: 100%;
    text-align: left;
}

section h2 {
    font-size: 2em;
    color: #ecf0f1;
    margin-bottom: 15px;
    border-bottom: 2px solid #16a085;
    display: inline-block;
    padding-bottom: 5px;
}

section p {
    font-size: 1.1em;
    color: #bdc3c7;
    margin-bottom: 20px;
}

/* Projects */
.project {
    background: rgba(22, 160, 133, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.project h3 {
    font-size: 1.5em;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.project a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    color: white;
    background: #16a085;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project a:hover {
    background: #1abc9c;
    transform: translateY(-3px);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .intro-container {
        padding: 30px;
    }

    .profile-pic {
        width: 180px;   /* smaller square for mobile */
        height: 180px;
    }

    .description h1 {
        font-size: 2em;
    }

    .description p {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.5em;
    }

    section p, .project h3 {
        font-size: 1em;
    }
}
