/* CSS Variables for Theme Switching - Professional Portfolio */
:root {
    /* Light Theme Variables - Modern Professional */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-color: #0ea5e9;
    --accent-secondary: #0284c7;
    --accent-tertiary: #0369a1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: rgba(14, 165, 233, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover-bg: rgba(255, 255, 255, 0.95);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #0f172a;
    --shadow-color: rgba(14, 165, 233, 0.08);
    --shadow-hover: rgba(14, 165, 233, 0.15);
    --input-bg: rgba(248, 250, 252, 0.8);
    --input-border: rgba(14, 165, 233, 0.2);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Dark Theme Variables - Professional Dark Mode */
.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-secondary: #0ea5e9;
    --accent-tertiary: #0284c7;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --border-color: rgba(56, 189, 248, 0.15);
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-hover-bg: rgba(30, 41, 59, 0.8);
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-text: #f8fafc;
    --shadow-color: rgba(56, 189, 248, 0.1);
    --shadow-hover: rgba(56, 189, 248, 0.2);
    --input-bg: rgba(30, 41, 59, 0.5);
    --input-border: rgba(56, 189, 248, 0.3);
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --glass-bg: rgba(30, 41, 59, 0.25);
    --glass-border: rgba(56, 189, 248, 0.18);
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px var(--shadow-color);
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.theme-btn:active {
    transform: translateY(0);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

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

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    position: relative;
}

/* Hero Visual - Creative Developer Theme */
.hero-visual {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 400px;
    min-height: 400px;
    position: relative;
    animation: fadeInLeft 3s ease-out 0.5s both;
}

/* Code Terminal */
.code-terminal {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3),
                0 0 0 1px var(--border-color);
    overflow: hidden;
    z-index: 3;
    animation: terminalFloat 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes terminalFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #ff5f57;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #28ca42;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
    background: var(--bg-secondary);
    font-family: 'Courier New', monospace;
}

.code-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-prompt {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

.code-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.code-cursor {
    color: var(--accent-color);
    animation: blinkCursor 1.5s infinite;
    font-size: 1rem;
}

@keyframes blinkCursor {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: typing 2.8s steps(28, end) 0.5s both, 
               blinkCursor 1.5s step-end infinite;
    width: 0;
    display: inline-block;
    max-width: fit-content;
    letter-spacing: 0.02em;
}

.typing-animation-delay {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: typing 3s steps(28, end) 3.5s both, 
               blinkCursor 1.5s step-end infinite;
    width: 0;
    display: inline-block;
    max-width: fit-content;
    letter-spacing: 0.02em;
}

@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.6;
    animation: floatIcon 8s ease-in-out infinite;
    animation-delay: var(--delay);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
    transition: all 0.3s ease;
}

.floating-icons i:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.8));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(0deg);
    }
    25% {
        transform: translate(calc(-50% + var(--x) * 1.2), calc(-50% + var(--y) * 0.8)) rotate(90deg);
    }
    50% {
        transform: translate(calc(-50% + var(--x) * 0.8), calc(-50% + var(--y) * 1.2)) rotate(180deg);
    }
    75% {
        transform: translate(calc(-50% + var(--x) * 1.1), calc(-50% + var(--y) * 0.9)) rotate(270deg);
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid var(--accent-color);
    opacity: 0.15;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    border-radius: 50%;
    animation: rotateShape 10s linear infinite;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
    animation: pulseShape 6s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
    }
    75% {
        border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    }
}

@keyframes rotateShape {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseShape {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: rotate(225deg) scale(1.2);
        opacity: 0.25;
    }
}

/* Responsive Styles for Hero Visual */
@media (max-width: 768px) {
    .hero-visual {
        min-width: 300px;
        min-height: 300px;
    }
    
    .code-terminal {
        max-width: 100%;
    }
    
    .terminal-body {
        padding: 1rem;
        min-height: 150px;
    }
    
    .code-text {
        font-size: 0.85rem;
    }
    
    .floating-icons i {
        font-size: 2rem;
    }
    
    .shape-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-2 {
        width: 80px;
        height: 80px;
    }
    
    .shape-3 {
        width: 90px;
        height: 90px;
    }
}

