/* CSS Variables for Theming */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-accent: #0f3460;
    --text-primary: #f0f0f0;
    --text-secondary: #c2c2c2;
    --accent: #4cc9f0;
    --card-bg: #1e2a4a;
    --shadow: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

.light-theme {
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --bg-accent: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent: #4361ee;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--accent);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--card-bg);
    width: 60px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
}

.toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    transition: var(--transition);
}

.light-theme .toggle-thumb {
    transform: translateX(30px);
}

.theme-toggle i {
    font-size: 14px;
    margin: 0 4px;
    color: var(--text-primary);
}

.fa-sun {
    color: #ffd700 !important;
}

.fa-moon {
    color: #f0f0f0 !important;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

/* Hero Section - Modern Authentic Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: conic-gradient(from 45deg, var(--accent), transparent, var(--accent));
    opacity: 0.03;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding: 50px;
    background: linear-gradient(145deg, var(--card-bg), rgba(30, 42, 74, 0.8));
    border-radius: 20px;
    box-shadow: 0 25px 50px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 800;
}

.hero-text .highlight {
    background: linear-gradient(135deg, var(--accent), #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7209b7);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 15px 30px rgba(76, 201, 240, 0.4);
}

.home-image {
    position: relative;
    text-align: center;
}

.img-box {
    padding: 30px;
    background: linear-gradient(145deg, var(--card-bg), rgba(30, 42, 74, 0.9));
    border-radius: 25px;
    box-shadow: 0 30px 60px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(76, 201, 240, 0.2);
    position: relative;
    overflow: hidden;
}

.img-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    filter: brightness(1.1) contrast(1.1);
}

.hero-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--accent), #7209b7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.4);
    border: 3px solid var(--bg-primary);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

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

.skill {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.skill:hover {
    transform: translateY(-10px);
}

.skill i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.skill h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.1), transparent);
    transition: var(--transition);
}

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

.service:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent), #7209b7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.3);
}

.service h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

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

/* Hire Me Section */
.hire-me {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    position: relative;
    overflow: hidden;
}

.hire-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hire-text {
    padding: 40px 0;
}

.hire-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    line-height: 1.2;
}

.hire-text p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.stat {
    text-align: center;
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hire-image {
    position: relative;
    text-align: center;
}

.profile-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px var(--shadow);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent);
    margin-bottom: 20px;
}

.availability-badge {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    display: inline-block;
}

.availability-badge::before {
    content: '●';
    margin-right: 8px;
    animation: pulse 2s infinite;
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.project {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.project:hover {
    transform: translateY(-10px);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    padding-right: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--accent);
    margin-right: 10px;
    width: 20px;
}

.contact-form {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-accent);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 40px 0 20px;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content,
    .hire-content {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-text,
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1,
    .hire-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-badge {
        right: 20px;
    }
    
    .hire-stats {
        justify-content: center;
    }
    
    .services-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-container,
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hire-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}