/* =============================================
   MANASA YASASWINI — PORTFOLIO CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
    --navy:      #0b1d4e;
    --navy-mid:  #132568;
    --accent:    #3d6bce;
    --accent-lt: #6b93e0;
    --bg:        #f5f0e8;       /* warm off-white */
    --bg-card:   #ede8df;
    --text:      #1a1a2e;
    --muted:     #6b7280;
    --white:     #ffffff;
    --border:    rgba(11,29,78,0.12);
    --radius:    14px;
    --shadow:    0 4px 24px rgba(11,29,78,0.10);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', Arial, sans-serif;
    --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   HEADER / HERO
   ============================================= */
header {
    min-height: 100vh;
    background-image: url(images/image1.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for readability */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 18, 55, 0.82) 0%,
        rgba(10, 18, 55, 0.60) 60%,
        rgba(10, 18, 55, 0.40) 100%);
    z-index: 0;
}

/* ---- Nav Bar ---- */
.nav-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px;
    background: transparent;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}

nav {
    display: flex;
    gap: 0;
}

nav a {
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: 30px;
    transition: color var(--transition), background var(--transition);
}

nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 60px 40px;
    gap: 40px;
}

.hero-text {
    max-width: 560px;
}

.hero-greeting {
    display: block;
    font-size: 1rem;
    color: var(--accent-lt);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-name span {
    color: var(--accent-lt);
}

.hero-role {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hero-bio {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    max-width: 420px;
}

/* ---- Hero Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 2px solid transparent;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(61,107,206,0.4);
}

.btn-primary:hover {
    background: #2d5abf;
    box-shadow: 0 8px 28px rgba(61,107,206,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

/* ---- Hero Photo ---- */
.hero-image-wrap {
    position: relative;
    flex-shrink: 0;
    width: clamp(220px, 28vw, 360px);
    height: clamp(220px, 28vw, 360px);
}

.hero-image-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(107,147,224,0.5);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.hero-photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 4px solid rgba(255,255,255,0.2);
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ---- Scroll Hint ---- */
.hero-scroll-hint {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */
section {
    padding: 90px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

section p { line-height: 1.75; color: var(--muted); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.about-col-1 {
    flex-basis: 35%;
    min-width: 280px;
}

.about-col-1 p {
    margin-top: 16px;
    font-size: 1rem;
}

.about-col-2 {
    flex-basis: 100%;
    min-width: 320px;
}

/* Tabs */
.tab-titles {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.tab-links {
    margin-right: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    color: var(--muted);
    position: relative;
    transition: color var(--transition);
}

.tab-links:hover { color: var(--navy); }

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0; bottom: -2px;
    transition: width var(--transition);
    border-radius: 2px;
}

.tab-links.active-link { color: var(--navy); }
.tab-links.active-link::after { width: 100%; }

.tab-contents { display: none; padding: 24px 0; }
.tab-contents.active-tab { display: block; }

.tab-contents ul { list-style: none; padding: 0; }

.tab-contents ul li {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tab-contents ul li span {
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills-grid-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.skill-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid transparent;
}

.skill-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(11,29,78,0.15);
}

.skill-block.programming { border-top-color: #3498db; }
.skill-block.frontend    { border-top-color: #e74c3c; }
.skill-block.backend     { border-top-color: #27ae60; }
.skill-block.design      { border-top-color: #9b59b6; }
.skill-block.additional  { border-top-color: #f39c12; }
.skill-block.deployment  { border-top-color: #1abc9c; }

.skill-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    color: var(--navy);
}

.skill-block h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 14px;
}

.skill-block ul { list-style: none; padding: 0; }

.skill-block li {
    padding: 5px 0;
    color: var(--muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.skill-block li:last-child { border-bottom: none; }

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-lt));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.project-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(11,29,78,0.15); }
.project-card:hover::before { transform: scaleX(1); }

.project-icon {
    width: 50px; height: 50px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tag {
    display: inline-block;
    background: rgba(61,107,206,0.1);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-card a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.project-card a:hover { gap: 10px; }

/* =============================================
   INTERNSHIP / EXPERIENCE SECTION
   ============================================= */
.internship-timeline {
    position: relative;
    padding-left: 40px;
}

.internship-timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.timeline-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 700;
}

.timeline-company {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-date {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    background: rgba(11,29,78,0.07);
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info > p {
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-details li i {
    color: var(--accent);
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.contact-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    font-size: 0.95rem;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61,107,206,0.15);
}

.full-width { width: 100%; justify-content: center; }

button[type="submit"] {
    background: var(--accent);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background var(--transition), transform var(--transition);
}

button[type="submit"]:hover {
    background: #2d5abf;
    transform: translateY(-2px);
}

#msg {
    display: block;
    margin-top: 14px;
    color: #1a6634;
    font-weight: 500;
    font-size: 0.9rem;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--navy);
    padding: 50px 60px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}

footer p { font-size: 0.9rem; }
footer strong { color: var(--white); }

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover {
    color: var(--accent-lt);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .nav-bar { padding: 20px 30px; }
    .hero-content { padding: 40px 30px; flex-direction: column-reverse; align-items: center; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-bio { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrap { width: 200px; height: 200px; }
    section { padding: 60px 30px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-bar { padding: 16px 20px; }
    nav a { padding: 6px 10px; font-size: 0.8rem; }
    .logo { font-size: 1.6rem; }
    .hero-content { padding: 30px 20px; }
    .hero-image-wrap { width: 160px; height: 160px; }
    section { padding: 50px 20px; }
    .skills-grid { grid-template-columns: 1fr; }
    footer { padding: 40px 20px; }
    .about-col-1, .about-col-2 { min-width: auto; flex-basis: 100%; }
}

@media (max-width: 400px) {
    nav { gap: 0; }
    nav a { padding: 5px 7px; font-size: 0.75rem; }
    .hero-name { font-size: 2.5rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px 16px; }
    .internship-timeline { padding-left: 28px; }
}
