/* Base Styles & Dynamic Variables (Dark/Light Mode) */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent-color: #0077b5; 
    --accent-hover: #005e93;
    --border-color: rgba(255,255,255,0.05);
    --border-color-heavy: rgba(255,255,255,0.1);
    --shadow-color: rgba(0,0,0,0.5);
    --linkedin-blue: #0A66C2;
    --btn-outline-text: #f5f5f5;
    --bg-secondary-rgb: 30, 30, 30;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary); 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color); 
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-color: #0077b5; 
    --accent-hover: #005e93;
    --border-color: rgba(0,0,0,0.08);
    --border-color-heavy: rgba(0,0,0,0.15);
    --shadow-color: rgba(0,0,0,0.08);
    --btn-outline-text: #111827;
    --bg-secondary-rgb: 255, 255, 255;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

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

/* NEW: Scroll Progress Bar */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}
#scroll-progress-bar {
    height: 3px;
    background: var(--accent-color);
    width: 0%;
}


/* NEW: Floating Social Bar */
.floating-social {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.floating-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 13px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    box-shadow: -2px 2px 10px var(--shadow-color);
}
.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}
.floating-btn span {
    margin-left: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}
.floating-btn.linkedin:hover {
    width: 140px;
    background-color: var(--linkedin-blue);
    color: white;
}
.floating-btn.linkedin:hover svg {
    fill: white;
}

/* Navigation & Theme Toggle */
nav {
    background-color: var(--bg-secondary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-secondary-rgb), 0.95);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    user-select: none;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent; 
}

.nav-link.active {
    color: var(--accent-color);
    border-color: var(--accent-color); 
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s ease, color 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* LinkedIn Nav Button */
.linkedin-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--linkedin-blue);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.linkedin-nav-btn:hover {
    background-color: #004182;
}

.linkedin-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Sections */
.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* 2-Column Layout for Core Content */
.portfolio-container {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.main-column {
    flex: 2;
    min-width: 0; 
}

.sidebar-column {
    flex: 1;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px; 
}

.sidebar-widget {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Tech Stack Cards */
.tech-stack-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color-heavy);
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.tech-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 119, 181, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.tech-icon svg {
    width: 20px;
    height: 20px;
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tech-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Competency List */
.competency-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competency-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.competency-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.competency-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px; 
    position: relative;
    overflow: hidden;
}

/* Telecom Network Canvas */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none; 
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 1; 
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 1.5rem;
    min-height: 2.2rem; 
}

/* Typing Effect Cursor */
.typing-container .cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    color: transparent;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Headshot Crop & Aspect Ratio */
.profile-frame {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4) translateY(5%); 
}

/* Scroll Indicator Bouncing Arrow */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    z-index: 1;
}

.scroll-indicator:hover {
    color: var(--accent-color);
    opacity: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Magnetic Button Hover Class */
.magnetic-btn {
    transition: transform 0.1s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--btn-outline-text);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.accordion-controls {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Dynamic Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.metric-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem; 
    line-height: 1.4;
}

.metric-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0; 
}

/* Timeline Component */
.timeline {
    position: relative;
    padding-left: 2.5rem; 
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background-color: var(--accent-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 1.8rem; 
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.5);
    z-index: 2;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Section Breaks in Timeline */
.timeline-break {
    position: relative;
    margin: 4rem 0;
    height: 20px;
}

.timeline-break-label {
    position: absolute;
    left: calc(-2.5rem + 8px); 
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease;
}

/* Accordion Base */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem; 
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--border-color);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-logo {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: white;
    padding: 4px;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--border-color); 
}

/* Job Specific Accordion Overrides */
.job-accordion-header {
    text-align: left;
    gap: 2rem; 
}

.job-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.job-header-titles h3 {
    margin: 0 0 0.3rem 0;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.job-header-titles h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap; 
}

.revenue-badge {
    font-size: 0.75rem;
    background-color: var(--border-color-heavy);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.job-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.date {
    color: var(--text-secondary);
    font-size: 1rem;
}

.job-details {
    padding: 1rem 2rem 2rem 2rem; 
}

.job-details ul {
    list-style-position: outside;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.job-details ul li {
    margin-bottom: 1.2rem; 
    line-height: 1.7;
    padding-left: 0.5rem; 
}

.job-details ul li:last-child {
    margin-bottom: 0;
}

.job-details ul li strong {
    color: var(--text-primary);
}

/* Cert Items Inner Content */
.cert-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color-heavy);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-details {
    width: 100%;
}

.cert-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.cert-title-row h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.cert-title-row .btn {
    flex-shrink: 0; 
    white-space: nowrap; 
}

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

.cert-id {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    font-family: monospace;
    background-color: var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cert-skills {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-skills strong {
    color: var(--accent-color);
}

/* Projects Section */
#projects {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.compact-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.compact-project-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: visible; 
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.compact-project-card:hover {
    transform: translateY(-5px);
}

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

.compact-project-info h3 {
    margin: 0 0 0.2rem 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.project-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.compact-project-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.compact-bullets {
    list-style-position: outside;
    margin-left: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.compact-bullets li {
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Browser Mockup & 3D Tilt Class */
.browser-mockup {
    border-radius: 6px;
    border: 1px solid var(--border-color-heavy);
    overflow: hidden;
}

.small-mockup {
    margin: 2rem 2rem 0 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.tilt-mockup {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.browser-header {
    background-color: #2d2d2d;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    position: relative;
}

.browser-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1e1e;
    color: #888;
    font-size: 0.65rem;
    padding: 2px 15px;
    border-radius: 4px;
    font-family: monospace;
}

.browser-body {
    width: 100%;
    height: 180px; 
    background-color: #1e1e1e;
    position: relative;
}

.browser-body img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top; 
}

/* Recommendations Slider */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    margin-top: 3rem;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    touch-action: pan-y pinch-zoom;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    padding: 3rem 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 350px;
    transition: background-color 0.3s ease;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--border-color-heavy); 
    line-height: 1;
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

.author-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.testimonial-author h4 {
    margin: 0 0 0.2rem 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Slider Buttons & Dots */
.slider-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--border-color-heavy);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
}

/* Functional Contact Form Layout */
.contact-layout {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card-horizontal {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-card-horizontal:hover {
    transform: translateX(5px);
}

.contact-icon-small {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 119, 181, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-icon-small svg {
    width: 20px;
    height: 20px;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-form-column {
    flex: 1.5;
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color-heavy);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Modal Overlay */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    padding: 2.5rem 1rem 1rem 1rem;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Rules for Mobile */
@media (max-width: 900px) {
    .portfolio-container, .contact-layout {
        flex-direction: column; 
        gap: 3rem;
    }
    
    .sticky-sidebar {
        position: static; 
    }
    
    .floating-social {
        display: none; 
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-text h2 {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none; 
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -1.5rem;
        width: 12px;
        height: 12px;
    }

    .timeline-break-label {
        left: calc(-1.5rem + 1px);
    }

    .job-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .job-accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .job-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .cert-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        left: 20px;
        top: 10px;
        font-size: 4rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0,0,0,0.5);
        color: white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        z-index: 10;
    }
    
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    
    .slider-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 10% auto;
    }
}