/* CSS Variables for Theme */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-left: #5a6268;
    --bg-accent: #f0a500;
    --text-primary: #2c3e50;
    --text-secondary: #ffffff;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --section-bg: #4a5258;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-left: #5a6268;
    --bg-accent: #f0a500;
    --text-primary: #e0e0e0;
    --text-secondary: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --section-bg: #4a5258;
}

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

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

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-accent);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px var(--shadow);
}

/* Left Section */
.left-section {
    width: 35%;
    background-color: var(--bg-left);
    color: var(--text-secondary);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: var(--bg-accent);
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid var(--bg-accent);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px var(--shadow);
}

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

.about-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-section p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-section {
    width: 100%;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.contact-item i {
    font-size: 24px;
    color: var(--bg-accent);
    margin-right: 20px;
    margin-top: 5px;
    min-width: 30px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--bg-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--bg-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Right Section */
.right-section {
    width: 65%;
    background-color: var(--bg-secondary);
    padding: 60px 80px;
    overflow-y: auto;
}

.header {
    margin-bottom: 50px;
}

.header h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.header .name {
    font-size: 64px;
    font-weight: 900;
    color: var(--text-primary);
    display: block;
}

.designation {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--section-bg);
    padding: 15px 25px;
    margin-bottom: 30px;
    border-radius: 5px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-period {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-content p strong {
    color: var(--text-primary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-item {
    text-align: center;
}

.skill-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

.skill-circle i {
    font-size: 40px;
    color: var(--bg-accent);
}

.skill-item:hover .skill-circle {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--shadow);
}

.skill-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.skill-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Languages Section */
.languages-section {
    margin-top: 40px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.language-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.language-flag {
    font-size: 48px;
    margin-bottom: 15px;
}

.language-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.language-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-grid,
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .right-section {
        padding: 40px 30px;
    }

    .header h1 {
        font-size: 36px;
    }

    .header .name {
        font-size: 48px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .theme-toggle {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    .social-links a {
        color: #000;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--bg-accent);
    color: var(--text-secondary);
}

/* Install section */
#install .install-hint {
  margin: 0.25rem 0 1rem;
  opacity: 0.8;
  font-size: 0.95rem;
}
.install-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #ddd);
  background: var(--card, #f8f8f8);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}
.install-btn i { font-size: 1.1rem; }
.install-btn:hover { transform: translateY(-1px); }
.install-btn:active { transform: translateY(0); }

.install-btn .badge {
  display: none;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--accent-border, #5aa8ff);
  background: var(--accent-bg, rgba(90,168,255,0.12));
}

/* Show badge only on the recommended button */
.install-btn.recommended .badge { display: inline-block; }

/* Optional: tweak colors in dark mode if you have a dark theme class */
.dark .install-btn {
  border-color: #2d2d2d;
  background: #191919;
}
.dark .install-btn .badge {
  border-color: #6aa6ff;
  background: rgba(106,166,255,0.18);
}

/* Contact form (matches existing card/button style) */
.contact-form { max-width: 720px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-row label { font-weight: 600; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="tel"],
.contact-form input[type="search"],
.contact-form input[type="password"],
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #ddd);
  background: var(--card, #f8f8f8);
  outline: none;
}
.contact-form textarea { resize: vertical; }

.checkbox-row .checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-row input { transform: translateY(1px); }

.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border, #ddd); background: transparent;
}
.form-status { margin-top: 8px; font-size: 0.95rem; opacity: 0.9; }

/* Dark theme tweaks */
.dark .contact-form input,
.dark .contact-form textarea,
.dark .link-btn { border-color: #2d2d2d; background: #191919; }

.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.goog-te-gadget {
  font-size: 0;
}
.goog-te-gadget span {
  display: none;
}
#google_translate_element select {
  border-radius: 6px;
  padding: 4px;
  font-size: 14px;
}



