/* styles.css */
:root {
    /* Dark Theme Variables */
    --bg-dark: #1e1e2f;
    --text-light: #e0e0e0;
    --accent-green: #00ff99;
    --accent-blue: #00bcd4;
    --button-hover: #aaff00;
    --headings: #ffffff;
    --card-bg: rgba(30, 30, 47, 0.7);
    --border-color: rgba(0, 188, 212, 0.2);
    --progress-bg: rgba(0, 188, 212, 0.2);
}

[data-theme="light"] {
    /* Light Theme Variables */
    --bg-dark: #f5f5f5;
    --text-light: #222222;
    --accent-green: #008055;
    --accent-blue: #007a8a;
    --button-hover: #0077b6;
    --headings: #000000;
    --card-bg: rgba(245, 245, 245, 0.9);
    --border-color: rgba(0, 100, 120, 0.2);
    --progress-bg: rgba(0, 100, 120, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-green);
    color: var(--bg-dark);
    padding: 8px 16px;
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1100;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
    background: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 6rem 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--accent-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] header {
    background: rgba(245, 245, 245, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-green);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, #0a1a2f 0%, #1e2c47 100%);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #c9e6ff 0%, #d4e8ff 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.profile-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 153, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 153, 0.5);
}

.profile-picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e2f;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture i {
    font-size: 5rem;
    color: var(--accent-green);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--headings);
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

/* Main Content Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.3rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: var(--headings);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* About Section */
.about-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 255, 153, 0.2);
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h3 i {
    font-size: 1.6rem;
}

.skill-progress {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.progress-bar {
    height: 10px;
    background: var(--progress-bg);
    border-radius: 5px;
    overflow: hidden;
}

.progress-level {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Toolkit Section */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    perspective: 1000px;
}

.tool-card:hover {
    transform: translateY(-7px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.3);
}

.tool-card i {
    font-size: 2.8rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.tool-card:hover i {
    transform: scale(1.1);
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-green);
    font-size: 1.2rem;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Certification Pulse Animation */
@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* Certifications Section */
.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.certification-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    text-align: left;
    perspective: 1000px;
}

.certification-card:hover {
    transform: translateY(-7px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.3);
}

.certification-card.in-progress {
    animation: pulse 2s infinite;
    border-left: 4px solid var(--accent-green);
    position: relative;
}

.certification-card.planned {
    opacity: 0.8;
    filter: grayscale(30%);
}

.certification-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1.3rem;
}

.certification-card h3 {
    margin-bottom: 0.8rem;
    color: var(--accent-green);
    font-size: 1.3rem;
}

.certification-card .issuer {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.certification-card .date {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.certification-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-7px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.3);
}

.project-header {
    padding: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
}

.project-header h3 {
    color: var(--accent-green);
    font-size: 1.3rem;
}

.project-info {
    padding: 1.3rem;
}

.project-info p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background: rgba(0, 188, 212, 0.2);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.in-progress {
    background: rgba(170, 255, 0, 0.2);
    color: var(--button-hover);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.contact-info {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: var(--accent-green);
    margin-bottom: 1.3rem;
    font-size: 1.6rem;
}

.contact-details {
    margin-bottom: 1.8rem;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.contact-details i {
    color: var(--accent-green);
    width: 25px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 188, 212, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-green);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: var(--accent-green);
    margin-bottom: 1.3rem;
    font-size: 1.6rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
}

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

.btn {
    display: inline-block;
    background: var(--accent-green);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.btn:hover {
    background: var(--button-hover);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(170, 255, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--accent-green);
    color: var(--bg-dark);
}

/* Footer */
footer {
    background: rgba(30, 30, 47, 0.95);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--accent-blue);
}

[data-theme="light"] footer {
    background: rgba(245, 245, 245, 0.95);
}

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

.footer-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.8rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-toggle {
        top: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
    }
    
    header {
        padding: 1rem 1.5rem;
    }
    
    .profile-container {
        width: 180px;
        height: 180px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Header improvements */
    header {
        padding: 0.8rem 1rem !important;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Hero section spacing */
    .hero {
        min-height: auto;
        padding: 4rem 1rem 2rem;
    }
    
    .profile-container {
        width: 150px;
        height: 150px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    /* Section spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Card adjustments */
    .skill-card, 
    .certification-card,
    .interest-card {
        padding: 1.2rem;
    }
    
    /* Contact form */
    .contact-container {
        gap: 1.5rem;
    }
    
    /* Reduce heavy effects on mobile */
    .skill-card,
    .certification-card,
    .tool-card,
    .project-card {
        backdrop-filter: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: none !important;
    }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .progress-level {
        transition: none !important;
    }
    
    .certification-card.in-progress {
        animation: none !important;
    }
}