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

:root {
    /* Professional & Trustworthy Color Palette */
    --primary-color: #00d4ff; /* Bright cyan - Innovation & Tech */
    --secondary-color: #7c3aed; /* Royal purple - Creativity & Expertise */
    --accent-color: #10b981; /* Green - Success & Growth */
    --highlight-color: #f59e0b; /* Amber - Energy & Action */
    --dark-bg: #0a0e27; /* Deep navy - Professional & Calm */
    --dark-card: #1a1f3a; /* Slate blue - Depth */
    --card-hover: #252d4a; /* Lighter slate - Interactive */
    --text-light: #ffffff;
    --text-gray: #cbd5e1;
    --text-dim: #94a3b8;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ec4899 100%);
    --gradient-hover: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
    --shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
    --shadow-hover: 0 20px 60px rgba(124, 58, 237, 0.4);
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: var(--glow);
}

.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
}

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

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-card);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow);
}

/* About Section */
.about {
    background-color: var(--dark-card);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.resume-download {
    margin-top: 30px;
}

.resume-download .btn {
    animation: pulse 2s infinite;
    font-size: 1.1rem;
    padding: 15px 35px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: var(--shadow-hover);
    }
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: var(--shadow);
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 5px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

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

.skill-category {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px);
    background-color: var(--card-hover);
    box-shadow: var(--shadow-hover);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--gradient);
    transform: scale(1.1);
    box-shadow: var(--glow);
    border-color: transparent;
}

/* Experience Section */
.experience {
    background-color: var(--dark-card);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--dark-card);
}

.timeline-content {
    background-color: var(--dark-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.timeline-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: var(--text-gray);
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.project-card {
    background-color: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-color);
}

.project-image {
    background: var(--gradient);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 25px;
}

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

.project-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

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

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Contact Section */
.contact {
    background-color: var(--dark-card);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.contact-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background-color: var(--dark-bg);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient);
}

.contact-method:hover h4,
.contact-method:hover a {
    color: white;
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-method h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-method a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    justify-self: start;
}

/* Footer */
.footer {
    background-color: #0a0f1e;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    color: var(--text-gray);
}

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

.footer-links a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -28px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .image-placeholder,
    .profile-image {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
