:root {
    /* Colors */
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --tertiary: #2a2a2a;
    --quaternary: #3a3a3a;
    
    /* Accent colors */
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-tertiary: #047857;
    --accent-quaternary: #065f46;
    --accent-dark: #064e3b;
    --accent-light: #6ee7b7;
    
    /* Metallic accents */
    --gold: #d97706;
    --silver: #6b7280;
    --platinum: #9ca3af;
    
    /* Glass effects */
    --glass-bg: rgba(16, 185, 129, 0.02);
    --glass-border: rgba(16, 185, 129, 0.06);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --glass-backdrop: blur(24px);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-accent: #10b981;
    --text-gold: #d97706;
    
    /* Gradients */
    --bg-gradient-1: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2a2a2a 70%, #3a3a3a 100%);
    --bg-gradient-2: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 40%, #3a3a3a 80%, #4a4a4a 100%);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 30%, #047857 70%, #065f46 100%);
    --accent-gradient-2: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    --accent-gradient-light: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #059669 100%);
    --premium-gradient: linear-gradient(135deg, #10b981 0%, #d97706 50%, #059669 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(16, 185, 129, 0.25);
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(217, 119, 6, 0.08);
    
    /* Border radius */
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --radius-xl: 2.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-premium: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Performance */
.hero, .section, .project-card, .skill-item, .experience-card {
    will-change: transform;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow-x: hidden;
    transition: var(--transition-normal);
    position: relative;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

body.loaded {
    opacity: 1;
}

a, a:visited {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner {
    width: 6rem;
    height: 6rem;
    position: relative;
}

.loading-spinner:before,
.loading-spinner:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
}

.loading-spinner:before {
    width: 100%;
    height: 100%;
    background-color: rgba(16, 185, 129, 0.2);
    animation-delay: -0.9s;
}

.loading-spinner:after {
    width: 75%;
    height: 75%;
    background-color: var(--accent);
    top: 12.5%;
    left: 12.5%;
}

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

    50% {
        transform: scale(1);
        opacity: 0;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    z-index: 9998;
    width: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.header-inner {
    max-width: 120rem;
    margin: 0 auto;
    padding: 1.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: none;
}

.header-title:before {
    content: '';
    position: absolute;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: var(--radius-full);
    background: var(--accent);
    opacity: 0.1;
    z-index: -1;
    transform: scale(0);
    transition: var(--transition);
}

.header-title:hover:before {
    transform: scale(2);
}

.header-nav-list {
    display: flex;
    gap: 3.2rem;
}

.header-nav-list a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.header-nav-list a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.header-nav-list a:hover, .header-nav-list a.active {
    color: var(--accent);
}

.header-nav-list a:hover:after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1.6rem;
}

.social-icons a {
    color: var(--text);
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 4rem;
    height: 3rem;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -30rem;
    width: 30rem;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 1000;
    padding: 10rem 4rem 4rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(16, 185, 129, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.footer {
  background: linear-gradient(135deg, #0a0b0d 0%, #101214 50%, #0f1113 100%);
  color: white;
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  z-index: 1;
}

.footer-inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.logo-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-description {
  max-width: 400px;
}

.footer-description p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

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

.social-link {
  width: 3rem;
  height: 3rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.footer-col h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 0.2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 1px;
}

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

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-normal);
  padding: 0.3rem 0;
}

.footer-col ul li a:hover {
  color: #10b981;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.footer-location {
  color: #10b981 !important;
  font-weight: 500;
}
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    opacity: 0.6;
}

.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 5rem;
    height: 5rem;
    background: var(--card-bg);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

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

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

.section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background-color: var(--card-bg);
}

.section-inner {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    text-shadow: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background: linear-gradient(to right, var(--accent), var(--accent-dark));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card, .certification-card, .achievement-card {
    background: var(--card-bg);
    border: 1px solid rgba(16, 185, 129, 0.13);
    box-shadow: var(--shadow);
    color: var(--text);
}

pre, code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    background: #181a1b;
    color: var(--accent);
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-inner,
    .header-inner,
    .footer-inner,
    .achievements-container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 60%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .header-nav,
    .social-icons {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }

    .section {
        padding: 8rem 0;
    }

    .back-to-top {
        width: 4.5rem;
        height: 4.5rem;
        right: 2.5rem;
    }
}