/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-border: rgba(255, 107, 0, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent: #ff6b00;
    --accent-glow: rgba(255, 107, 0, 0.35);
    --accent-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    --accent-yellow: #ffb800;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--accent);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 50px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title-large {
    font-size: 2.85rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-talk {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 300ms ease;
}

.btn-talk:hover {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
    transform: scale(1.03);
}

/* Link hover animation */
.link-hover:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(11, 17, 32, 0.85); /* #0B1120 with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    padding: 0 32px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-monogram {
    display: flex;
    align-items: baseline;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.5rem;
    transition: all 300ms ease;
}

.mono-n {
    color: #ffffff;
    font-size: 1.1em;
}

.mono-m {
    color: var(--accent);
}

.logo-monogram:hover {
    text-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.2px;
    color: #B8B8B8;
    position: relative;
    padding: 0.5rem 0;
    transition: all 300ms ease;
    text-decoration: none;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 300ms ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active::after {
    box-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO / TITLE SECTION
   ========================================================================== */
.hero-section {
    padding: 10rem 0 5rem;
    background: radial-gradient(circle at top, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--card-border);
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-section {
    padding: 8rem 0;
}

.profile-image-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.profile-frame {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--accent);
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.25);
    background-color: #3a3a3a;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.floating-logo {
    position: absolute;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    padding: 8px;
    border: 1px solid var(--card-border);
    animation: float-around 4s ease-in-out infinite;
}

.logo-1  { top: 2%;   left: -8%;  animation-delay: 0s;   }
.logo-2  { top: 40%;  left: -18%; animation-delay: 1.2s; }
.logo-3  { bottom: 5%; left: 2%;  animation-delay: 2.4s; }
.logo-4  { top: 8%;   right: -8%; animation-delay: 0.8s; }
.logo-5  { top: 50%;  right: -18%; animation-delay: 1.6s; }
.logo-6  { bottom: 8%; right: 2%;  animation-delay: 2.8s; }
.logo-7  { top: -5%;  left: 25%;  animation-delay: 0.4s; }
.logo-8  { top: -5%;  right: 25%; animation-delay: 1.0s; }
.logo-9  { bottom: -5%; left: 30%; animation-delay: 2.0s; }
.logo-10 { bottom: -5%; right: 30%; animation-delay: 2.6s; }

