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

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

/* Typography System and Base Styles */
body {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Dark theme background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.loader-line-wrap {
    animation: spin 2s cubic-bezier(.175, .885, .32, 1.275) infinite;
    box-sizing: border-box;
    height: 50px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform-origin: 50% 100%;
    width: 1px;
}

.loader-line {
    border: 2px solid transparent;
    border-radius: 100%;
    box-sizing: border-box;
    height: 100px;
    left: 50%;
    margin: -50px 0 0 -50px;
    position: absolute;
    top: 50%;
    width: 100px;
}

.loader-line-wrap:nth-child(1) { animation-delay: -50ms; }
.loader-line-wrap:nth-child(2) { animation-delay: -100ms; }
.loader-line-wrap:nth-child(3) { animation-delay: -150ms; }
.loader-line-wrap:nth-child(4) { animation-delay: -200ms; }
.loader-line-wrap:nth-child(5) { animation-delay: -250ms; }

.loader-line-wrap:nth-child(1) .loader-line { border-color: hsl(0, 80%, 60%); }
.loader-line-wrap:nth-child(2) .loader-line { border-color: hsl(60, 80%, 60%); }
.loader-line-wrap:nth-child(3) .loader-line { border-color: hsl(120, 80%, 60%); }
.loader-line-wrap:nth-child(4) .loader-line { border-color: hsl(180, 80%, 60%); }
.loader-line-wrap:nth-child(5) .loader-line { border-color: hsl(240, 80%, 60%); }

@keyframes spin {
    0%, 15% { transform: rotate(0); }
    25% { transform: rotate(30deg); }
    35% { transform: rotate(60deg); }
    45% { transform: rotate(90deg); }
    55% { transform: rotate(120deg); }
    65% { transform: rotate(150deg); }
    75% { transform: rotate(180deg); }
    85% { transform: rotate(210deg); }
    95% { transform: rotate(240deg); }
    100% { transform: rotate(270deg); }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c77c6, #ff77c6, #77dbff);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

/* Heading Hierarchy */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333333;
}

/* Paragraph Styling */
p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
}

