:root {
    --primary-color: #004080;
    --secondary-color: #d1bd06;
    --accent-color: #94ca00;
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
    --primary-color: #4a9eff;
    --secondary-color: #ffd700;
    --text-dark: #e2e8f0;
    --text-light: #cbd5e0;
    --bg-light: #1a202c;
    --bg-white: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

[data-theme="dark"] body {
    background: #332940;
}

[data-theme="dark"] .section {
    background: #ffffff;
    color: #2c3e50;
}

[data-theme="dark"] .section p,
[data-theme="dark"] .section li {
    color: #2c3e50;
}

[data-theme="dark"] .job,
[data-theme="dark"] .project,
[data-theme="dark"] .skills-list li {
    background: #ffffff;
    color: #2c3e50;
}

[data-theme="dark"] .job p,
[data-theme="dark"] .project p,
[data-theme="dark"] .job li,
[data-theme="dark"] .project li {
    color: #2c3e50;
}

.consultation-btn,
.hire-me-btn {
    position: fixed;
    z-index: 1000;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

[data-theme="dark"] .theme-toggle::before {
    content: '☀️';
    transform: translateX(30px);
}

.scrolled .consultation-btn,
.scrolled .hire-me-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: #999;
}

[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

.consultation-btn {
    top: 60px;
    right: 20px;
}

.consultation-btn:hover {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
}

.hire-me-btn {
    top: 120px;
    right: 20px;
}

.hire-me-btn:hover {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
}



/* General Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header */
header {
    position: relative;
    background: url('../images/canvas.png') center/cover no-repeat;
    color: var(--primary-color);
    padding: 2rem 2rem;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

#header-canvas {
    display: none;
}

header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        min-height: 30vh;
    }
    
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-text {
        margin-top: 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}

.profile-img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 0;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.header-text {
    flex: 1;
    text-align: left;
    margin-top: 2rem;
}

header h1 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    margin-bottom: 0;
    background: linear-gradient(45deg, #000000, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
}

.subtitle {
    font-family: 'Segoe UI Semibold', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #000000, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    background: var(--bg-white);
    margin: 1.5rem 0;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}



.section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project h3 a {
    color: inherit;
    text-decoration: none;
}

.project h3 a:hover {
    color: inherit;
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Skills List */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-top: 1.5rem;
}

.professional-summary {
    list-style: disc;
    margin-top: 1.5rem;
    padding-left: 2rem;
}

.professional-summary li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.skills-list li {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.skills-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--secondary-color);
}

.skills-list li::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.skills-section-spacer {
    height: 1rem;
    width: 100%;
}

.section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Jobs & Projects */
.job, .project {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,64,128,0.1);
    transition: var(--transition);
}

.job:hover, .project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.date {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}



.job ul, .project ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.job li, .project li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.6;
}
.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-logo {
  width: 50px; /* or your preferred size */
  height: auto; /* keep aspect ratio */
  vertical-align: middle; /* aligns image with the text vertically */
  margin-right: 8px; /* spacing between image and text */
  display: inline-block; /* ensures it respects text line */
}

/* Footer Icons */
.icon-inline {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Footer Contacts */
.footer-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
    main {
        padding: 0 0.5rem;
    }
    
    .section {
        margin: 1rem 0;
        padding: 1.5rem 1rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .job, .project {
        padding: 1rem;
    }
    
    .footer-contacts {
        gap: 1rem;
        flex-direction: column;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .consultation-btn {
        top: 75px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hire-me-btn {
        top: 135px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .scrolled .theme-toggle,
    .scrolled .consultation-btn,
    .scrolled .hire-me-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.copyright-text {
  text-align: center;
  font-size: 0.8rem;
}

/* Multicolor gradient text for dark mode only */
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientShift 5s ease infinite;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.animate {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mouse Pointer Tracking */
.pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 2rem;
  aspect-ratio: 1;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  border-radius: 100%;
  pointer-events: none;
  transform: translate3d(var(--mouseX, 0), var(--mouseY, 0), 0) translate(-50%, -50%);
  transition: 0.3s ease-out;
  transition-property: transform, width, border, background-color;
}

body:has(button:hover) .pointer,
body:has(a:hover) .pointer {
  width: 5rem;
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .pointer {
    display: none;
  }
}

@media (pointer: coarse) {
  .pointer {
    display: none;
  }
}

/* Project Form Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: var(--bg-white);
  margin: 2% auto;
  padding: 20px;
  border-radius: var(--border-radius);
  width: 95%;
  max-width: 800px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content iframe {
  width: 100%;
  height: 70vh;
  min-height: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 1;
}

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

@media (max-width: 768px) {
  .modal-content {
    margin: 1% auto;
    padding: 15px;
    width: 98%;
    max-height: 95vh;
  }
  
  .modal-content iframe {
    height: 75vh;
    min-height: 400px;
  }
  
  .close {
    font-size: 24px;
    right: 10px;
    top: 5px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 10px;
    width: 99%;
  }
  
  .modal-content iframe {
    height: 80vh;
    min-height: 350px;
  }
}

/* Button text animation on hover */
.btn-text {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}



.consultation-btn:hover {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
    width: auto;
    border-radius: 25px;
    padding: 0 1rem;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 0, 255, 0.5);
}

.consultation-btn:hover::after {
    content: ' Book Free Consultation';
    font-family: 'Segoe UI Semibold', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 8px;
    color: #ffffff;
}

.hire-me-btn:hover {
    background: linear-gradient(45deg, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00, #ffd700);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
    width: auto;
    border-radius: 25px;
    padding: 0 1rem;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 0, 255, 0.5);
}

.hire-me-btn:hover::after {
    content: ' Start Project';
    font-family: 'Segoe UI Semibold', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 8px;
    color: #ffffff;
}

.theme-toggle:hover .btn-text,
.consultation-btn:hover .btn-text,
.hire-me-btn:hover .btn-text {
  width: auto;
  opacity: 1;
  margin-left: 8px;
}


/* Resume Section */
.resume-section {
    background: linear-gradient(135deg, #fafafa, #ffffff);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 2rem 0;
}

.resume-section h2 {
    color: #00264D;
    margin-bottom: 1.5rem;
}

.resume-section h2::after {
    background: var(--bg-white);
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.6;
    font-family: 'Segoe UI Semibold', 'Suguoi Semibold', sans-serif;
    font-weight: 600;
    color: #00264D;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #000000, #4c00ff, #00d0ff, #003ada, #be0202, #66ff00);
    background-size: 300% 300%;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Segoe UI Semibold', 'Suguoi Semibold', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    animation: gradientShift 3s ease infinite;
    margin: 0 auto;
}

.resume-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation-duration: 1.5s;
}

.resume-download::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTE5IDloLTRWM0g5djZINWw3IDcgNy03ek01IDE4djJoMTR2LTJINXoiLz48L3N2Zz4=');
    background-size: contain;
    background
