:root {
    --primary-color: #1f4788;
    --accent-color: #00d4ff;
    --secondary-color: #2d5a99;
    --dark-bg: #0a0e27;
    --light-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #e4e4e7;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

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

body.dark-mode .nav-link {
    color: var(--text-light);
}

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

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .theme-toggle {
    color: var(--text-light);
}

.theme-toggle:hover {
    color: var(--accent-color);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

body.dark-mode .hamburger span {
    background: var(--text-light);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.05), rgba(0, 212, 255, 0.05));
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.1), rgba(0, 212, 255, 0.05));
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(31, 71, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    transform: translateY(0px);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-text {
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

body.dark-mode .hero-subtitle {
    color: var(--accent-color);
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .hero-description {
    color: #999;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

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

body.dark-mode .btn-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

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

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: var(--light-bg);
}

body.dark-mode .about {
    background: #0f1533;
}

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

.about-content {
    order: 2;
}

.about-image {
    order: 1;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

body.dark-mode .about-text {
    color: #aaa;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
    border-radius: 10px;
    background: rgba(31, 71, 136, 0.05);
    text-align: center;
}

body.dark-mode .stat-item {
    background: rgba(0, 212, 255, 0.1);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

body.dark-mode .stat-label {
    color: #999;
}

.image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.1), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

body.dark-mode .image-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.image-placeholder {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Skills Section */
.skills {
    background: rgba(31, 71, 136, 0.02);
}

body.dark-mode .skills {
    background: rgba(0, 212, 255, 0.02);
}

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

.skill-category {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

body.dark-mode .skill-category {
    background: #1a1f3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

body.dark-mode .skill-name {
    color: var(--text-light);
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

body.dark-mode .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Experience Section */
.experience {
    background: white;
}

body.dark-mode .experience {
    background: #0f1533;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    transition: var(--transition);
}

body.dark-mode .timeline-marker {
    background: #0a0e27;
}

.timeline-item:hover .timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

body.dark-mode .timeline-content {
    background: #1a1f3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content .company {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content .date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
}

.experience-list li {
    color: #666;
    margin-bottom: 8px;
}

body.dark-mode .experience-list li {
    color: #aaa;
}

.experience-list li::before {
    content: '▸ ';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Projects Section */
.projects {
    background: rgba(31, 71, 136, 0.02);
}

body.dark-mode .projects {
    background: rgba(0, 212, 255, 0.02);
}

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

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

body.dark-mode .project-card {
    background: #1a1f3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.1), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder-project {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

body.dark-mode .project-content h3 {
    color: var(--text-light);
}

.project-tech {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

body.dark-mode .project-description {
    color: #aaa;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(31, 71, 136, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

body.dark-mode .feature {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-color);
}

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

.link-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.link-btn:hover {
    background: var(--accent-color);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* Achievements Section */
.achievements {
    background: white;
}

body.dark-mode .achievements {
    background: #0f1533;
}

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

.achievement-card {
    text-align: center;
    padding: 30px;
    background: rgba(31, 71, 136, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

body.dark-mode .achievement-card {
    background: rgba(0, 212, 255, 0.1);
}

.achievement-card:hover {
    transform: translateY(-10px);
    background: rgba(31, 71, 136, 0.1);
}

.achievement-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

body.dark-mode .achievement-card h3 {
    color: var(--text-light);
}

.achievement-card p {
    font-size: 14px;
    color: #666;
}

body.dark-mode .achievement-card p {
    color: #999;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.05), rgba(0, 212, 255, 0.05));
}

body.dark-mode .contact {
    background: linear-gradient(135deg, rgba(31, 71, 136, 0.1), rgba(0, 212, 255, 0.05));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info > p {
    color: #666;
    margin-bottom: 30px;
}

body.dark-mode .contact-info > p {
    color: #999;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item i {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item .label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

body.dark-mode .contact-item .label {
    color: var(--text-light);
}

.contact-item a,
.contact-item p {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

body.dark-mode .contact-item a,
body.dark-mode .contact-item p {
    color: #999;
}

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

.social-links-large a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 20px;
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
    font-family: inherit;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #1a1f3a;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

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

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

body.dark-mode .form-group label {
    background: #0a0e27;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    opacity: 1;
    top: -5px;
}

.contact-form .btn {
    align-self: flex-start;
}

.form-status {
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

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

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

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

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

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 18px;
        opacity: 0;
    }
}

/* Utility Classes */
.stars {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.stars2 {
    position: absolute;
    width: 1px;
    height: 1px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