.floating-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes float-around {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.about-details .section-title-large {
    line-height: 1.15;
}

.about-bio {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.button-group {
    display: flex;
    gap: 1.25rem;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-section {
    padding: 8rem 0;
    background-color: #000000;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    background-color: rgba(8, 6, 18, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.skill-card-wide {
    grid-column: span 3;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.08);
}

.skill-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(255, 107, 0, 0.05);
    color: var(--accent);
    transition: var(--transition-normal);
}

.skill-card:hover .skill-icon {
    background-color: var(--accent);
    color: var(--text-primary);
    transform: scale(1.05);
}

.skill-name {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.progress-bar-container {
    position: relative;
    background-color: #17132c;
    height: 10px;
    border-radius: 50px;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: var(--accent-gradient);
    position: relative;
}

.progress-learning {
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    background-color: var(--accent);
}

.progress-val {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* Pulsing & striped animation for learning progress */
.animate-pulse {
    animation: progress-bar-stripes 1s linear infinite, pulse 2s infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ==========================================================================
   EXPERTISE SECTION (Skills Grid)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.skill-card-header svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.skill-card-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.tech-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tech-pill:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.experience-section {
    padding: 8rem 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Timeline central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(255, 107, 0, 0.15);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Timeline nodes */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-primary);
    border: 4px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-normal);
}

.timeline-item:hover::after {
    background-color: var(--accent);
    transform: scale(1.2);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.08);
}

.timeline-date {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.timeline-org {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.timeline-org .loc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-bullets {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    list-style-type: disc;
}

.timeline-bullets li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.education-section {
    padding: 8rem 0;
    position: relative;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.edu-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.edu-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.08);
}

.edu-date {
    display: inline-block;
    color: var(--accent-yellow);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.edu-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.edu-org {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.edu-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Clickable Project Card Links */
.project-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(8, 6, 18, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.project-card-new {
    background-color: #15171e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #23252d;
    height: 100%;
}

.project-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.project-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #23252d;
}

.project-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card-new:hover .project-img-top {
    opacity: 1;
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tech-line {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.project-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.project-desc {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.project-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: #ffffff;
}

.project-links svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-section {
    padding: 8rem 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cert-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.08);
}

.cert-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.cert-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-stars {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(8, 6, 18, 0.6);
    border: 1px solid var(--card-border);
    padding: 2.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
}

.testimonial-card .stars {
    color: var(--accent-yellow);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.testimonial-card .quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.client-info-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Avatar Initials Placeholder */
.client-avatar-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.avatar-robert {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.avatar-janice {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}
.avatar-justin {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.client-meta {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.client-desig {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-mark {
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(255, 107, 0, 0.15);
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
}

.contact-form-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    background-color: rgba(8, 6, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
}

.contact-info-panel {
    padding-left: 2rem;
}

.panel-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.panel-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.c-detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.c-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(255, 107, 0, 0.05);
    color: var(--accent);
}

.c-text {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.c-val {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #05040b;
    border-top: 1px solid var(--card-border);
    padding: 5rem 0 2rem;
}

.footer-top {
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-nav h3, .footer-contact h3, .footer-newsletter h3 {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.85rem 3.5rem 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border-radius: 6px;
    background: var(--accent-gradient);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-policies a:hover {
    color: var(--accent);
}

.policy-sep {
    color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
    z-index: 2000;
    transform: translateY(150%);
    opacity: 0;
    transition: var(--transition-normal);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 4, 11, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    max-width: 500px;
    width: 90%;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
/* --- Tablet: 768px – 1024px (iPad, large Android) --- */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
        right: auto;
    }

    .right {
        left: 0%;
    }
}

/* --- Mobile: up to 768px (iPhone, Android phones in landscape) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background-color: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding-top: 0;
        transition: left 300ms ease;
        border-top: 1px solid var(--card-border);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .btn-talk {
        display: none;
    }

    /* Hero */
    .hero-section {
        padding: 7rem 0 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    /* About */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-image-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    /* Hide floating logos on small screens to avoid overlap */
    .floating-logo {
        width: 38px;
        height: 38px;
        padding: 5px;
    }

    .section-title-large {
        font-size: 1.9rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Education */
    .education-list {
        max-width: 100%;
    }

    /* Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 21px;
        right: auto;
    }

    .right {
        left: 0%;
    }

    /* Contact */
    .contact-info-panel {
        padding-left: 0;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Small Mobile: up to 480px (most Android/iOS phones in portrait) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title-large {
        font-size: 1.65rem;
    }

    .profile-image-container {
        width: 240px;
        height: 240px;
    }

    .profile-frame {
        width: 210px;
        height: 210px;
    }

    /* Hide outer floating logos to avoid clutter */
    .logo-7, .logo-8, .logo-9, .logo-10 {
        display: none;
    }

    .floating-logo {
        width: 34px;
        height: 34px;
        padding: 4px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .edu-card {
        padding: 1.5rem;
    }

    .edu-title {
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* --- Extra Small: up to 375px (iPhone SE, small Android) --- */
@media (max-width: 375px) {
    .page-title {
        font-size: 1.75rem;
    }

    .profile-image-container {
        width: 210px;
        height: 210px;
    }

    .profile-frame {
        width: 185px;
        height: 185px;
    }

    .logo-1, .logo-2, .logo-3, .logo-4, .logo-5, .logo-6 {
        width: 30px;
        height: 30px;
    }

    .section-title-large {
        font-size: 1.45rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* FLOATING SOCIAL BAR */
.floating-social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #050505;
    padding: 1.25rem 0.75rem;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #1a1a1a;
}

.social-icon-wrapper {
    background-color: #111111;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon-wrapper:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: scale(1.1);
}

.social-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .floating-social-bar {
        display: none;
    }
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    backdrop-filter: blur(20px);
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    animation: spin 1.5s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid var(--text-primary);
    border-left: 3px solid var(--text-primary);
    animation: spin-reverse 2s linear infinite;
}

.loader-ring-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,0,0.4) 0%, rgba(255,107,0,0) 70%);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse-text 2s ease-in-out infinite;
}

.dot-1 { animation: dot-blink 1.5s infinite step-start 0s; }
.dot-2 { animation: dot-blink 1.5s infinite step-start 0.5s; }
.dot-3 { animation: dot-blink 1.5s infinite step-start 1s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 107, 0, 0.5); }
}

@keyframes dot-blink {
    50% { opacity: 0; }
}
