@import './variables.css';

.site-header{position:relative;z-index:100;background:var(--bg);border-bottom:1px solid rgba(14,165,164,0.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;position:relative;z-index:10}
.logo{font-weight:700;color:var(--text);text-decoration:none;transition:transform 220ms ease}
.logo:hover{transform:scale(1.05)}
.logo-img{height:56px;width:56px;display:inline-block;vertical-align:middle;border-radius:50%;object-fit:cover;border:2px solid var(--accent-2);box-shadow:0 4px 12px rgba(56,189,248,0.2);background:var(--surface)}
.nav{display:flex;align-items:center;gap:1rem}
.nav a{color:var(--muted);text-decoration:none;transition:color 220ms ease;font-size:0.95rem}
.nav a:hover{color:var(--accent-2)}
.menu-toggle{display:none;flex-direction:column;gap:6px;background:transparent;border:none;cursor:pointer;padding:0.5rem;border-radius:6px}
.menu-toggle span{width:24px;height:2px;background:var(--text);border-radius:2px;transition:all 220ms ease}
.menu-toggle.active span:nth-child(1){transform:rotate(45deg) translate(10px,10px)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}
.theme-toggle{background:transparent;border:1px solid rgba(255,255,255,0.1);padding:0.5rem 0.8rem;border-radius:6px;color:var(--muted);cursor:pointer;transition:all 220ms ease;font-size:1.1rem}
.theme-toggle:hover{border-color:var(--accent-2);color:var(--accent-2)}

/* header social removed: social icons live in Contact section now */

/* Hero Section with Cover Image */
.hero{padding:0;position:relative;margin-bottom:3rem}
.hero-cover{width:100%;height:280px;overflow:hidden;position:relative}
.cover-image{width:100%;height:100%;object-fit:cover;display:block}
.hero-inner{display:flex;gap:2rem;align-items:flex-start;position:relative;margin-top:-80px;margin-bottom:2rem}
.hero-content{display:flex;gap:2rem;align-items:flex-start;width:100%;flex-wrap:wrap}
.hero-profile{flex-shrink:0}
.profile-photo{width:200px;height:200px;border-radius:50%;object-fit:cover;border:6px solid var(--surface);box-shadow:0 0 0 3px rgba(14,165,164,0.3),0 16px 48px rgba(0,0,0,0.5);background:var(--surface);transition:all 300ms ease}
.profile-photo:hover{transform:scale(1.05);box-shadow:0 0 0 3px rgba(56,189,248,0.5),0 20px 60px rgba(0,0,0,0.6)}
.hero-text{flex:1;min-width:300px;padding-top:1rem}
.hero-text h1{margin:0 0 0.5rem;font-size:2rem;color:var(--text)}
.hero-text .typewriter{font-size:1.1rem;color:var(--accent-2);font-weight:600;margin-bottom:1rem}
.lead{color:var(--muted);line-height:1.6;margin-bottom:1.5rem}
.btn{display:inline-block;padding:0.6rem 1rem;border-radius:8px;background:transparent;color:var(--text);border:1px solid rgba(255,255,255,0.06);text-decoration:none;margin-right:0.5rem;margin-bottom:0.5rem;transition:all 220ms ease}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#022;border:none;font-weight:600}
.btn:hover{text-decoration:none;border-color:rgba(255,255,255,0.2);transform:translateY(-2px)}
.btn.primary:hover{box-shadow:0 8px 20px rgba(14,165,164,0.3)}

/* Keep global underline for most buttons, but disable it for
  buttons inside the hero and contact sections (resume / contact CTAs) */
.hero .btn:hover,
.contact .btn:hover{ text-decoration:none }

.about{padding:2rem 0}
.about h2{text-align:left;margin-bottom:1rem}
.about .about-content{max-width:820px;margin-top:1rem;line-height:1.8;text-align:justify;color:var(--muted)}
.about p{margin-bottom:1.2rem}
.about p strong{color:var(--text);font-weight:600}
.skills{padding:2rem 0}
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.skill{background:var(--surface);padding:1rem;border-radius:12px;box-shadow:0 8px 18px rgba(2,6,23,0.35);}
.skill h3{margin:0 0 0.6rem 0;font-size:1.05rem}
.skill ul{list-style:none;padding:0;margin:0}
.skill li{display:flex;align-items:center;gap:0.8rem;padding:0.45rem 0}
.skill li span{flex:0 0 80px;font-weight:600;color:var(--text)}
.skill-bar{flex:1;display:inline-block;height:10px;border-radius:999px;background:rgba(255,255,255,0.06);position:relative;overflow:hidden}
.skill-bar[data-level]{background:rgba(255,255,255,0.06);}
.skill-bar[data-level]::after{content:'';position:absolute;left:0;top:0;height:100%;width:var(--fill,0%);background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width 900ms ease}

.projects{padding:2rem 0}
.projects-controls{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}
#projects-search{flex:1;padding:0.6rem;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:var(--surface);color:var(--text)}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0.6rem}
.project-card{background:var(--surface);padding:0;border-radius:8px;box-shadow:0 8px 18px rgba(2,6,23,0.35);font-size:0.9rem;overflow:hidden;display:flex;flex-direction:column;transition:transform 220ms ease,box-shadow 220ms ease;border:1px solid rgba(255,255,255,0.02)}
.project-image{width:100%;height:120px;overflow:hidden}
.project-image img{width:100%;height:100%;object-fit:cover;display:block}
.project-card .project-body{padding:0.7rem;flex:1;display:flex;flex-direction:column}
.project-card h3{margin:0 0 0.35rem 0;font-size:1rem;color:var(--text)}
.project-desc{color:var(--muted);margin:0 0 0.6rem 0}
.project-meta{font-size:0.82rem;color:var(--muted);margin-bottom:0.4rem}
.project-tags{margin-top:auto}
.project-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(2,6,23,0.45)}