.hero-text {
    text-align: left;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: slideInUp 1s ease-out 0.5s both;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    animation: slideInUp 1s ease-out 0.7s both;
}

.hero-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.9s both;
}

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

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

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 1.1s both;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}


.profile-container {
    display: flex;
    align-items: center;   /* vertically align */
    gap: 20px;             /* space between image & text */
}

.profile-img img {
    width: 150px;   /* adjust size */
    height: auto;
    border-radius: 10px; /* optional */
}

.profile-info {
    font-size: 18px;
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.profile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 400px;
    width: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.profile-img {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.profile-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.profile-img i {
    color: var(--accent-color);
    display: block;
    margin: 0 auto;
}

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

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.profile-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.profile-details {
    margin-bottom: 1.5rem;
    text-align: left;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.profile-detail-item:hover {
    background: rgba(14, 165, 233, 0.05);
    transform: translateX(5px);
}

.profile-detail-item i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.profile-detail-item span {
    flex: 1;
    word-break: break-word;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.05), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(2, 132, 199, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.project-img {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.tag:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), #6366f1);
    transform: translateX(-50%);
    animation: timelineGrow 2s ease-out;
}

@keyframes timelineGrow {
    from { height: 0; }
    to { height: 100%; }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: timelineItemFade 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

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

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 45%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    animation: pulse 2s infinite;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.05), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.05), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
    background: var(--card-bg);
}

/* Contact Form Message Styles */
#form-message {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

#form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    background: var(--card-hover-bg);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(14, 165, 233, 0.05);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    text-align: center;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

/* Footer */
footer {
    background: var(--nav-bg);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--nav-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
}

.social-links a:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
    .nav-container,
    .hero-content,
    .section {
        max-width: 95%;
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        min-width: 300px;
        min-height: 300px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .profile-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .profile-img img {
        width: 150px;
        height: 150px;
    }
    
    .profile-info h3 {
        font-size: 1.3rem;
    }
    
    .profile-stats {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-tags {
        gap: 0.4rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1.5rem;
    }

    .timeline-content::before {
        left: -45px !important;
    }

    /* Achievements Section */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        min-height: 85vh;
        padding: 0 0.8rem;
    }
    

    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
    }

    /* Sections */
    .section {
        padding: 2.5rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* About Section */
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .profile-card {
        padding: 1.2rem;
    }
    
    .profile-img img {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h3 {
        font-size: 1.2rem;
    }
    
    .profile-title {
        font-size: 0.9rem;
    }
    
    .profile-detail-item {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }

    /* Skills Section */
    .skill-category {
        padding: 1.2rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }

    /* Projects Section */
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }

    /* Timeline */
    .timeline-content {
        padding: 1.2rem;
        margin-left: 40px !important;
    }
    
    .timeline-content::before {
        left: -35px !important;
    }

    /* Achievements Section */
    .achievement-card {
        padding: 1.2rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }

    /* Services Section */
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }

    /* Contact Section */
    .contact-form,
    .contact-info {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    /* Very Small Devices */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    
    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text h2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}


/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .floating {
        animation: none;
    }
    
    .achievement-icon {
        animation: none;
    }
    
    .service-card:hover .service-icon {
        transform: none;
    }
}

/* Professional Focus States */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Professional selection styling */
::selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--text-primary);
}

/* Print Styles */
@media print {
    nav,
    .theme-toggle,
    .cta-buttons,
    .social-links {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .project-card,
    .achievement-card,
    .service-card {
        page-break-inside: avoid;
    }
}

/* Fade-in animations for sections */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Floating animation for elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Typewriter effect for hero text */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--nav-text);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-nav-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

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

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

.mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-links li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-links li:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-links li:nth-child(6) { animation-delay: 0.6s; }
.mobile-nav-links li:nth-child(7) { animation-delay: 0.7s; }
.mobile-nav-links li:nth-child(8) { animation-delay: 0.8s; }

.mobile-nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 1rem 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}