/* Base Variables */
:root {
--black: #000000;
--white: #ffffff;
--gray-light: #f3f4f6;
--border-width: 4px;
--container-width: 1200px;
}

/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
background-color: var(--white);
color: var(--black);
font-family: 'Space Mono', monospace;
overflow-x: hidden;
padding: 20px;
background-image: radial-gradient(rgba(0,0,0,0.06) 1.5px, transparent 0);
background-size: 40px 40px;
background-attachment: fixed;
}
img {
max-width: 100%;
}
/* Container logic: Section ke andar rehta hai */
.container {
max-width: var(--container-width);
margin: 0 auto;
padding: 0 20px;
width: 100%;
}

h1, h2, h3, .comic-font {
font-family: 'Bangers', cursive;
letter-spacing: 2px;
text-transform: uppercase;
}

a {
text-decoration: none;
color: inherit;
}

ul {
list-style: none;
}

/* --- STABLE DYNAMIC ISLAND (NOTCH) --- */
.iphone-notch {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
background: var(--black);
color: var(--white);
border-radius: 0 0 30px 30px;
padding: 8px 40px;
display: flex;
align-items: center;
justify-content: space-between;
width: calc(100% - 40px);
max-width: 450px;
z-index: 3000;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
border: 1px solid rgba(255,255,255,0.15);
border-top: 0;
}

.notch-content {
display: flex;
align-items: center;
gap: 12px;
white-space: nowrap;
}

.profile-pic {
width: 34px;
height: 34px;
border-radius: 50%;
background: #222;
border: 1.5px solid var(--white);
flex-shrink: 0;
}

.profile-img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%
}

.notch-text p:first-child {
font-weight: bold;
font-size: 12px;
letter-spacing: 0.05em;
}

.notch-text p:last-child {
font-size: 8px;
opacity: 0.6;
text-transform: uppercase;
}

#live-clock {
font-size: 10px;
opacity: 0.8;
}

#burger-btn {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 24px;
height: 16px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
flex-shrink: 0;
}

.burger-line {
width: 100%;
height: 2.5px;
background: var(--white);
border-radius: 10px;
transition: 0.3s;
}

#burger-btn.open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#burger-btn.open .burger-line:nth-child(2) { opacity: 0; }
#burger-btn.open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- MENU OVERLAY --- */
#mobile-menu {
position: fixed;
inset: 0;
background: var(--white);
z-index: 2500;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transform: translateY(-100%);
transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
border-bottom: 12px solid var(--black);
}

#mobile-menu.active {
transform: translateY(0);
}

.mobile-menu-inner {
text-align: center;
position: relative;
z-index: 10;
}

.menu-item {
font-size: clamp(3rem, 10vw, 5.5rem);
transition: transform 0.3s;
cursor: pointer;
margin: 10px 0;
display: block;
}

.menu-item:hover {
transform: scale(1.1) rotate(-2deg);
color: transparent;
-webkit-text-stroke: 2px black;
}

/* --- COMIC COMPONENTS --- */
.comic-panel {
border: var(--border-width) solid var(--black);
background: var(--white);
box-shadow: 10px 10px 0px 0px var(--black);
transition: transform 0.2s ease, box-shadow 0.2s ease;
position: relative;
overflow: hidden;
}

.comic-panel:hover {
transform: translate(-4px, -4px);
box-shadow: 14px 14px 0px 0px var(--black);
}

.halftone {
background-image: radial-gradient(var(--black) 15%, transparent 16%);
background-size: 8px 8px;
opacity: 0.1;
position: absolute;
inset: 0;
pointer-events: none;
}

.btn-comic {
background: var(--black);
color: var(--white);
padding: 1rem 2.5rem;
border: none;
font-family: 'Bangers', cursive;
font-size: 1.6rem;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
display: inline-block;
margin-top: 20px;
text-align: center;
}

.btn-comic:hover {
background: var(--white);
color: var(--black);
outline: var(--border-width) solid var(--black);
transform: scale(1.05) rotate(-1.5deg);
}

.btn-full {
width: 100%;
}

