/* CSS Variables for Theme Management */
:root {
    --dark-primary: #0a192f;
    --dark-secondary: #112240;
    --accent-teal: #64ffda;
    --text-light: #ccd6f6;
    --text-muted: #8892b0;
    --text-dark: #8892b0;
    --border-color: #233554;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --line-height: 1.8;
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    background: var(--dark-primary);
    color: var(--text-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #4fd1c7;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-teal);
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

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

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-teal);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    color: var(--accent-teal);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-teal);
    color: var(--dark-primary);
}

.btn-primary:hover {
    background: #4fd1c7;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Projects Section */
.project-category {
    margin-bottom: 4rem;
}

.category-title {
    color: var(--accent-teal);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.project-card {
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.project-overline {
    color: var(--accent-teal);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

.project-description {
    margin-bottom: 1.5rem;
}

.project-description p {
    color: var(--text-muted);
    line-height: 1.7;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.project-tech-list li {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent-teal);
    transform: translateY(-2px);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

/* Skills Section */
.skills {
    background: var(--dark-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: var(--dark-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Certifications */
.certifications h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-teal);
}

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

.cert-item {
    background: var(--dark-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.cert-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cert-item a {
    color: var(--accent-teal);
    font-weight: 500;
}

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

.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.contact-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-cta .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--dark-primary);
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-teal);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--dark-primary);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    margin: 0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 25, 47, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-medium);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

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

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .project-tech-list {
        justify-content: flex-start;
    }
}

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

.project-card,
.skill-category,
.cert-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .project-links,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .project-card,
    .skill-category,
    .cert-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 