/* Base Styles */
:root {
    /* Dark Theme */
    --bg-dark: #0a192f;
    --bg-dark-alt: #112240;
    --text-dark: #ccd6f6;
    --text-dark-secondary: #8892b0;
    --accent-dark: #64ffda;
    --highlight-dark: rgba(100, 255, 218, 0.1);
    
    /* Light Theme */
    --bg-light: #f8f9fa;
    --bg-light-alt: #e9ecef;
    --text-light: #343a40;
    --text-light-secondary: #6c757d;
    --accent-light: #0077b6;
    --highlight-light: rgba(0, 119, 182, 0.1);
    
    /* Current Theme (default dark) */
    --bg: var(--bg-dark);
    --bg-alt: var(--bg-dark-alt);
    --text: var(--text-dark);
    --text-secondary: var(--text-dark-secondary);
    --accent: var(--accent-dark);
    --highlight: var(--highlight-dark);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --bg-alt: var(--bg-light-alt);
    --text: var(--text-light);
    --text-secondary: var(--text-light-secondary);
    --accent: var(--accent-light);
    --highlight: var(--highlight-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibre', 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.highlight {
    color: var(--accent);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 60px;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--text-secondary);
    margin-left: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}

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

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

/* Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#toggle-icon {
    margin-right: 10px;
    color: var(--accent);
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--text-secondary);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: var(--bg);
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[data-theme="light"] header {
    background-color: rgba(248, 249, 250, 0.9);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

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

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    position: relative;
    z-index: 1;
}

.glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--highlight);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* About */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

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

.tech-stack {
    margin-top: 30px;
}

.tech-stack p {
    margin-bottom: 15px;
}

.tech-stack ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
}

.tech-stack ul li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}

.tech-stack ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-image {
    flex: 1;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    filter: grayscale(100%) contrast(1);
    transition: filter 0.3s ease;
}

.about-image:hover img {
    filter: none;
}

.border-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 5px;
    top: 20px;
    left: 20px;
    z-index: 0;
    transition: all 0.3s ease;
}

.about-image:hover .border-animation {
    top: 15px;
    left: 15px;
}

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

.skill-category {
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

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

.skill-item {
    margin-bottom: 20px;
}

.skill-item p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background-color: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--accent);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 30px;
}

.project-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    background-color: var(--bg-alt);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

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

.project-tech span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background-color: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.certificate-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .certificate-overlay {
    background-color: rgba(248, 249, 250, 0.8);
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.certificate-info .issuer,
.certificate-info .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.certificate-skills span {
    background-color: var(--highlight);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}




/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content,
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .about-image {
        margin-top: 50px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .tech-stack ul {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .section-title::after {
        width: 100px;
    }
    
    nav ul {
        display: none;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}



/* Contact Section */
.contact-card {
    background-color: var(--bg-alt);
    border-radius: 10px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-header p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(100, 255, 218, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(100, 255, 218, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.contact-text a, 
.contact-text p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 15px;
    }
}

/* Footer Styles */
footer {
    background-color: var(--bg-alt);
    padding: 50px 0 20px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-brand h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 80px;
}

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

.footer-links i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.footer-links span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-links {
        gap: 20px;
    }
    
    .footer-links a {
        width: 70px;
    }
    
    .footer-links i {
        font-size: 1.5rem;
    }
}