.section-divider {
height: 8px;
background: var(--black);
margin: 80px 0;
transform: rotate(-0.5deg);
}

.divider-angled {
transform: rotate(1deg);
}

.speech-bubble {
position: relative;
background: var(--white);
border: var(--border-width) solid var(--black);
padding: 15px;
border-radius: 20px;
display: inline-block;
margin-bottom: 30px;
}

.speech-bubble::after {
content: '';
position: absolute;
bottom: -20px;
left: 30px;
border-width: 20px 20px 0;
border-style: solid;
border-color: var(--black) transparent;
display: block;
width: 0;
}

.speech-bubble p {
font-size: 1.2rem;
font-weight: bold;
font-style: italic;
}

/* --- PROJECT ANIMATION & VISIBILITY --- */
.project-card {
display: none; 
}

.project-card.visible {
display: block;
animation: projectPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Experience & Education */
.origin-card { padding: 30px; margin-bottom: 30px; }
.origin-year { font-size: 1.5rem; color: var(--black); background: var(--gray-light); display: inline-block; padding: 5px 15px; border: 2px solid var(--black); margin-bottom: 10px; }
.origin-title { font-size: 1.8rem; margin-bottom: 5px; }
.origin-title .title-sub { display: block; font-size: 0.5em; opacity: 0.75; }
.origin-org { font-size: 1rem; font-weight: bold; opacity: 0.6; margin-bottom: 15px; display: block; }
.origin-desc { font-size: 1rem; line-height: 1.5; }

#education .origin-year { display: block; width: 100%; box-sizing: border-box; text-align: center; }

/* Testimonials */
.testimonial-panel { padding: 40px; text-align: center; }
.testimonial-text { font-size: 1.2rem; font-style: italic; line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { font-size: 1.5rem; font-family: 'Bangers', cursive; }
.testimonial-role { font-size: 0.9rem; opacity: 0.5; }


/* FAQ */
.faq-item { border: var(--border-width) solid var(--black); margin-bottom: 20px; background: var(--white); overflow: hidden; transition: 0.3s; }
.faq-question { padding: 20px; font-size: 1.8rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-question:hover { background: var(--gray-light); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; font-size: 1.1rem; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 300px; padding: 20px; border-top: var(--border-width) solid var(--black); }
.faq-item.active .faq-question { background: var(--black); color: var(--white); }


@keyframes projectPop {
0% { opacity: 0; transform: scale(0.8) translateY(30px); }
70% { transform: scale(1.05) translateY(-5px); }
100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- GRID LAYOUTS --- */
.grid {
display: grid;
gap: 24px;
}

.grid-hero {
grid-template-columns: repeat(12, 1fr);
margin-top: 120px;
}

.hero-main { grid-column: span 12; padding: 40px; min-height: 450px; display: flex; flex-direction: column; justify-content: center; }
.hero-side { grid-column: span 12; padding: 40px; background: var(--black); color: var(--white); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

@media (min-width: 1024px) {
.hero-main { grid-column: span 7; }
.hero-side { grid-column: span 5; }
}

.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Typography & Utilities */
.text-6xl { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin-bottom: 20px; }
.text-5xl { font-size: 3rem; margin-bottom: 24px; }
.text-2xl { font-size: 1.5rem; margin-bottom: 16px; }

/* Hero Styling */
.hero-title-italic {
font-style: italic;
}

.hero-subtitle {
line-height: 1.2;
}

.hero-side-box {
border: 4px solid white;
padding: 30px;
}

.hero-side-title {
font-size: 2.5rem;
margin-bottom: 15px;
}

.hero-side-subtext {
font-size: 0.9rem;
font-family: 'Space Mono', monospace;
font-style: italic;
opacity: 0.8;
}

/* About Section */
.about-grid {
align-items: center;
}

.about-text-content {
font-size: 1.1rem;
line-height: 1.6;
}

.about-p-bottom {
margin-bottom: 20px;
}

.about-portrait-panel {
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
background: #fafafa;
filter: grayscale(1);
}

.about-portrait-icon {
width: 120px;
height: 120px;
opacity: 0.1;
margin-bottom: 15px;
}

/* Skills Card Styling */
.skill-card {
padding: 30px;
}

.skill-card-dark {
padding: 30px;
background: var(--black);
color: var(--white);
}

.skill-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 1rem;
border-bottom: 3px solid currentColor;
padding-bottom: 8px;
}
.skill-header svg {
width: 24px;
height: 24px;
}
.skill-header h3 {
font-size: 2rem;
}

.skill-header i {
width: 30px;
height: 30px;
}

.skill-list li {
font-size: 1.1rem;
margin-bottom: 10px;
font-weight: bold;
opacity: 0.8;
}

/* Projects List Grid Padding */
.project-list-grid {
gap: 40px;
}

.project-img {
height: 184px;
background: var(--gray-light);
border-bottom: 4px solid var(--black);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}

.project-img i {
width: 50px;
height: 50px;
opacity: 0.1;
}

.project-thumb {
width: 100%;
height: auto;
/* object-fit: cover; */
object-position: top;
position: relative;
z-index: 1;
}

.project-content { padding: 30px; }

.project-title {
font-size: 2.5rem;
margin-bottom: 10px;
}

.project-desc {
font-size: 1.1rem;
opacity: 0.8;
margin-bottom: 20px;
}

.project-outcome {
font-weight: bold;
font-style: italic;
border-top: 2px solid var(--black);
padding-top: 15px;
}

/* Contact Section */
.contact-content {
display: flex;
flex-direction: column;
justify-content: center;
}

.contact-title {
font-size: 4.5rem;
margin-bottom: 30px;
}

.contact-desc {
font-size: 1.4rem;
opacity: 0.8;
line-height: 1.4;
margin-bottom: 40px;
}

.contact-email {
text-decoration: underline;
}

.contact-availability {
opacity: 0.5;
margin-top: 10px;
}

.contact-form-panel {
padding: 40px;
}

input, textarea{
width: 100%;
border: 4px solid var(--black);
padding: 15px;
font-size: 1.1rem;
outline: none;
text-transform: uppercase;
font-weight: bold;
font-family: inherit;
margin-bottom: 20px;
}
.intl-tel-input{
width: 100%;
margin-bottom: 20px;
}

footer {
margin-top: 100px;
border-top: 8px solid var(--black);
padding: 50px 0 100px;
text-align: center;
}

.footer-title {
font-size: 3.5rem;
}

.footer-copy {
font-size: 0.8rem;
letter-spacing: 2px;
text-transform: uppercase;
margin-top: 10px;
opacity: 0.5;
font-style: italic;
}

/* Helper Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.italic { font-style: italic; }
.bold { font-weight: bold; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

.mt-80 { margin-top: 80px; }
.mt-60 { margin-top: 60px; }
.pb-50 { padding-bottom: 50px; }

@keyframes shake {
0% { transform: translate(0, 0); }
25% { transform: translate(1px, -1px); }
50% { transform: translate(-1px, 1px); }
75% { transform: translate(1px, 1px); }
100% { transform: translate(0, 0); }
}

.action-text {
display: inline-block;
animation: shake 0.4s infinite;
}

/* Layout Helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col-center { display: flex; flex-direction: column; justify-content: center; }
.w-full { width: 100%; }
.order-1 { order: 1; }
.order-2 { order: 2; }


/* --- EXPERT TOOLS SECTION --- */
.tools-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 40px;
}

@media (max-width: 768px) {
.tools-grid { grid-template-columns: 1fr; }
}


.tool-panel {
padding: 30px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

.tool-icon-box {
background: var(--black);
color: var(--white);
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 15px;
margin-bottom: 15px;
border: 2px solid var(--black);
box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.2);
}

.tool-icon-box i {
width: 40px;
height: 40px;
}

.tool-panel-name {
font-size: 1.8rem;
margin-top: 10px;
}

@media (max-width: 767px) {
.order-mobile-first { order: 1; }
.order-mobile-second { order: 2; }
}
