/* CSS Custom Properties for Dark Grayscale Theme */
:root {
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --accent-color: #cccccc;
    --background-primary: #000000;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --background-card: #222222;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --hover-color: #333333;
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    
    /* Fonts */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo .logo-text:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--hover-color);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
}

.hero .gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero .gradient-bg svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.hero .gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero .bubble {
    position: absolute;
    mix-blend-mode: screen;
    border-radius: 50%;
}

.hero .bubble.g1 {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0) 60%);
    width: 350px;
    height: 350px;
    /* Initial position will be set by JavaScript */
    transform-origin: center center;
    animation: moveVertical 25s ease infinite;
}

.hero .bubble.g2 {
    background: radial-gradient(circle at center, rgba(200, 200, 200, 0.35) 0, rgba(200, 200, 200, 0) 60%);
    width: 300px;
    height: 300px;
    /* Initial position will be set by JavaScript */
    transform-origin: calc(50% - 200px);
    animation: moveInCircle 30s reverse infinite;
}

.hero .bubble.g3 {
    background: radial-gradient(circle at center, rgba(170, 170, 170, 0.3) 0, rgba(170, 170, 170, 0) 60%);
    width: 250px;
    height: 250px;
    /* Initial position will be set by JavaScript */
    transform-origin: calc(50% + 200px);
    animation: moveInCircle 35s linear infinite;
}

.hero .bubble.g4 {
    background: radial-gradient(circle at center, rgba(150, 150, 150, 0.25) 0, rgba(150, 150, 150, 0) 60%);
    width: 220px;
    height: 220px;
    /* Initial position will be set by JavaScript */
    transform-origin: calc(50% - 150px);
    animation: moveHorizontal 28s ease infinite;
    opacity: 0.8;
}

.hero .bubble.g5 {
    background: radial-gradient(circle at center, rgba(220, 220, 220, 0.3) 0, rgba(220, 220, 220, 0) 60%);
    width: 450px;
    height: 450px;
    /* Initial position will be set by JavaScript */
    transform-origin: calc(50% - 300px) calc(50% + 100px);
    animation: moveInCircle 22s ease infinite;
}

.hero .bubble.interactive {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 60%);
    width: 150px;
    height: 150px;
    top: -75px;
    left: -75px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23333333" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23333333" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="%23333333" opacity="0.1"/><circle cx="70" cy="30" r="1" fill="%23333333" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
}


.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-dark);
    transition: var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-container::after {
    position: absolute;
    content: "";
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
    height: calc(100% + 40px);
    width: calc(100% + 40px);
    margin: 0 auto;
    transform: scale(0.9);
    -webkit-filter: blur(35px);
    -moz-filter: blur(35px);
    -ms-filter: blur(35px);
    filter: blur(35px);
    background: linear-gradient(270deg, #0fffc1, #7e0fff);
    background-size: 200% 200%;
    animation: animateBacklightGlow 8s ease infinite;
    opacity: 1;
    border-radius: 50%;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--background-card), var(--background-tertiary));
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px var(--shadow-dark);
    position: relative;
    overflow: visible;
}

