/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    position: relative;
    min-height: 100vh;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.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: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 70%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-section {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.profile-image {
    margin-bottom: 2rem;
}

.image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.image-container i {
    font-size: 4rem;
    color: white;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.6s both;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: fadeIn 1s ease-out 0.9s both;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.2s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    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(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

/* Navigation */
.nav-menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.heart-beat {
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 3rem !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: #ff6b6b !important;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-image i {
    font-size: 2rem;
    color: white;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #4ecdc4;
    border-radius: 25px;
}

.project-link:hover {
    background: #4ecdc4;
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-method i {
    font-size: 1.5rem;
    color: #4ecdc4;
    width: 30px;
    text-align: center;
}

.contact-method h4 {
    margin: 0 0 0.3rem 0;
    color: #fff;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-links-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-link-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.modal-body h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-contact {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #4ecdc4;
    font-size: 1.2rem;
}

.modal-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thanks-emoji {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.thanks-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-footer .btn {
    margin: 0;
    min-width: 120px;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .nav-menu {
        top: 1rem;
        right: 1rem;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        left: 1rem;
        flex-direction: row;
        top: auto;
        bottom: 1rem;
        transform: none;
    }
    
    .scroll-indicator {
        bottom: 5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .social-links-contact {
        justify-content: center;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .profile-image .image-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-image .image-container i {
        font-size: 3rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-content {
        padding: 0 1rem;
    }
}

/* =============================
   2025 Design Tokens & Theming
   ============================= */
:root {
	/* Core palette */
	--color-bg-start: #5e60ce; /* Indigo */
	--color-bg-end: #7400b8;   /* Purple */
	--color-surface: rgba(255, 255, 255, 0.08);
	--color-surface-strong: rgba(255, 255, 255, 0.14);
	--color-border: rgba(255, 255, 255, 0.22);
	--color-text: #ffffff;
	--color-text-muted: rgba(255, 255, 255, 0.85);

	/* Brand accents */
	--color-accent-1: #ff6b6b; /* Coral */
	--color-accent-2: #4ecdc4; /* Teal */
	--color-accent-3: #fca311; /* Amber */

	/* Buttons */
	--btn-primary-start: var(--color-accent-1);
	--btn-primary-end: #ee5a24;
	--btn-secondary-start: var(--color-accent-2);
	--btn-secondary-end: #3aa89f;

	/* Elevation */
	--shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.25);
	--shadow-md: 0 10px 30px rgba(0, 0, 0, 0.30);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);

	/* Focus */
	--focus: 0 0 0 3px rgba(78, 205, 196, 0.35);
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-bg-start: #2b2d42;
		--color-bg-end: #3a0ca3;
		--color-surface: rgba(255, 255, 255, 0.07);
		--color-surface-strong: rgba(255, 255, 255, 0.12);
		--color-border: rgba(255, 255, 255, 0.18);
		--color-text: #f8f9fc;
		--color-text-muted: rgba(248, 249, 252, 0.9);
	}
}

/* Explicit theme overrides via [data-theme] to allow manual switching */
[data-theme="light"] {
	/* Fresh light theme (2025): soft warm background, crisp surfaces, readable text */
	--color-bg-start: #faf8ff; /* near-white with lilac tint */
	--color-bg-end: #f2f6ff;   /* airy blue tint */
	--color-surface: rgba(15, 23, 42, 0.06); /* slate overlay */
	--color-surface-strong: rgba(15, 23, 42, 0.1);
	--color-border: rgba(15, 23, 42, 0.12);
	--color-text: #101828; /* neutral-900 */
	--color-text-muted: rgba(16, 24, 40, 0.7);

	/* Slightly cooler accents for light mode */
	--color-accent-1: #ef476f; /* watermelon */
	--color-accent-2: #06d6a0; /* mint */
	--color-accent-3: #ffd166; /* warm amber */

	--btn-primary-start: var(--color-accent-1);
	--btn-primary-end: #e6395a;
	--btn-secondary-start: var(--color-accent-2);
	--btn-secondary-end: #0dbb92;
}

/* Light theme specific surface polish for sections/cards */
[data-theme="light"] .section {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: saturate(120%) blur(8px);
	border-top-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .project-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .contact-method,
[data-theme="light"] .stat-item,
[data-theme="light"] .nav-menu ul,
[data-theme="light"] .social-link,
[data-theme="light"] .scroll-arrow,
[data-theme="light"] .social-link-contact {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .contact-method:hover {
	background: rgba(255, 255, 255, 0.86);
}

/* Animated gradient divider for sections in light theme */
@keyframes lightDivider {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}

[data-theme="light"] .section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent-1), var(--color-accent-3), var(--color-accent-2));
	background-size: 300% 100%;
	animation: lightDivider 6s linear infinite;
	opacity: 0.95;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Contact section readability in light theme */
[data-theme="light"] .contact-info h3,
[data-theme="light"] .contact-info p,
[data-theme="light"] .contact-method h4,
[data-theme="light"] .contact-method p,
[data-theme="light"] .section-title {
	color: var(--color-text);
}

[data-theme="light"] .contact-method i {
	color: var(--color-accent-2);
}

[data-theme="light"] .contact-form {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
	background: #ffffff;
	border-color: rgba(15, 23, 42, 0.18);
	color: var(--color-text);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
	color: rgba(16, 24, 40, 0.45);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
	border-color: var(--color-accent-2);
	box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.25);
	background: #ffffff;
}

[data-theme="light"] .social-link-contact {
	color: var(--color-text);
}

/* Nav and social visibility in light theme */
[data-theme="light"] .nav-menu ul {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .nav-link {
	color: #0b132b;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
	background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .social-link {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(15, 23, 42, 0.12);
	color: #101828;
}

[data-theme="light"] .social-link i {
	color: #101828;
}

[data-theme="light"] .social-link:hover {
	background: #ffffff;
}

[data-theme="dark"] {
	--color-bg-start: #2b2d42;
	--color-bg-end: #3a0ca3;
	--color-surface: rgba(255, 255, 255, 0.07);
	--color-surface-strong: rgba(255, 255, 255, 0.12);
	--color-border: rgba(255, 255, 255, 0.18);
	--color-text: #f8f9fc;
	--color-text-muted: rgba(248, 249, 252, 0.9);
}

/* Themed overrides (non-destructive) */
body {
	background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
	color: var(--color-text);
}

.nav-menu ul,
.social-link,
.scroll-arrow,
.contact-form,
.contact-method,
.stat-item,
.project-card,
.social-link-contact,
.modal-header,
.modal-contact,
.modal-footer {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	backdrop-filter: blur(10px);
}

.project-card:hover,
.contact-method:hover {
	background: var(--color-surface-strong);
}

.section {
	background: rgba(255, 255, 255, 0.06);
	border-top: 1px solid var(--color-border);
}

.section-title,
.stat-number,
.highlight {
	background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.btn-primary {
	background: linear-gradient(45deg, var(--btn-primary-start), var(--btn-primary-end));
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	background: linear-gradient(45deg, var(--btn-secondary-start), var(--btn-secondary-end));
	box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
	box-shadow: var(--shadow-md);
}

.project-image {
	background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
}

.project-link {
	color: var(--color-accent-2);
	border-color: var(--color-accent-2);
}

.project-link:hover {
	background: var(--color-accent-2);
	color: #ffffff;
}

.contact-method i {
	color: var(--color-accent-2);
}

.social-link:hover {
	transform: translateY(-3px) scale(1.1);
}

/* Better focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.project-link:focus-visible {
	outline: none;
	box-shadow: var(--focus);
	border-radius: 8px;
}

/* Muted text improvements */
.description p,
.project-content p,
.contact-info p,
.stat-label {
	color: var(--color-text-muted);
}

/* Subtle elevation tuning */
.image-container { box-shadow: var(--shadow-md); }
.project-card:hover { box-shadow: var(--shadow-lg); }