/* compact project image */
.project-card img{width:100%;height:100px;object-fit:cover;border-radius:8px;margin-bottom:0.4rem}

/* remove underlines for links site-wide; keep hover underline for discoverability */
a{text-decoration:none;color:inherit}
a:hover{text-decoration:underline}

.social{display:flex;gap:0.6rem;align-items:center;margin-top:1rem;flex-wrap:wrap}
.youtube-channel{display:flex;align-items:center;gap:0.6rem;margin-top:1rem}
.youtube-link img{width:44px;height:44px;display:block;border-radius:8px;padding:6px;background:var(--surface);object-fit:contain}
.youtube-label{display:inline-block;color:var(--muted);margin-left:0.4rem;font-size:0.98rem}
.social a img{width:36px;height:36px;display:block;border-radius:8px;background:var(--surface);padding:6px}

.contact{padding:2rem 0}
form label{display:block;margin:0.6rem 0}
input,textarea{width:100%;padding:0.6rem;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)}
.form-actions{display:flex;gap:0.6rem;align-items:center}
.site-footer{padding:2.25rem 0;color:var(--muted);border-top:1px solid rgba(255,255,255,0.03);background:linear-gradient(180deg,transparent, rgba(0,0,0,0.02))}
.site-footer .footer-inner{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.footer-brand strong{display:block;font-size:1.02rem}
.footer-brand .muted{margin:0.3rem 0 0;color:var(--muted);font-size:0.95rem}
.footer-actions{display:flex;flex-direction:column;align-items:flex-end;gap:0.4rem}
.footer-actions p{margin:0}
.footer-actions a{text-decoration:underline;color:var(--accent-2)}
.footer-actions a:hover{text-decoration:underline}
.footer-credits{font-size:0.88rem;color:var(--muted)}
.heart{color:var(--accent);display:inline-block;animation:beat 1.2s infinite ease-in-out}
.tech{color:var(--muted);font-weight:600}

@keyframes beat{0%{transform:scale(1)}25%{transform:scale(1.18)}40%{transform:scale(1)}}

@media (max-width:720px){
  .site-footer .footer-inner{flex-direction:column;align-items:center;text-align:center}
  .footer-actions{align-items:center}
}

/* Notes grid and cards */
.notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0.8rem}
.note-card{background:var(--surface);padding:0.9rem;border-radius:10px;box-shadow:0 8px 18px rgba(2,6,23,0.45);border-left:4px solid rgba(56,189,248,0.08)}
.note-card h3{margin:0 0 0.4rem 0;font-size:1.06rem;color:var(--text)}
.note-card p{margin:0 0.6rem 0 0;color:var(--muted);font-size:0.95rem}
.note-actions{margin-top:0.6rem;display:flex;gap:0.6rem}
.note-actions .btn{padding:0.45rem 0.7rem;font-size:0.88rem}
.btn.secondary{background:transparent;border-color:rgba(255,255,255,0.06);color:var(--accent-2)}
.btn.secondary:hover{text-decoration:underline}

/* responsive */
@media (max-width:800px){
  .hero-inner{flex-direction:column}
  .hero-media{width:160px}
}

@media (max-width:800px){
  .social{justify-content:center}
  .youtube-channel{justify-content:center}
}

/* Education Section */
.education{padding:2rem 0}
.education-content{max-width:820px}
.edu-item{background:var(--surface);padding:1.5rem;border-radius:12px;border-left:4px solid var(--accent);box-shadow:0 8px 18px rgba(2,6,23,0.35);margin-bottom:1rem}
.edu-header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:0.5rem}
.edu-header h3{margin:0;color:var(--text);font-size:1.1rem}
.edu-date{background:var(--accent);color:var(--bg);padding:0.25rem 0.6rem;border-radius:4px;font-size:0.85rem;font-weight:600;white-space:nowrap}
.edu-institution{color:var(--accent-2);margin:0.4rem 0;font-weight:500;font-size:0.98rem}
.edu-details{list-style:none;padding:0;margin:0.6rem 0 0;color:var(--muted)}
.edu-details li{padding:0.3rem 0;padding-left:1.5rem;position:relative}
.edu-details li:before{content:"→";position:absolute;left:0;color:var(--accent)}

