/* Global Styles */
:root {
    --primary-color: #a259ff;
    --secondary-color: #ff5e7e;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-secondary: #666;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #a259ff 0%, #ff5e7e 100%);
    --gradient-secondary: linear-gradient(135deg, #ff5e7e 0%, #a259ff 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: 20px;
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --grid-color: rgba(162, 89, 255, 0.1);
    --grid-size: 30px;
    --container-width: 1200px;
    --section-padding: 5rem 2rem;
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-secondary: #b3b3b3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    --grid-color: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: center center;
    z-index: -2;
    pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-gradient);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle .fa-sun {
    position: absolute;
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle:hover {
    background: var(--glass-bg);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    gap: 2rem;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
    order: 1;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    background: var(--glass-gradient);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-content {
    flex: 1;
    padding-left: 2rem;
    position: relative;
    z-index: 1;
    order: 2;
}

.typing-text {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.profession {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dynamic-text {
    color: var(--secondary-color);
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.social-links {
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.2),
        rgba(255, 94, 126, 0.2)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(162, 89, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.3),
        rgba(255, 94, 126, 0.3)
    );
    border-color: rgba(162, 89, 255, 0.4);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.about-text {
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.8;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.03),
        rgba(255, 94, 126, 0.03)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--glass-gradient);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Timeline/Journey Section */
.timeline, .journey {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.journey.full-width {
    width: 100%;
    max-width: 100%;
    padding: 80px 0;
    background: var(--bg-color);
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container.full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.timeline-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.timeline-container::before,
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 1.5rem;
    background: var(--glass-gradient);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.03),
        rgba(255, 94, 126, 0.03)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-entry {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.timeline-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-entry h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-entry p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-entry span {
    display: block;
    color: var(--primary-color);
    font-size: 0.9em;
    margin-top: 5px;
}

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

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

.service-card {
    background: var(--glass-gradient);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid #ccc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.03),
        rgba(255, 94, 126, 0.03)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-link {
    background: var(--gradient-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

.blog-card {
    background: var(--glass-gradient);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.03),
        rgba(255, 94, 126, 0.03)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.25);
    border: 1.5px solid rgba(162,89,255,0.15);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(162,89,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s, border 0.3s;
}

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

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 1rem; }
    .form-container { padding: 1.2rem 0.5rem; }
}

.form-group {
    position: relative;
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1rem 1.1rem 4.2rem;
    background: rgba(255,255,255,0.6);
    border: 1.5px solid rgba(162,89,255,0.15);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border 0.3s, background 0.3s;
    box-shadow: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 1.3rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid var(--primary-color);
    background: rgba(255,255,255,0.85);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 4.2rem;
    top: 1.1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 2;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.9rem;
    left: 3.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--bg-color);
    padding: 0 0.4rem;
}

.form-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(162,89,255,0.08);
    transition: background 0.3s, color 0.3s;
    z-index: 3;
}

.form-group textarea ~ .form-icon {
    top: 1.3rem;
    transform: none;
}

.form-group input:focus ~ .form-icon,
.form-group textarea:focus ~ .form-icon {
    background: var(--secondary-color);
    color: #fff;
}

/* Error Message Styles (keep) */
.form-group .error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #ff4d4d;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4d4d;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .form-container {
    background: rgba(20,20,30,0.7);
    border: 1.5px solid rgba(162,89,255,0.18);
    box-shadow: 0 8px 32px rgba(162,89,255,0.12);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(30,30,40,0.7);
    color: #fff;
    border: 1.5px solid rgba(162,89,255,0.18);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(30,30,40,0.95);
    border: 1.5px solid var(--primary-color);
}
[data-theme="dark"] .form-group label {
    background: transparent;
    color: #b3b3b3;
}
[data-theme="dark"] .form-group input:focus ~ label,
[data-theme="dark"] .form-group textarea:focus ~ label,
[data-theme="dark"] .form-group input:valid ~ label,
[data-theme="dark"] .form-group textarea:valid ~ label {
    background: var(--bg-color);
    color: var(--primary-color);
}
[data-theme="dark"] .form-icon {
    background: var(--primary-color);
    color: #fff;
}
[data-theme="dark"] .form-group input:focus ~ .form-icon,
[data-theme="dark"] .form-group textarea:focus ~ .form-icon {
    background: var(--secondary-color);
    color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        padding: 1rem 1rem 1rem 3rem;
    }
    .form-group label {
        left: 3rem;
    }
    .form-group input:focus ~ label,
    .form-group textarea:focus ~ label,
    .form-group input:valid ~ label,
    .form-group textarea:valid ~ label {
        left: 2.3rem;
    }
    .form-icon {
        left: 0.7rem;
        width: 1.7rem;
        height: 1.7rem;
        font-size: 1rem;
    }
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(162, 89, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 89, 255, 0.4);
}

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

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

/* Footer */
.footer {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Particles.js Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-content {
        order: 2;
        padding-left: 0;
    }

    .hero-image img {
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline-container::before,
    .timeline-wrapper::before {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .typing-text {
        font-size: 2.5rem;
    }

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

    .stat-card, .service-card, .blog-card {
        transform: none !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem;
    }

    :root {
        --grid-size: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --grid-size: 15px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Glassmorphism Styles */
.service-card:hover, .project-card:hover, .blog-card:hover, .about-text:hover, .timeline-content:hover, .stat-card:hover, .section-container:hover {
    background: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .service-card:hover, [data-theme="dark"] .project-card:hover, [data-theme="dark"] .blog-card:hover, [data-theme="dark"] .about-text:hover, [data-theme="dark"] .timeline-content:hover, [data-theme="dark"] .stat-card:hover, [data-theme="dark"] .section-container:hover {
    background: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

/* Glassmorphism Focus Effects */
.form-group input:focus,
.form-group textarea:focus {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(162, 89, 255, 0.2);
}

/* Section Container Styles */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding);
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    z-index: -1;
}

[data-theme="dark"] .section-container {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Hover effect for section containers */
.section-container:hover {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.08),
        rgba(255, 94, 126, 0.08)
    );
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .section-container:hover {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.15),
        rgba(255, 94, 126, 0.15)
    );
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Update content inside containers */
.about-text,
.service-card,
.blog-card,
.section-container {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.03),
        rgba(255, 94, 126, 0.03)
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .about-text,
[data-theme="dark"] .service-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .section-container {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.08),
        rgba(255, 94, 126, 0.08)
    );
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Hover effects for inner elements */
.about-text:hover,
.service-card:hover,
.blog-card:hover,
.section-container:hover {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .about-text:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .section-container:hover {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.12),
        rgba(255, 94, 126, 0.12)
    );
    border-color: rgba(255, 255, 255, 0.05);
}

/* Update existing section styles */
.about,
.services,
.portfolio,
.blog,
.timeline,
.journey {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

.about-content,
.services-grid,
.portfolio-grid,
.blog-grid,
.timeline-container,
.timeline-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    :root {
        --container-width: 95%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }
    
    .section-container {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 1rem;
    }
    
    .section-container {
        border-radius: 10px;
    }
}

/* Three.js Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
}

/* Update existing elements to work with 3D background */
body {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.navbar {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1000;
}

.section-container {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Add 3D hover effects */
.service-card,
.blog-card,
.portfolio-item,
.section-container {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.service-card:hover,
.blog-card:hover,
.portfolio-item:hover,
.section-container:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
}

/* Update hero section for 3D effect */
.hero {
    position: relative;
    z-index: 2;
}

.hero-image img {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateZ(30px) rotateY(10deg);
}

/* Add parallax scrolling effect */
.parallax-section {
    transform-style: preserve-3d;
    transform: translateZ(-1px) scale(2);
}

/* Update dark mode for 3D elements */
[data-theme="dark"] .section-container {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .navbar {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Go to Top Button */
.go-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.go-to-top i {
    transition: transform 0.3s ease;
}

.go-to-top:hover i {
    transform: translateY(-2px);
}

/* Dark mode adjustments */
[data-theme="dark"] .go-to-top {
    background: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Menu Animation */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

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

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-menu .nav-links a {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.mobile-menu.active .nav-links a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .nav-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .nav-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .nav-links a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .nav-links a:nth-child(5) { transition-delay: 0.5s; }

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

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

.project-card {
    background: var(--glass-gradient);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.1),
        rgba(255, 94, 126, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

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

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(162, 89, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-tech span i {
    color: var(--primary-color);
}

.project-tech span:hover {
    background: rgba(162, 89, 255, 0.2);
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Dark mode adjustments */
[data-theme="dark"] .project-card {
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.05),
        rgba(255, 94, 126, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .project-tech span {
    background: rgba(162, 89, 255, 0.15);
}

[data-theme="dark"] .project-tech span:hover {
    background: rgba(162, 89, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-icon {
        font-size: 2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }
}

/* About Read More Button and Collapse */
.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: var(--shadow-sm);
}
.read-more-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px) scale(1.04);
}

.about-more {
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
.about-more.collapse {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Button Ripple Effect */
.cta-button, .submit-btn, .read-more-btn, .project-link, .portfolio-link, .go-to-top, .theme-toggle {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(162, 89, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animated Icon Hover */
.social-icon, .project-icon, .service-card i, .stat-card i {
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}
.social-icon:hover, .project-icon:hover, .service-card:hover i, .stat-card:hover i {
    transform: scale(1.15) rotate(-8deg);
    color: var(--secondary-color);
}

/* Animated Section Transitions */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1s;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* Fine-tuned Card Tilt */
.service-card, .project-card, .blog-card, .stat-card {
    will-change: transform;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Subtle Dynamic Background Gradient */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 40%, rgba(162,89,255,0.08) 0%, transparent 70%),
                radial-gradient(ellipse at 30% 70%, rgba(255,94,126,0.08) 0%, transparent 70%);
    transition: background 1s;
}

/* Theme Color Picker */
input[type="color"] {
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    outline: none;
}

/* Testimonials Slider */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
}

.testimonial-slide {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    background: var(--glass-gradient);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

/* Downloadable Resume */
.resume-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Featured Project */
.featured-project {
    background: var(--glass-gradient);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
}

/* Navbar Section Highlight */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* WhatsApp/Telegram Link */
.social-icon.fa-whatsapp {
    color: #25D366;
}

/* Blog Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 5px 10px;
    background: var(--glass-gradient);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover {
    background: var(--primary-color);
    color: white;
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.easter-egg.visible {
    opacity: 1;
}

/* Animated Dark/Light Mode Toggle */
.theme-toggle.animate {
    animation: spin 0.5s linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .section-container,
    .form-container,
    .about,
    .services,
    .projects,
    .portfolio,
    .blog,
    .journey,
    .timeline {
        max-width: 98vw;
        width: 100%;
        padding: 1rem 0.5rem;
        border-radius: 10px;
    }
    .footer-content {
        padding: 0 0.5rem;
    }
}

.go-to-top { opacity: 1 !important; visibility: visible !important; z-index: 99999 !important; }