.image-placeholder::after {
    position: absolute;
    content: "";
    top: 0;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
    height: calc(100% + 40px);
    width: calc(100% + 40px);
    margin: 0 auto;
    transform: scale(0.825);
    -webkit-filter: blur(40px);
    -moz-filter: blur(40px);
    -ms-filter: blur(40px);
    filter: blur(40px);
    background: linear-gradient(270deg, #0fffc1, #7e0fff);
    background-size: 200% 200%;
    animation: animateBacklightGlow 8s ease infinite;
    opacity: 0.88;
}

.code-animation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-line {
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: codeFlow 2s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 80px;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 120px;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 60px;
    animation-delay: 1s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-dark);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-dark);
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--background-secondary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-details {
    background: var(--background-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.detail-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* Skills Section */
.skills {
    background: var(--background-tertiary);
}

.skills-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: var(--spacing-lg);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.skill-name {
    font-weight: 600;
}

.skill-percentage {
    color: var(--text-muted);
}

.skill-bar {
    height: 8px;
    background: var(--background-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0;
    transition: width 1s ease-out;
    border-radius: var(--radius-sm);
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.soft-skill {
    background: var(--background-card);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.soft-skill:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.experience-section {
    margin-top: var(--spacing-xxl);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.experience-item {
    background: var(--background-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    text-align: center;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

.experience-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.experience-item h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background: var(--background-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-item {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: var(--accent-color);
}

.portfolio-image {
    position: relative;
    height: 200px;
    background: var(--background-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-tertiary) 0%, var(--background-card) 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

.portfolio-item:hover .placeholder-content {
    color: var(--primary-color);
}

.portfolio-item:hover .placeholder-icon {
    opacity: 0.8;
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links {
    display: flex;
    gap: var(--spacing-md);
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--background-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
}

.portfolio-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.portfolio-link svg {
    width: 24px;
    height: 24px;
}

.portfolio-content {
    padding: var(--spacing-lg);
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-tag {
    background: var(--background-tertiary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background: var(--hover-color);
    color: var(--primary-color);
}

/* Services Section */
.services {
    background: var(--background-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.service-item {
    background: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.service-item:hover .service-icon {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-md);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-pricing {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.service-pricing .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.services-cta {
    text-align: center;
    background: var(--background-card);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.services-cta h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.services-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    background: var(--background-tertiary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.contact-items {
    margin-top: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--background-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    color: var(--primary-color);
    margin-bottom: 2px;
}

.social-links {
    margin-top: var(--spacing-xl);
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-form {
    background: var(--background-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* Form validation styles */
.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group.success input,
.form-group.success textarea {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

/* Animations */
@keyframes animateBacklightGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-30%);
    }
    50% {
        transform: translateY(30%);
    }
    100% {
        transform: translateY(-30%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-30%) translateY(-10%);
    }
    50% {
        transform: translateX(30%) translateY(10%);
    }
    100% {
        transform: translateX(-30%) translateY(-10%);
    }
}

@keyframes moveGradient {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes codeFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

.fade-in.delay-3 {
    animation-delay: 0.6s;
}

.fade-in.delay-4 {
    animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: var(--transition-normal);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-stats {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .service-item {
        padding: var(--spacing-lg);
    }

    .services-cta {
        padding: var(--spacing-lg);
    }

    .services-cta h3 {
        font-size: 1.5rem;
    }
    
    /* New sections responsive design */
    .education-grid,
    .certifications-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .experience-timeline {
        padding-left: 0;
    }
    
    .timeline-item {
        padding-left: var(--spacing-lg);
    }
    
    .timeline-marker::before {
        left: 0;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}

/* Education Section */
.education {
    background: var(--background-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.education-item {
    background: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

.education-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.education-item:hover .education-icon {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.education-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.education-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.education-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    font-weight: 600;
}

.education-field {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}

.education-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications Section */
.certifications {
    background: var(--background-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.certification-item {
    background: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

.certification-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.certification-item:hover .certification-icon {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.certification-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.certification-content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.certification-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    font-weight: 600;
}

.certification-id {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-xs);
}

.certification-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.certification-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience Timeline Styles */
.experience-timeline {
    position: relative;
    padding-left: var(--spacing-lg);
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-xl);
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--background-secondary);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -6px;
    width: 24px;
    height: 24px;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.timeline-content h5 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background: var(--background-tertiary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--background-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

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

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

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid,
    .services-grid,
    .education-grid,
    .certifications-grid,
    .interests-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .education-item,
    .service-item,
    .portfolio-item {
        padding: var(--spacing-md);
    }
    
    .hero-buttons {
        gap: var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat {
        text-align: center;
    }
    
    .skill-tags,
    .timeline-skills,
    .portfolio-tech {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .skill-tag,
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .about-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .education-item,
    .service-item,
    .portfolio-item,
    .interest-item {
        padding: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-menu {
        padding-top: var(--spacing-lg);
    }
    
    .nav-item {
        margin: var(--spacing-xs) 0;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better touch targets */
    .nav-link,
    .btn,
    .social-link,
    .portfolio-link {
        min-height: 44px; /* iOS recommended minimum */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle {
        padding: var(--spacing-xs);
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text selection on touch devices */
    * {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Better spacing between interactive elements */
    .hero-buttons {
        gap: var(--spacing-md);
    }
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 10000;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        top: 80px;
        min-width: auto;
    }
}

/* Interests Section */
.interests {
    background: var(--background-primary);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.interest-item {
    background: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    text-align: center;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

.interest-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--background-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.interest-item:hover .interest-icon {
    background: var(--primary-color);
    color: var(--background-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.interest-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.interest-item h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.interest-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}