/* Experience Section */
.experience{padding:2rem 0}
.experience-timeline{display:flex;flex-direction:column;gap:1.5rem;max-width:900px}
.experience-item{background:var(--surface);padding:1.5rem;border-radius:12px;border-left:4px solid var(--accent-2);box-shadow:0 8px 18px rgba(2,6,23,0.35);transition:transform 220ms ease}
.experience-item:hover{transform:translateX(4px)}
.exp-meta{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:0.6rem;flex-wrap:wrap}
.exp-meta h3{margin:0;color:var(--text);font-size:1.1rem}
.exp-date{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:var(--bg);padding:0.3rem 0.8rem;border-radius:6px;font-size:0.85rem;font-weight:600;white-space:nowrap}
.exp-place{color:var(--accent-2);margin:0.3rem 0 0.6rem;font-weight:500;font-size:0.98rem}
.exp-details{list-style:none;padding:0;margin:0;color:var(--muted)}
.exp-details li{padding:0.4rem 0;padding-left:1.5rem;position:relative}
.exp-details li:before{content:"✓";position:absolute;left:0;color:var(--accent)}

/* Certifications Section */
.certifications{padding:2rem 0}
.certifications-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1rem}
.cert-card{background:var(--surface);padding:1.5rem;border-radius:12px;border:2px solid rgba(14,165,164,0.15);box-shadow:0 8px 18px rgba(2,6,23,0.35);transition:transform 220ms ease,border-color 220ms ease}
.cert-icon{font-size:2.5rem;margin-bottom:0.8rem;display:inline-block}
.cert-card h3{margin:0 0 0.4rem;font-size:1.1rem;color:var(--text)}
.cert-issuer{margin:0.3rem 0 0.6rem;color:var(--accent-2);font-size:0.95rem}
.cert-card p{margin:0.3rem 0;color:var(--muted);font-size:0.95rem;line-height:1.5}
.cert-link{display:inline-block;margin-top:0.8rem;color:var(--accent-2);font-weight:600;text-decoration:none}
.cert-link:hover{text-decoration:underline}
.cert-card:hover{transform:translateY(-4px);border-color:rgba(14,165,164,0.4)}

/* Contact Section */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin:1.5rem 0}
.contact-item{background:var(--surface);padding:1.2rem;border-radius:10px;border:1px solid rgba(14,165,164,0.1);box-shadow:0 4px 12px rgba(2,6,23,0.3)}
.contact-item h3{margin:0 0 0.6rem;color:var(--accent-2);font-size:1rem}
.contact-item p{margin:0.3rem 0;color:var(--muted)}
.contact-item a{color:var(--accent-2);font-weight:500}

/* Responsive Design */
@media (max-width:900px){
  .hero-content{flex-direction:column;align-items:center;text-align:center}
  .profile-photo{width:170px;height:170px}
  .hero-text h1{font-size:1.8rem}
  .hero-inner{margin-top:-60px}
}

@media (max-width:720px){
  .site-footer .footer-inner{flex-direction:column;align-items:center;text-align:center}
  .footer-actions{align-items:center}
  .hero-cover{height:200px}
  .profile-photo{width:140px;height:140px}
  .hero-inner{margin-top:-40px}
  .hero-text h1{font-size:1.5rem}
  .hero-text .typewriter{font-size:1rem}
  .btn{margin-right:0.3rem;padding:0.5rem 0.8rem;font-size:0.9rem}
  .social{justify-content:center}
}

@media (max-width:600px){
  .header-inner{padding:0.8rem 0;gap:0.5rem}
  .logo-img{height:48px;width:48px}
  .menu-toggle{display:flex}
  .nav{position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;background:var(--surface);border:1px solid rgba(14,165,164,0.1);border-top:none;border-radius:0 0 8px 8px;padding:1rem 0;max-height:0;overflow:hidden;transition:max-height 300ms ease;box-shadow:0 8px 16px rgba(2,6,23,0.3)}
  .nav.active{max-height:400px}
  .nav a{display:block;padding:0.8rem 1.5rem;color:var(--muted);text-decoration:none;transition:all 220ms ease;border-left:3px solid transparent}
  .nav a:hover{background:rgba(14,165,164,0.05);color:var(--accent-2);border-left-color:var(--accent-2)}
  .hero-cover{height:150px}
  .profile-photo{width:110px;height:110px}
  .hero-text h1{font-size:1.3rem}
  .lead{font-size:0.95rem}
  .btn{display:block;margin-bottom:0.6rem;width:100%;text-align:center}
}
