/* ==========================================================================
   CUSTOM STYLES - PORTFOLIO PRO THEME
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-max-width: 1200px;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-branding .site-title a:hover {
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.portfolio-section,
.about-section,
.contact-section {
    padding: 80px 0;
}

.about-section {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   PORTFOLIO GRID
   ========================================================================== */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-overlay a:hover {
    transform: scale(1.2);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    margin-bottom: 0.5rem;
}

.portfolio-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-title a:hover {
    color: var(--primary-color);
}

.portfolio-excerpt {
    color: var(--light-text);
    line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 20px;
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header {
    background: var(--light-bg);
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0;
}

/* ==========================================================================
   SINGLE PROJECT
   ========================================================================== */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.project-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.project-meta {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.project-meta h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.meta-value {
    color: var(--light-text);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.portfolio-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   ADDITIONAL STYLES
   ========================================================================== */

/* Skills Section */
.skills-section {
    margin-top: 2rem;
}

.skills-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.skill-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.skill-item p {
    color: var(--light-text);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.timeline-content p {
    color: var(--light-text);
    margin: 0;
}

/* Placeholder Image */
.placeholder-image {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    color: var(--light-text);
}

.placeholder-image i {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Social Links */
.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Project Single Page */
.project-header {
    margin-bottom: 3rem;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.project-categories {
    margin-bottom: 1rem;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-excerpt {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
}

.project-featured-image {
    margin-bottom: 2rem;
}

.project-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-item {
    margin-bottom: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 3rem 0;
}

.project-meta-grid {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.project-meta-grid .meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-meta-grid .meta-item:last-child {
    border-bottom: none;
}

.project-meta-grid .meta-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.project-meta-grid .meta-value {
    color: var(--light-text);
    text-align: right;
}

.project-meta-grid .meta-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.project-meta-grid .meta-value a:hover {
    text-decoration: underline;
}

.project-description h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.project-navigation a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.project-navigation a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* No Projects Message */
.no-projects {
    text-align: center;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.no-projects h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.no-projects p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Header Scroll Effect */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Skills Preview */
.skills-preview {
    margin-top: 2rem;
}

.skills-preview h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Preview */
.contact-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-preview .contact-item {
    margin-bottom: 1rem;
}

.contact-preview .contact-item:last-child {
    margin-bottom: 0;
}

.contact-cta {
    text-align: center;
}

/* 404 Error Page */
.error-content {
    text-align: center;
    padding: 3rem 0;
}

.error-icon {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.error-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    margin: 0 auto;
}

.search-form h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.search-form .search-field {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form .search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    background: var(--secondary-color);
}

/* Achievements Section */
.achievements-section {
    margin-top: 3rem;
}

.achievements-section h3 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.achievement-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.achievement-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Education Section */
.education-section {
    margin-top: 3rem;
}

.education-section h3 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.education-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.education-item h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.education-item p {
    color: var(--light-text);
    margin: 0.25rem 0;
}

.education-item p strong {
    color: var(--primary-color);
}

/* Contact Methods */
.contact-methods {
    margin-top: 2rem;
}

.contact-methods h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.method-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.method-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.method-item strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.method-item span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 2px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Timeline Enhanced */
.timeline-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.timeline-content li {
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.timeline-content strong {
    color: var(--primary-color);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
        box-shadow: var(--shadow);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-navigation a {
        justify-content: center;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-preview {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .skills-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .project-meta-grid .meta-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .project-meta-grid .meta-value {
        text-align: left;
    }
}

/* ==========================================================================
   ADVANCED RESPONSIVE DESIGN - HIGH-END
   ========================================================================== */

/* Extra Large Devices (Large Desktops) 1200px and up */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Devices (Desktops) 992px and up */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Devices (Tablets) 768px and up */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        gap: 2rem;
    }
}

/* Small Devices (Landscape Phones) 576px and up */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item,
    .service-item {
        margin-bottom: 0;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 2rem;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .site-branding .site-title {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-tags {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .contact-preview {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.25rem;
    }
    
    .timeline-item::before {
        left: -0.75rem;
        width: 10px;
        height: 10px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-navigation a {
        width: 100%;
        justify-content: center;
    }
}

/* Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .main-navigation {
        height: 100vh;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-navigation,
    .hero-cta,
    .portfolio-filters,
    .btn,
    .social-links,
    .footer-bottom {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
    
    .portfolio-item,
    .service-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Touch Devices Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .filter-btn,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .portfolio-item:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: none;
    }
    
    /* Better tap feedback */
    .btn:active,
    .filter-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo,
    .service-icon,
    .portfolio-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (System Preference) */
@media (prefers-color-scheme: dark) {
    /* This can be expanded for dark mode if needed */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .page-loader {
        display: none;
    }
    
    .custom-cursor {
        display: none;
    }
    
    .morph-shape {
        animation: none;
    }
}

/* Container Queries (Modern Browsers) */
@container (max-width: 768px) {
    .portfolio-item {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   PREMIUM ANIMATIONS & EFFECTS
   ========================================================================== */

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: -4px;
    left: -4px;
}

.custom-cursor.hover {
    transform: scale(1.5);
    background: rgba(52, 152, 219, 0.2);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-inner {
    display: flex;
    gap: 1rem;
}

.loader-line {
    width: 6px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 3px;
}

.loader-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 2rem;
    font-weight: 500;
}

/* Morphing Shapes Background */
.morphing-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.morph-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.morph-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    background: rgba(52, 152, 219, 0.1);
}

.morph-shape:nth-child(2) {
    top: 60%;
    right: 10%;
    background: rgba(46, 204, 113, 0.1);
}

.morph-shape:nth-child(3) {
    bottom: 10%;
    left: 20%;
    background: rgba(155, 89, 182, 0.1);
}

.morph-shape:nth-child(4) {
    top: 20%;
    right: 30%;
    background: rgba(241, 196, 15, 0.1);
}

.morph-shape:nth-child(5) {
    bottom: 20%;
    right: 20%;
    background: rgba(231, 76, 60, 0.1);
}

.morph-shape:nth-child(6) {
    top: 50%;
    left: 50%;
    background: rgba(52, 152, 219, 0.1);
}

/* Particles Canvas */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Parallax Elements */
.parallax-element {
    will-change: transform;
}

/* Magnetic Buttons Enhancement */
.btn, .portfolio-item {
    position: relative;
    will-change: transform;
}

/* Advanced Hover Effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.portfolio-item:hover::before {
    width: 300px;
    height: 300px;
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, var(--primary-color), #764ba2, #f093fb, var(--primary-color));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-element {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    filter: blur(30px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.5;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(10deg) rotateX(-10deg);
}

/* Shine Effect */
@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

/* Neomorphism */
.neomorphism {
    background: #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 
        20px 20px 60px #c7cad0,
        -20px -20px 60px #ffffff;
    transition: all 0.3s ease;
}

.neomorphism:hover {
    box-shadow: 
        inset 20px 20px 60px #c7cad0,
        inset -20px -20px 60px #ffffff;
}

/* Magnetic Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

/* Marquee Text */
.marquee-text {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Background Blobs */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: blob 7s ease infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    left: 10%;
    top: 10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #764ba2;
    right: 10%;
    bottom: 10%;
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #f093fb;
    left: 50%;
    top: 50%;
    animation-delay: 4s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    z-index: 10000;
    transition: width 0.2s ease;
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: transform 0.1s ease;
}

/* Premium Button Styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-premium:hover::after {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    min-width: 30px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #764ba2;
}

.social-links {
    margin-top: 3rem;
}

.social-links h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: #667eea;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.contact-methods {
    margin-top: 3rem;
}

.contact-methods h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.method-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.method-item:last-child {
    border-bottom: none;
}

.method-item i {
    font-size: 1.3rem;
    color: #667eea;
    min-width: 30px;
}

.method-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.method-item span {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form > p {
    color: #666;
    margin-bottom: 2rem;
}

#contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#contact-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.3rem;
    width: auto;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

#contact-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
}

.skills-section h3,
.achievements-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.skill-item h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.skill-item p {
    color: #666;
    line-height: 1.6;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    transition: all 0.3s;
}

.achievement-item:hover {
    transform: scale(1.05);
}

.achievement-item i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.achievement-item h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.achievement-item p {
    color: #666;
}

.about-image {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.placeholder-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.placeholder-image i {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.placeholder-image p {
    font-size: 1.1rem;
    margin: 0;
}

.experience-section {
    margin-top: 4rem;
}

.education-section {
    margin-top: 4rem;
}

.experience-section h3,
.education-section h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #667eea;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-content > p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.timeline-content li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.education-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.education-item h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.education-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.education-item strong {
    color: #667eea;
}

/* ==========================================================================
   RESPONSIVE - CONTACT & ABOUT PAGES
   ========================================================================== */

@media (max-width: 992px) {
    .contact-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        position: static;
    }
    
    .skills-grid,
    .achievements-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    #contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-item,
    .method-item {
        flex-direction: column;
    }
}

/* ==========================================================================
   INTERACTIVE ANIMATIONS ENHANCEMENTS
   ========================================================================== */

/* Portfolio Filter Buttons Active State */
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    color: white !important;
}

.filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Skill Items Hover */
.skill-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
}

/* Achievement Items Pulse */
.achievement-item {
    cursor: pointer;
}

.achievement-item:active {
    transform: scale(0.95) !important;
}

/* Timeline Items Interactive */
.timeline-item {
    cursor: pointer;
}

.timeline-item:hover .timeline-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Form Input Focus */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    transform: scale(1.02);
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

/* Project Meta Interactive */
.meta-item:hover {
    background: rgba(102, 126, 234, 0.05);
    padding-left: 2rem;
    transition: all 0.3s;
}

/* Project Navigation Links */
.project-navigation a:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Blog Cards Enhance */
.posts-grid article:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Portfolio Grid Items */
.portfolio-item {
    will-change: transform, opacity;
}

.portfolio-item.hidden {
    display: none !important;
}

/* Social Links Enhanced */
.social-link {
    will-change: transform;
}

.social-link:active {
    transform: scale(0.9) !important;
}

/* Blob Animations */
.blob {
    will-change: transform, opacity;
    pointer-events: none;
}

/* Smooth Transitions for All Interactive Elements */
.skill-item,
.achievement-item,
.education-item,
.timeline-item,
.contact-item,
.meta-item,
.portfolio-item,
.posts-grid article {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Disable Animations on Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .skill-item,
    .achievement-item,
    .education-item,
    .timeline-item,
    .contact-item,
    .meta-item,
    .portfolio-item,
    .posts-grid article,
    .blob,
    .social-link,
    .filter-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   PAGE HEADER STYLES
   ========================================================================== */

.page-header {
    position: relative;
    overflow: hidden;
}

.page-header .page-title {
    animation: fadeInUp 1s ease-out;
}

.page-header p {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ADDITIONAL ABOUT PAGE FIXES
   ========================================================================== */

.about-content {
    min-height: 400px;
}

.about-text h2,
.about-text h3,
.about-text h4 {
    color: #2c3e50;
    font-weight: 700;
}

.about-text p {
    color: #555;
    line-height: 1.8;
}

/* ==========================================================================
   CONTACT FORM ADDITIONAL STYLES
   ========================================================================== */

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    transform: scale(1.01);
}

/* ==========================================================================
   RESPONSIVE FIXES FOR ALL PAGES
   ========================================================================== */

@media (max-width: 992px) {
    .page-header {
        padding: 100px 0 60px !important;
    }
    
    .page-header .page-title {
        font-size: 2.5rem !important;
    }
    
    .page-header p {
        font-size: 1.1rem !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
    }
    
    .about-image {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 2rem !important;
    }
    
    .page-header p {
        font-size: 1rem !important;
    }
    
    .skills-grid,
    .achievements-grid,
    .education-grid {
        grid-template-columns: 1fr !important;
    }
}