/* Enhanced Header and Navigation */
.header-animated {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.brand-text {
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #7c77c6;
    background: rgba(120, 119, 198, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c77c6, #ff77c6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content Container */
main {
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Enhanced Section Styling */
section {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    margin: 30px 0;
    padding: 80px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Enhanced Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 50px 80px;
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(255, 119, 198, 0.2));
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.1);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.hero-greeting {
    margin-bottom: 20px;
}

.greeting-text {
    font-size: 1.3rem;
    color: #cccccc;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
}

.name-highlight {
    background: linear-gradient(135deg, #7c77c6, #ff77c6, #77dbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-decoration {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #7c77c6, #ff77c6);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.hero-subtitle-container {
    margin-bottom: 30px;
    height: 60px;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #cccccc;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.typing-text {
    min-width: 300px;
}

.cursor {
    animation: blink 1s infinite;
    color: #7c77c6;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #cccccc;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #7c77c6;
    line-height: 1;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    color: white;
    box-shadow: 0 10px 30px rgba(120, 119, 198, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(120, 119, 198, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #7c77c6;
    border-color: #7c77c6;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #7c77c6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(120, 119, 198, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    font-size: 0.9rem;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #cccccc;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #7c77c6;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* Hero Visual */
.hero-visual {
    flex: 0 0 400px;
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.1), rgba(255, 127, 80, 0.1));
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float-tech 4s ease-in-out infinite;
}

.tech-icon-1 { top: -20px; left: -20px; color: #61dafb; animation-delay: 0s; }
.tech-icon-2 { top: -10px; right: -25px; color: #68a063; animation-delay: 1s; }
.tech-icon-3 { bottom: -15px; left: -25px; color: #3776ab; animation-delay: 2s; }
.tech-icon-4 { bottom: -20px; right: -20px; color: #f7df1e; animation-delay: 0.5s; }
.tech-icon-5 { top: 50%; left: -30px; color: #e34f26; animation-delay: 1.5s; }
.tech-icon-6 { top: 50%; right: -30px; color: #1572b6; animation-delay: 2.5s; }

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333333;
}

.highlight {
    color: #ff6347;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666666;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555555;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #ff6347;
    color: white;
    border-color: #ff6347;
}

.btn-primary:hover {
    background-color: #e55347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ff6347;
    border-color: #ff6347;
}

.btn-secondary:hover {
    background-color: #ff6347;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    flex: 0 0 300px;
    text-align: center;
}

.hero-image img {
    width: 280px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced About Section */
.about-section {
    background: rgba(15, 15, 15, 0.9);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.about-intro h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 40px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #7c77c6;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(120, 119, 198, 0.3);
}

.detail-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.detail-content p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* Experience Timeline */
.about-visual {
    position: relative;
}

.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #7c77c6, #ff77c6);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #7c77c6;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 0 3px rgba(120, 119, 198, 0.2);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.timeline-content p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Skills Section */
.skills-section {
    margin-top: 80px;
}

.skills-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category {
    background: rgba(20, 20, 20, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c77c6, #ff77c6);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c77c6, #ff77c6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(120, 119, 198, 0.3);
}

.category-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
}

.skill-bar {
    height: 8px;
    background: rgba(120, 119, 198, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #7c77c6, #ff77c6);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.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%); }
}

/* Portfolio Section Styling */
#portfolio h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 99, 71, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: #ff6347;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 30px;
}

.project h3 {
    margin-bottom: 15px;
    color: #333333;
    font-size: 1.4rem;
}

.project p {
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #f8f9fa;
    color: #ff6347;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ff6347;
}

/* Contact Section Styling */
#contact h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: #333333;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    color: #ff6347;
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #333333;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #666666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6347;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #ffffff;
    margin-top: 80px;
    border-top: 1px solid rgba(120, 119, 198, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.footer-section h3 {
    color: #7c77c6;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #7c77c6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #7c77c6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(120, 119, 198, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-bottom i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design - Mobile First */

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        gap: 0;
        border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    }

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

    .nav-menu .nav-item {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    main {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    /* Section padding reduction */
    section {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    /* Hero section mobile */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 20px 40px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-visual {
        flex: none;
        margin-bottom: 40px;
        max-width: 300px;
    }
    
    .hero-image {
        height: 220px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .floating-shape {
        display: none;
    }
    
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro h3 {
        font-size: 1.6rem;
    }
    
    .detail-item {
        padding: 20px;
    }
    
    .detail-item:hover {
        transform: translateY(-5px);
    }
    
    .experience-timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
        margin-bottom: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-category {
        padding: 30px 20px;
    }
    
    .skills-title {
        font-size: 2rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Portfolio grid - single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact section mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Tablet Devices (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Hero section tablet */
    .hero {
        padding: 80px 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        width: 260px;
        height: 190px;
    }
    
    /* About section tablet */
    .about-content {
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Portfolio grid - two columns */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Contact section tablet */
    .contact-container {
        gap: 50px;
    }
    
    /* Footer tablet */
    .footer-content {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
    
    section {
        padding: 50px 40px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Desktop Devices (1025px+) */
@media screen and (min-width: 1025px) {
    /* Portfolio grid - three columns */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    /* Maximum content width constraint */
    main {
        max-width: 1200px;
    }
    
    section {
        padding: 60px;
    }
    
    /* Enhanced hover effects for larger screens */
    .project:hover {
        transform: translateY(-8px);
    }
}

/* Very Large Screens (1400px+) */
@media screen and (min-width: 1400px) {
    main {
        max-width: 1400px;
    }
    
    section {
        padding: 80px;
    }
}

/* Additional Interactive Elements and Accessibility */

/* Focus indicators for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6347;
    outline-offset: 2px;
}

/* Smooth transitions for all hover effects */
* {
    transition: all 0.3s ease;
}

/* Enhanced accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {
    header {
        position: static;
    }
    
    main {
        margin-top: 0;
    }
    
    .social-links {
        display: none;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}