* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    color: #e6edf3;
    background: #050b14;
    overflow-x: hidden;
}

/* Background */
.background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(20, 90, 120, 0.45), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(10, 50, 90, 0.55), transparent 50%),
        linear-gradient(180deg, #020814, #050b14, #071527, #030712);
    z-index: -2;
}

.stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(3px 3px at 15% 25%, rgba(255,200,120,.9), transparent 60%),
        radial-gradient(2px 2px at 70% 40%, rgba(255,210,130,.7), transparent 60%);
    background-size: 400px 400px;
    animation: floatStars 160s linear infinite;
    z-index: -1;
}

@keyframes floatStars {
    to { transform: translateY(-200px); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px;
    display: flex;
    justify-content: center;
    gap: 28px;
    background: rgba(5,11,20,.6);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.navbar a {
    color: #e6edf3;
    text-decoration: none;
    font-weight: 600;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 120px 20px;
}

/* Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero span {
    color: #1fa2a6;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #1fa2a6;
}

/* Sections */
section {
    margin-top: 80px;
}

h2 {
    color: #1fa2a6;
}

/* Cards */
.projects,
.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 24px;
}

.card {
    background: rgba(255,255,255,.06);
    padding: 24px;
    border-radius: 16px;
}

.card a {
    color: #1fa2a6;
    font-weight: bold;
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
}

/* Print (ATS Resume) */
@media print {
    .navbar, .background, .stars {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
.internship {
    border: 2px solid rgba(31, 162, 166, 0.5);
    box-shadow: 0 0 25px rgba(31, 162, 166, 0.25);
}
