* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #141428;
    --bg-card: rgba(20, 20, 40, 0.8);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0c0;
    --accent: #00d9ff;
    --accent-light: #00ffcc;
    --accent-dark: #0099cc;
    --border: rgba(0, 217, 255, 0.15);
    --shadow: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(10, 10, 26, 0.95);
    --glow: 0 0 15px rgba(0, 217, 255, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.4s ease;
    font-weight: 300;
}

body.light-theme {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent: #0066cc;
    --accent-light: #0099ff;
    --accent-dark: #004499;
    --border: rgba(0, 102, 204, 0.15);
    --shadow: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --glow: 0 0 15px rgba(0, 102, 204, 0.3);
}

.theme-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
}

#theme-toggle {
    display: none;
}

.theme-toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
    height: 35px;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.theme-toggle-label i {
    font-size: 16px;
    color: var(--text-secondary);
    z-index: 2;
}

.toggle-ball {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 25px;
    height: 25px;
    background: var(--accent);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: var(--glow);
}

#theme-toggle:checked + .theme-toggle-label .toggle-ball {
    transform: translateX(35px);
}

.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: var(--glow);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    animation: fadeIn 1.5s ease-out;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.typing-text {
    border-right: 3px solid var(--accent);
    padding-right: 5px;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeIn 2s ease-out;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 25px;
    opacity: 0.7;
}

.scroll-down {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--accent);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.education {
    margin-top: 50px;
    text-align: left;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.edu-item h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.skill-level {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 5px;
    transition: width 1.5s ease;
    box-shadow: var(--glow);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.achievement-card {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.2);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 204, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 5rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.4));
}

.project-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.project-tech {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    font-style: italic;
}

.project-description {
    margin-bottom: 25px;
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-tags span {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.leadership-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    transition: all 0.3s ease;
}

.leadership-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.leadership-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-right: 25px;
}

.leadership-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.leadership-content p {
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 10px;
}
.leadership-content small {
    color: var(--text-secondary);
}

.interests-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.interest-tag {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.interest-tag:hover {
    color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 350px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 20px;
    width: 40px;
    text-align: center;
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.3));
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    flex: 1;
    min-width: 350px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.footer-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .nav-menu li { margin-left: 25px; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .section-title { font-size: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .section { padding: 80px 15px; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 220px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .typing-text { font-size: 0.9rem; }
    .section-title { font-size: 2rem; }
    .theme-toggle { top: 15px; right: 15px; }
    .nav-container { padding: 0 15px; }
    .contact-container { flex-direction: column; }
}